Closed
Bug 6546
Opened 26 years ago
Closed 26 years ago
Invalid @import rules causing rest of stylesheet to be ignored
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: dbaron, Assigned: peterl-retired)
Details
Invalid import rules are causing the rest of the stylesheet to be ignored.
They should only cause the @-rule (which begins with @import) to be ignored.
An @-rule is defined in both CSS1 (7.1) and CSS2 (4.1.5, 4.2) to be everything
from the @-keyword to the next ";" or block. Therefore an @import without a
semicolon is terminated by the next block (which acts as the media type,
probably causing the import to be ignored). However, whatever's after that
should be used (this can even be another @import rule).
See the tests:
http://www.fas.harvard.edu/~dbaron/css/test/parsing4
http://www.fas.harvard.edu/~dbaron/css/test/parsing5
where the behavior should be as described.
Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 1•26 years ago
|
||
Test 4 was a parsing error and is fixed.
Test 5 was actually a cascading order bug and is also fixed (all rules in
parent sheet were overriding rules in @import'd sheets, I misinterpreted
conflicting statements in the spec).
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 2•26 years ago
|
||
Using 6/14 Apprunner, behavior is as described. Verifying bug fixed.
You need to log in
before you can comment on or make changes to this bug.
Description
•