W3C home > Mailing lists > Public > www-style@w3.org > March 2007

CSS2, 3.2 Conformance, point 4...

From: Fennell, Philip <philip.fennell@hp.com>
Date: Fri, 23 Mar 2007 15:58:20 -0000
Message-ID: <C4B3FB61F7970A4391A5C10BAA1C3F0D811BE4@sdcexc04.emea.cpqcorp.net>
To: <www-style@w3.org>


I am in the process of building a CSS 2 processor that takes as input an
XML document and obtains any CSS style sheets referenced by the
xml-stylesheet processing instruction. The processor then parsers the
style sheet(s) and applies the CSS rules to the XML document. The output
is the original XML document with CSS style property attributes embedded
according to the CSS rules. A subsequent process will render the
'styled' XML document.

I have a query regarding point 4 of the conformance requirements.

Where, in point 4, it states that:

For each element in a document tree, it must assign a value for every
applicable property according to the property's definition and the rules
of cascading and inheritance.

Can I take this to mean that in this most simple example:

Source document

Style sheet
feed {

Result document
<feed xmlns:css="http://www.w3.org/TR/REC-CSS2/" css:display="block"

That every descendant of the 'feed' element will need to carry the
inheritable css:color attribute in order for my implementation to claim
conformance to CSS 2?


Philip Fennell
Received on Friday, 23 March 2007 15:58:35 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:28 UTC