Closed
Bug 446226
Opened 18 years ago
Closed 13 years ago
selector followed by EOF should lead to a rule in the CSSOM
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
INVALID
People
(Reporter: dbaron, Unassigned)
Details
This is a followup to bug 325064.
Based on the new rules in CSS 2.1 about EOF closing any open constructs, I think a style sheet that ends with "div, p" should be represented in the object graph the same as one that ends with "div, p {}" Right now it is instead dropped.
See bug 325064 comment 23 and bug 325064 comment 28.
| Reporter | ||
Comment 1•18 years ago
|
||
Note that this covers 3 tests marked todo in layout/style/test/test_css_eof_handling.html
Comment 2•13 years ago
|
||
I brought this up with the CSS WG. It turns out that Presto, Blink, WebKit, Gecko and IE10 all agree that a bare selector without an opening '{' is *not* an open style rule to be implicitly closed at EOF and added to the OM. The css-syntax-3 spec makes this explicit.
http://lists.w3.org/Archives/Public/www-style/2013Jun/0283.html
http://lists.w3.org/Archives/Public/www-style/2013Jun/0317.html
http://dev.w3.org/csswg/css-syntax/#consume-a-qualified-rule
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•