[css-syntax] "Drop first @charset rule" seems unneeded. #3464
Labels
Closed Accepted by CSSWG Resolution
Commenter Satisfied
Commenter has indicated satisfaction with the resolution / edits.
css-syntax-3
Tested
Memory aid - issue has WPT tests
Milestone
In the comments in WICG/construct-stylesheets#84, @bzbarsky expresses some confusion as to the point of the "drop the first @charset rule" in the "parse a stylesheet" algorithm. After some review, I agree with him: I'm also confused!
I think this was added to express the previous Blink behavior of keeping @charset rules in the CSSOM, except for the first which was dropped. (Firefox apparently never dropped the first one...) Later, I went more scorched-earth and just declared that there was no such thing as a @charset rule (just an encoding declaring that happened to resemble one...), and so all @charset rules should be dropped from the CSSOM.
Since browsers seem to follow the newer Syntax advice to just drop all @charset rules, we can eliminate the explicit "drop first" rule from the spec.
Agenda+ to confirm with WG, as this spec is CR. ^_^ (I should also probably ask for republication, if I don't already have a pending permission...)
The text was updated successfully, but these errors were encountered: