Closed Bug 861 Opened 26 years ago Closed 26 years ago

CSS parser eats style rule after malformed rule

Categories

(Core :: CSS Parsing and Computation, defect, P2)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: peterl-retired, Assigned: peterl-retired)

Details

If the parser encounters an illegal selector value, it discards the following style rule also. ie: <style> H2 { color: red } <> H1 { color: blue } </style> the H1 rule will get discarded
Assignee: kipp → peterl
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
I tried the test case and admit I am not a CSS expert yet, and the test resulted in nothing being displayed. All I did was add HTML and BODY tags and drop in your example. Can you provide another example or set me straight :-) Thanks GL
QA Contact: 4082
You need to provide some HTML for the style to map against. Try adding: <body> <h1>blue</h1> <h2>red</h2> </body> and see what color the h1 is, if the rule gets discarded it'll be black, otherwise it'll be blue. As it turns out, this bug is invalid. The second rule SHOULD get discarded.
QA Contact: 4082 → 4110
qa assigned to chrisd
Status: RESOLVED → VERIFIED
Using 3/11 build, verifying bug invalid as comments indicate.
You need to log in before you can comment on or make changes to this bug.