Invalid @import rules causing rest of stylesheet to be ignored

VERIFIED FIXED

Status

()

Core
CSS Parsing and Computation
P3
normal
VERIFIED FIXED
19 years ago
19 years ago

People

(Reporter: dbaron, Assigned: Peter Linss)

Tracking

Trunk
x86
Windows 95
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
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

19 years ago
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
(Assignee)

Comment 1

19 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

19 years ago
Status: RESOLVED → VERIFIED

Comment 2

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