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.
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
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).
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.