[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: seeking clarification of CSS2 spec
Hi John, > I am just after clarification of the following definition for the > value of a CSS2 property. This property is defined as having the > value: > > [ <border-width> || <border-style> || <color> ] | inherit > > My question is, does this type of definition impose an order on the > elements ? > > I know "12pt solid red" is a valid value, but is "solid red 12pt" ? In the CSS2 spec, a || means "in any order", so the answer is that there's no order imposed on the tokens in the property, and "solid red 12pt" is valid. See http://www.w3.org/TR/CSS2/about.html#property-defs for details of the syntax that's used to describe properties in the CSS2 spec. Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|