Graham Sanderson:
> From the CSSStyleDeclaration documentation:
>
>
>
> "While an implementation may not recognize all CSS properties within a
> CSS declaration block, it is expected to provide access to all specified
> properties in the style sheet through the CSSStyleDeclaration
> interface."
That's interesting, since CSS 2 states[1]:
In some cases, user agents must ignore part of an illegal style sheet.
This specification defines ignore to mean that the user agent parses
the illegal part (in order to find its beginning and end), but
otherwise acts as if it had not been there.
To ensure that new properties and new values for existing properties
can be added in the future, user agents are required to obey the
following rules when they encounter the following scenarios:
* Unknown properties. User agents must ignore a declaration with
an unknown property. For example, if the style sheet is:
H1 { color: red; rotation: 70minutes }
the user agent will treat this as if the style sheet had been
H1 { color: red }
This seems to contradict what's said in DOM 2 Style. Certainly Batik's
CSS engine currently doesn't store any non-SVG CSS properties at the
moment.
Cameron
[1] http://www.w3.org/TR/CSS2/syndata.html#parsing-errors
--
e-mail : cam (at) mcc.id.au icq : 26955922
web : http://mcc.id.au/ msn : cam-msn (at) aka.mcc.id.au
office : +61399055779 jabber : heycam (at) jabber.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]