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)

x86
Windows 98
defect

Tracking

()

VERIFIED DUPLICATE of bug 35618

People

(Reporter: vladimire, Assigned: jst)

Details

(Keywords: testcase)

Attachments

(1 file, 2 obsolete files)

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.
Attached file testcase (obsolete) —
Attached file --> Real Testcase (obsolete) —
Sorry attached wrong file accidently
Attachment #91436 - Attachment is obsolete: true
Keywords: testcase
Priority: -- → P3
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
the spec clearly says "even if the rule is not recognized by the parser"
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Attached file more complete testcase
Testcase with the at-rules mentioned by Boris
Attachment #91437 - Attachment is obsolete: true
The at-rules mentioned do not create cssRules as well as @page, as can be seen in the testcase...
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.
i recall the wg agreeing about that, i should check the minutes...
OK. So that says "we need to talk about it". Did that ever happen?
*** This bug has been marked as a duplicate of 35618 ***
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → DUPLICATE
verifying
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: