W3C home > Mailing lists > Public > public-css-testsuite@w3.org > August 2008

Re: Convention for tests proving initial values?

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 14 Aug 2008 15:34:48 +0100
Message-ID: <48A44288.4030106@inkedblade.net>
To: "Grant, Melinda" <melinda.grant@hp.com>
CC: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>

Grant, Melinda wrote:
> I'm wondering if there is a de facto convention or if we should 
> establish an explicit one for testing of initial values.  How many 
> elements of the host language do we need to test to 'prove' an initial 
> value is what the spec states?  All elements to which the property 
> applies, for completeness?  One?  Something in between?

Just one, either <div> or <span>, should do. You shouldn't try to test
all elements, because the UA is allowed to set properties to other
values in its UA style sheet.

For inheritable properties you may need to set
   html, body, div {
     foo: inherit;
to test the initial value.

Received on Thursday, 14 August 2008 14:35:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 19:58:13 UTC