Bug 14345

Summary: CSS Parser will accepts parts of a ruleset that is correct
Product: WebKit Reporter: Gérard Talbot (no longer involved) <browserbugs2>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: VERIFIED DUPLICATE    
Severity: Normal    
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: PC   
OS: Windows XP   
URL: http://www.hixie.ch/tests/evil/css/css21/tests/t040103-ident-08-c.htm

Gérard Talbot (no longer involved)
Reported 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
Attachments
Gérard Talbot (no longer involved)
Comment 1 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
Gérard Talbot (no longer involved)
Comment 2 2007-06-24 16:46:36 PDT
Bug 14373 is more accurate. *** This bug has been marked as a duplicate of 14373 ***
Note You need to log in before you can comment on or make changes to this bug.