Bug?

The following style declaration(s) to 'reset' element styles will  
validate for CSS 2.1 but fail for CSS 2 and CSS 3 validators:

html 
,body 
,div 
,span 
,applet 
,object 
,iframe 
,h1 
,h2 
,h3 
,h4 
,h5 
,h6 
,p 
,blockquote 
,pre 
,a 
,abbr 
,acronym 
,address 
,big 
,cite 
,code 
,del 
,dfn 
,em 
,font 
,img 
,ins 
,kbd 
,q 
,s 
,samp 
,small 
,strike 
,strong 
,sub 
,sup 
,tt 
,var 
,b 
,u 
,i 
,center 
,dl 
,dt 
,dd 
,ol 
,ul 
,li 
,fieldset 
,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin: 
0;padding:0;border:0;outline:0;font-size:100%;vertical- 
align:baseline;background:transparent}body{line-height:1} ul{list- 
style:none 
}blockquote 
,q 
{quotes:none 
}blockquote:before 
,blockquote:after 
,q:before,q:after{content:'';content:none}:focus{outline:0}ins{text- 
decoration:none}del{text-decoration:line-through}table{border- 
collapse:collapse;border-spacing:0}

with:

1  	 blockquote:before, blockquote:after, q:before, q:after  	 Value  
Error : content  none is not a content value :  none

This passes the CSS 2.1 validator and should pass the others as well.   
If I change the offending q:after{content:'';content:none} to  
q:after{content:'';content:normal}, which supposedly computes to  
'none' for the :before and :after pseudo-elements, it validates for  
CSS3 but still fails for CSS2 ...

So, looks like the 'none' and 'normal' attributes do not exist in CSS  
2, but they do in CSS 2.1.  One assumes they do in CSS 3 as well?  So,  
does the CSS 3 validator have a bug?  And to be fully 'valid' (for  
now) should I drop the content:none declaration?


~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rick Hill, Webmaster

Academic Computing Services
College of Engineering
2160 Kemper Hall
Davis, CA 95616-5293

Office:  (530) 752-1616
FAX:  (530) 752-4465
Email:  rrhill@ucdavis.edu
Web:  http://engineering.ucdavis.edu

UNIVERSITY OF CALIFORNIA, DAVIS

Received on Tuesday, 12 May 2009 16:10:24 UTC