Connecting Tech Pros Worldwide Help | Site Map

CSS validation, -moz extensions?

  #1  
Old June 27th, 2008, 08:20 PM
gentsquash@gmail.com
Guest
 
Posts: n/a
My CSS does not validate at
http://jigsaw.w3.org/css-validator/

Attempting to validate, for example, my

http://www.math.ufl.edu/~squash/cour...cal.2008t.html

produces (lightly edited)

/--------------------------------------------------------\
URI : http://www.math.ufl.edu/~squash/CSS/jkall.css
199 .BOOKEMF
Property -moz-border-radius doesn't exist : 20pt


URI : http://www.math.ufl.edu/~squash/CSS/jkselection.css
20 The pseudo-element
::-moz-selection can't appear here in the context css21

25 The pseudo-element
::selection can't appear here in the context css21

30 The pseudo-element
::-moz-selection can't appear here in the context css21

34 The pseudo-element
::selection can't appear here in the context css21
\_________________________________________________ _______/


Running firefox on MacOS, it appears that
"-moz-border-radius" does indeed cause the borders to be
pleasantly rounded.

Q1: Is there a way I can change my code, and still have the
rounded borders (in browsers that support it) AND have the
CSS validate? (E.g, should I be using a different DOCTYPE
or a different validation service, or can the above
validator take an "allow moz" parameter somehow?)


Q2: As for the "pseudo-element ... can't appear here"
errors, my CSS is [reduced for posting]

::-moz-selection {background: #AF0078 }
::selection {background: #AF0078 }
code::-moz-selection { background: #333333 }
code::selection { background: #333333 }

Are any of these considered correct for mozilla-derived
browsers --and how can I get such to validate?

--Jonathan LF King Mathematics dept, Univ. of Florida
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
A javascript based browser home page app goldenv answers 3 June 27th, 2008 08:08 PM
validation error help mightyreds answers 3 February 22nd, 2007 09:56 PM
Why is it important that I define background-color for validated CSS bissatch@yahoo.co.uk answers 2 February 7th, 2006 01:05 PM
W3C CSS Validation Service Andreas Prilop answers 1 August 19th, 2005 02:05 PM
Simple fix..validation errors at W3C... Brandon answers 14 July 23rd, 2005 11:47 PM