- From: <bugzilla@wiggum.w3.org>
- Date: Sun, 21 Feb 2010 16:28:54 +0000
- To: www-validator-cvs@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=9107 Summary: Incorrectly reports validity for various illegal pseudo- element usages Product: CSSValidator Version: CSS Validator Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P2 Component: CSS 2.1 AssignedTo: dave.null@w3.org ReportedBy: cecil@cecilward.com QAContact: www-validator-cvs@w3.org The validator IMHO incorrectly reports validity for the following CSS 2.1 fragments (direct input entered) Case #1 : a:first-line:first-line {} Case #2 : a:first-line:lang(en) {} Case #3 : a:first-line[attr] {} Case #4 : a:first-line elem {} According to the CSS2.1 grammar in appendix G, pretty much anything goes in respect of pseudo-element placement, so if the appendix G interpretation is accepted then the validator is correct in reporting each of the above as valid. However, according to CSS2.1 section 5.2 (http://www.w3.org/TR/CSS2/selector.html#pattern-matching ) : "One pseudo-element may be appended to the last simple selector in a chain, .." My interpretation of this is (a) I take the word "appended" to mean what it says, so a pseudo-element may only be in rightmost position. I assume that (b) zero or one pseudo elements may be present, and no more, and that (c) only the rightmost simple selector may have a pseudo-element. So case #1 should fail because of my rules (a) and (b), case #2 and #3 should fail under (a), case #4 under (c). -- Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Sunday, 21 February 2010 16:28:56 UTC