WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
VERIFIED DUPLICATE of
bug 14373
14345
CSS Parser will accepts parts of a ruleset that is correct
https://bugs.webkit.org/show_bug.cgi?id=14345
Summary
CSS Parser will accepts parts of a ruleset that is correct
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug