W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2000

Re(2): CSS_DIMENSION creation?

From: Blaine Brodie <bbrodie@savagesoftware.com>
Date: Tue, 13 Jun 2000 13:43:40 -0700
Message-id: <fc.0085846d000084480085846d0000804f.846d@savagesoftware.com>
To: www-dom@w3.org
www-dom@w3.org writes:
>Blaine Brodie wrote:
>> Hello,
>> I was wondering how it is possible to create a CSSPrimitiveValue of type
>> CSS_DIMENSION.  I assume that the syntax for CSS_DIMENSION is the same
>> the 'DIMEN' token ({num}{ident}), however, none of the CSS2 grammar
>> expressions contain the 'DIMEN' token.  So it seems that it is not
>> possible to create a CSSPrimitiveValue object of this type.  Should this
>> unit type be removed or should an addition be made to the CSS2 grammar?
>CSS_DIMENSION is for unknown dimension. In CSS2, all lengths, angles,
>and frequencies are dimensions.
>The DIMENSION token is part of the CSS2 grammar:
>setProperty("font-size", "10m", "") will create a dimension even if
>you won't be able to use it in a CSS2 engine.

Maybe I am misinterpreting something.  It is my understanding that the DOM
Level 2 is used to modify properties values of a CSS level 2 document. 
However, the CSS2 grammar [http://www.w3.org/TR/CSS2/grammar.html], which
is more restrictIve than the core CSS Grammar does not contain any
expressions with the DIMENSION token.  Does this mean that a function such
as setProperty parses against the core CSS grammar and not the CSS2

Received on Tuesday, 13 June 2000 16:44:23 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:07 UTC