Cameron McCormack wrote:
That's interesting, since CSS 2 states[1]:

  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.

I think this is due to a difference in what is meant by "ignore". For purposes of actually styling a tree (which is what the CSS spec concerns itself with) indeed unknown properties must be ignored. However at the level of the DOM, this isn't needed. It's the same thing as "ignoring" elements in a namespace you don't know -- you still put them in the DOM.

The SVG WG went through this discussion a while back, with input from the CSS WG, and concluded on the above. This never translated into any document since it would concern SVG Full 1.2 and since it's not clear that such prose needs to be in our docs, and it's not clear if the CSS WG has consensus or not.

I think this would be well worth a last call comment on CSS 2.1 (which has the same language) to get the CSS WG to clarify.

--
Robin Berjon
  Senior Research Scientist
  Expway, http://expway.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to