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/