Skip to content

Commit

Permalink
Bug 1835066 - Fix a Gecko reftest that isn't valid when nesting is en…
Browse files Browse the repository at this point in the history
…abled.

See w3c/csswg-drafts#7961 (comment)

In general I agree with Tab that media blocks should parse the same
regardless of whether they are nested.

We should add a test that covers this to WPT, but for now tweak the
local reftest.

MANUAL PUSH: Trivial orange fix CLOSED TREE
  • Loading branch information
emilio committed Jun 4, 2023
1 parent a878317 commit 998757c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions layout/reftests/bugs/431948-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@

/* A semicolon at the top level of a @media block should not cause the
whole @media block to be invalidated; in particular, valid rules
either before or after it should not be discarded. (But a rule
immediately after the semicolon is consumed by error recovery.) */
either before or after it should not be discarded. */
@media screen {
#a { background-color: green }
;
}
@media screen {
#b { background-color: green }
;
#b { background-color: yellow }
#c { background-color: green }
}

Expand Down

0 comments on commit 998757c

Please sign in to comment.