bugzilla.mozilla.org has resumed normal operation. Attachments prior to 2014 will be unavailable for a few days. This is tracked in Bug 1475801.
Please report any other irregularities here.

@import is not implemented

CLOSED WORKSFORME

Status

()

Core
CSS Parsing and Computation
CLOSED WORKSFORME
17 years ago
17 years ago

People

(Reporter: Thilo Pfennig, Assigned: dbaron)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

17 years ago
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.

Comment 1

17 years ago
Mozilla does implement @import...
Can you provide us an example page where it does not work?

Comment 2

17 years ago
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
Last Resolved: 17 years ago
Resolution: --- → WORKSFORME
VERIFIED WORKSFORME
Status: RESOLVED → VERIFIED
(Reporter)

Comment 6

17 years ago
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.