W3C home > Mailing lists > Public > www-style@w3.org > June 1999

syntax of rect()

From: L. David Baron <dbaron@fas.harvard.edu>
Date: Thu, 24 Jun 1999 09:56:03 -0400 (EDT)
Message-Id: <199906241356.JAA19755@ice2.fas.harvard.edu>
To: www-style@w3.org
This problem came out of a discussion on netscape.public.mozilla.layout.

The CSS2 spec defines the syntax of the rect() [1] function (for the
clip property) as without commas:

rect (<top> <right> <bottom> <left>)

but then gives examples with commas:

P { clip: rect(5px, 10px, 10px, 5px); }

The W3C CSS2 validator [2] requires the commas, and Microsoft
documentation [3] on the matter gives the rect() function without
commas, as does Liam Quinn's CSSCheck[4].  I tend to think the CSS2
examples and the CSS2 validator are wrong, and both should be
corrected.  Is this the correct interpretation?

David

[1] http://www.w3.org/TR/REC-CSS2/visufx.html#clipping
[2] http://jigsaw.w3.org/css-validator/
[3]
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/clip.asp
[4] http://www.htmlhelp.com/tools/csscheck/

L. David Baron     Rising Sophomore, Harvard     dbaron@fas.harvard.edu
Links, SatPix, CSS, etc.        < http://www.fas.harvard.edu/~dbaron/ >
WSP CSS AC                         < http://www.webstandards.org/css/ >
Received on Thursday, 24 June 1999 09:56:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:59 GMT