mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
Bug 1835066 - Fix a Gecko reftest that isn't valid when nesting is enabled.
See https://github.com/w3c/csswg-drafts/issues/7961#issuecomment-1549874958 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
This commit is contained in:
parent
19f275b625
commit
d7f572649a
@ -7,16 +7,13 @@ span {
|
|||||||
|
|
||||||
/* A semicolon at the top level of a @media block should not cause the
|
/* A semicolon at the top level of a @media block should not cause the
|
||||||
whole @media block to be invalidated; in particular, valid rules
|
whole @media block to be invalidated; in particular, valid rules
|
||||||
either before or after it should not be discarded. (But a rule
|
either before or after it should not be discarded. */
|
||||||
immediately after the semicolon is consumed by error recovery.) */
|
|
||||||
@media screen {
|
@media screen {
|
||||||
#a { background-color: green }
|
#a { background-color: green }
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
@media screen {
|
@media screen {
|
||||||
#b { background-color: green }
|
#b { background-color: green }
|
||||||
;
|
|
||||||
#b { background-color: yellow }
|
|
||||||
#c { background-color: green }
|
#c { background-color: green }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user