Open dbaron opened 6 years ago
I wrote a test to check browser behavior.
@page :left
.:left
.@page
selectors, so the rule is droppedselectorText
(but does parse the rule -- it doesn't parse the rule for @page foo
, though)(My preference is still the Chromium behavior.)
@litherum @smfr do you think WebKit would be ok with changing behavior here?
Chrome's behavior seems like the obviously correct one.
Gecko now supports (for some time already, for all I know) @page
selectors and CSSPageRule
, and serializes @page :left
as :left
(CSSPageRule.selectorText
) - just like Chromium.
WebKit still serializes as @page :left
w3c/web-platform-tests#6183 points out that:
CSSPageRule.selectorText
's getter serializes@page
selectorsGiven that there is lack of interop today as to whether a rule
should serialize the selector text through
CSSPageRule.selectorText
as@page :left
or:left
, it seems like the WG should agree on which is the right behavior.I tend to think that serializing to
:left
is the right thing to do, but given that implementations currently differ, I think it's worth bringing to the WG.