W3C home > Mailing lists > Public > www-style@w3.org > August 2006

Re: Selector for parent/predecessor?

From: David Hyatt <hyatt@apple.com>
Date: Sun, 20 Aug 2006 16:10:00 -0700
Message-Id: <EACDA673-CADD-4133-874A-4B28E8BC3C23@apple.com>
Cc: www-style@w3.org
To: mark.birbeck@x-port.net

A parent selector is also extremely difficult to implement,  
especially dynamic cases.

Any selector that cannot be determined correctly during an  
incremental load of a document is evil, since you end up possibly  
having to display incorrect results while loading before the true  
style of the element can be accurately determined.  This includes  
selectors like :last-child for example.  It's just terrible to have  
any selectors in the language that can be wrong during a forward  
parse of the document.

Far and away the most efficient way to style elements is with simple  
efficient selectors like class, tag and ID.  All the extra selectors  
do (especially most of the useless ones from CSS3) is provide authors  
with more rope to hang themselves with.

dave
(hyatt@apple.com)

On Aug 20, 2006, at 2:49 PM, Mark Birbeck wrote:

>
> I don't see how there can be such evidence when choice is denied...but
> I'm of course willing to be put right--send me the references and I'll
> read the evidence.
>
> On 20/08/06, Ian Hickson <ian@hixie.ch> wrote:
>> On Sun, 20 Aug 2006, Mark Birbeck wrote:
>> >
>> > In most languages an author is aware of which operations are  
>> costly, and
>> > which not, and can then make their own decisions.
>>
>> There is ample evidence showing that this is not the case on the Web.
>>
>> --
>> Ian Hickson               U+1047E                ) 
>> \._.,--....,'``.    fL
>> http://ln.hixie.ch/       U+263A                /,   _.. \   _ 
>> \  ;`._ ,.
>> Things that are impossible just take longer.   `._.-(,_..'-- 
>> (,_..'`-.;.'
>>
>>
>
>
> -- 
> Mark Birbeck
> CEO
> x-port.net Ltd.
>
> e: Mark.Birbeck@x-port.net
> t: +44 (0) 20 7689 9232
> w: http://www.formsPlayer.com/
> b: http://internet-apps.blogspot.com/
>
> Download our XForms processor from
> http://www.formsPlayer.com/
>
Received on Sunday, 20 August 2006 23:10:12 GMT

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