Bug 14345 - CSS Parser will accepts parts of a ruleset that is correct
Summary: CSS Parser will accepts parts of a ruleset that is correct
Status: VERIFIED DUPLICATE of bug 14373
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 523.x (Safari 3)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://www.hixie.ch/tests/evil/css/cs...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-23 15:29 PDT by Gérard Talbot
Modified: 2007-08-03 23:11 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gérard Talbot 2007-06-23 15:29:14 PDT
When a comma is involved in a ruleset, 
"the whole statement should be ignored if there is an error anywhere in the selector, even though the rest of the selector may look reasonable in CSS 2.1."
CSS 2.1, section 4.1.7 Rule sets, declaration blocks, and selectors
http://www.w3.org/TR/CSS21/syndata.html#q10

In other words:

<style type="text/css">
.two { color: green; background: white; }
#6ident, .two { color: red; }
</style>

<p class="two">This should be green.</p>

because an ID selector can not start with a digit.
http://www.w3.org/TR/CSS21/syndata.html#q6
Comment 1 Gérard Talbot 2007-06-23 16:01:48 PDT
The real issue at the source may be that Safari accepts, honors id selectors starting with a digit:

http://www.hixie.ch/tests/evil/css/css21/tests/t0509-id-sel-syntax-01-f.htm
Comment 2 Gérard Talbot 2007-06-24 16:46:36 PDT
Bug 14373 is more accurate.

*** This bug has been marked as a duplicate of 14373 ***