Closed
Bug 157641
Opened 23 years ago
Closed 23 years ago
cssRule elements are not created for at-rules
Categories
(Core :: DOM: CSS Object Model, defect, P3)
Tracking
()
People
(Reporter: vladimire, Assigned: jst)
Details
(Keywords: testcase)
Attachments
(1 file, 2 obsolete files)
|
1.34 KB,
text/html
|
Details |
quote from CSS2 spec:
"The CSSRule interface is the abstract base interface for any type of CSS
statement. This includes both rule sets and at-rules. An implementation is
expected to preserve all rules specified in a CSS style sheet, even if the rule
is not recognized by the parser. Unrecognized rules are represented using the
CSSUnknownRule interface."
However Netscape does not create cssRule's for at-rules
To reproduce open up the testcase.
| Reporter | ||
Comment 1•23 years ago
|
||
| Reporter | ||
Comment 2•23 years ago
|
||
Sorry attached wrong file accidently
Attachment #91436 -
Attachment is obsolete: true
Comment 3•23 years ago
|
||
We don't support @page. So the CSS parser drops it, and hence it is not in the
CSSOM.
Try this with at-rules we actually support (@media, @namespace, @import).
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 4•23 years ago
|
||
the spec clearly says "even if the rule is not recognized by the parser"
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
| Reporter | ||
Comment 5•23 years ago
|
||
Testcase with the at-rules mentioned by Boris
Attachment #91437 -
Attachment is obsolete: true
| Reporter | ||
Comment 6•23 years ago
|
||
The at-rules mentioned do not create cssRules as well as @page, as can be seen
in the testcase...
Comment 7•23 years ago
|
||
The spec was also written by people who had no idea how CSS actually works....
I strongly feel that we should under no circumstances implement CSSUnknownRule
and the spec should be changed in this instance. glazou?
As for the second testcase, the rules are in a place in the stylesheet where
they are not allowed per the CSS spec. Said spec demands that such rules be
dropped from the sheet. So the testcase is completely equivalent to the first one.
Comment 8•23 years ago
|
||
i recall the wg agreeing about that, i should check the minutes...
Comment 10•23 years ago
|
||
OK. So that says "we need to talk about it". Did that ever happen?
Comment 11•23 years ago
|
||
*** This bug has been marked as a duplicate of 35618 ***
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•