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

Re: css3 :nth-child() WD

From: Ian Hickson <ian@hixie.ch>
Date: Sun, 4 Mar 2001 21:09:33 -0800 (Pacific Standard Time)
To: Jonas Sicking <sicking@bigfoot.com>
cc: <www-style@w3.org>
Message-ID: <Pine.WNT.4.31.0103042105290.1160-100000@HIXIE.netscape.com>
On Wed, 28 Feb 2001, Jonas Sicking wrote:
>
> On a completly other topic: I think the :empty pseudo need some
> definition of what is considered empty. Which of the following
> elements are considered empty?
>
> <E>   </E>
> <E xml:space="preserve">   </E>

These two are (typically) the same, since "xml:space" takes only two
options, "preserve" and "whatever the UA wants to do", and the second one
almost certainly has to be interpreted as "preserve" in the case where the
UA wants to implement the CSS 'white-space' property.


> <E><!-- comment --></E>

empty.

> <E><?myPI?></E>

empty.


> <!ENTITY emptyEntity "">
> <E>&emptyEntity;</E>

empty.


> <!ENTITY wsEntity "   ">
> <E>&wsEntity;</E>

This (and the first two cases) are debatable, and rely on the definition
of "significant white space". I would posit that they are empty, even
though 'white-space' may be set to 'pre'. (Note that the answer must not
be different depending on the value of 'white-space' since that would
imply the cascade was performed twice, which is a no-no.)

-- 
Ian Hickson                                     )\     _. - ._.)       fL
Netscape, Standards Compliance QA              /. `- '  (  `--'
+1 650 937 6593                                `- , ) -  > ) \
irc.mozilla.org:Hixie _________________________  (.' \) (.' -' __________
Received on Monday, 5 March 2001 00:08:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:08 GMT