Closed
Bug 81770
Opened 25 years ago
Closed 25 years ago
Dot or comma after element cancel the style description
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: divus, Assigned: pierre)
Details
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9) Gecko/20010505
BuildID: 20010505
When in the CSS description the dot or comma is left after the element name,
Mozilla cannot recognise this style and ignores it. Example:
td, p {color: green; font-size: 150%;} - style is accepted
td, p, {color: green; font-size: 150%;} - style is ignored
Reproducible: Always
Steps to Reproduce:
<style type="text/css">
p, {color: green; font-size: 150%;}
</style>
Actual Results: The style is ignored for all elements, which it sould describe.
Expected Results: The style should be recognised and be used for element(s).
The left dot and comma are one of authors' mistake in CSS development, when the
list of elements with same style was reduced or some previously existed class
selectors for the element were cancelled. However, we can suppose that elements
with dot or comma behind simply have the empty classes:
p. {... = p.' ' {...
or empty elements:
p, {... = p, ' ' {...
So the style description for these classes should be equal to the style for
"normal" elements without dot or comma.
Comment 1•25 years ago
|
||
INVALID. CSS has very specific rules for parsing, and as far as this goes we
follow the CSS rules to the letter.
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Comment 2•25 years ago
|
||
verified. We're _supposed_ to ignore any rule with a syntax error in the
selector
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•