Closed Bug 138944 Opened 22 years ago Closed 22 years ago

@import is not implemented

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Linux
defect
Not set
normal

Tracking

()

CLOSED WORKSFORME

People

(Reporter: thilopfennig, Assigned: dbaron)

Details

In CSS2 there is a tag of the form
@import "page.css"

This includes styles. This ca be very usefull if you categorize styles and save
them as many different files. So a stylesheet could only contain some @import
tags that link to the real style information that is broken in parts.
Mozilla does implement @import...
Can you provide us an example page where it does not work?
Guessing that the @import statements are not the first items in the CSS document.

"Any @import rules must precede all rule sets in a style sheet."
- http://www.w3.org/TR/REC-CSS2/cascade.html#at-import

Thilo, can you provide more details?
I'm very sure, that it works, coz I use it on a daily base..
->WORKSFORME.  @import is implemented.  If you have a stylesheet where it isn't
working, please try running it through http://jigsaw.w3.org/css-validator/ . 
See also the testcases at http://www.bath.ac.uk/~py8ieh/internet/importtest/ .
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
VERIFIED WORKSFORME
Status: RESOLVED → VERIFIED
Sorry, my fault - missing semicolon. Sorry again!

Thilo
Status: VERIFIED → CLOSED
You need to log in before you can comment on or make changes to this bug.