Re: [CSS22] [CSS21] <'border-width'> non-existent value type mentioned in section 1.4.2 of CSS 2.1 specification

On Sun, Jul 26, 2015 at 12:30 PM, Mis User <misuser8@aol.com> wrote:
> There is an error in section 1.4.2 of Cascading Style Sheets Level 2
> Revision 1 (CSS 2.1) Specification
>
> http://www.w3.org/TR/CSS2/about.html#property-defs
>
> and also in Cascading Style Sheets Level 2 Revision 2 (CSS 2.2)
> Specification
>
> https://drafts.csswg.org/css2/about.html#property-defs
>
> 4. non-terminals that do not share the same name as a property. In this
> case, the non-terminal name appears between "<" and ">", as in
> <border-width>. Notice the distinction between <border-width> and
> <'border-width'>; the latter is defined in terms of the former. The
> definition of a non-terminal is located near its first appearance in the
> specification. In the electronic version of the document, each instance of
> this type of value links to the corresponding value definition.
>
> There is no such value type as <'border-width'>, so it should be replaced by
> 'border-width', which is a CSS property name, so the above paragraph would
> read as follows:
>
>
> 4. non-terminals that do not share the same name as a property. In this
> case, the non-terminal name appears between "<" and ">", as in
> <border-width>. Notice the distinction between <border-width> and
> 'border-width'; the latter is defined in terms of the former. The definition
> of a non-terminal is located near its first appearance in the specification.
> In the electronic version of the document, each instance of this type of
> value links to the corresponding value definition.

No, the text is correct.  Non-terminals of the form <'foo'> are
shorthand for "whatever the 'foo' property accepts, minus the global
keywords".  'border-width' by itself indicates a reference to the
property, but it is not valid inside of a grammar.  (Or rather, it
represents the literal text.)

~TJ

Received on Tuesday, 4 August 2015 21:34:46 UTC