A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/w3c/csswg-drafts/issues/3464 below:

[css-syntax] "Drop first @charset rule" seems unneeded. · Issue #3464 · w3c/csswg-drafts · GitHub

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...)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4