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

RE: [css3-selectors] :parent selector

From: Patrick Lauke <P.H.Lauke@salford.ac.uk>
Date: Mon, 25 Sep 2006 09:32:39 +0100
Message-ID: <2B0B7306F468E54D84D79904FA2A01404E61DC@ISD-EXV03.isdads.salford.ac.uk>
To: <www-style@w3.org>

> David Hyatt

 
> I'd say use a class attribute on your image links and spare yourself  
> the lousy page performance of a parent selector. :)
...
> it allows for simpler rule construction and much better performance.

This argument can pretty much be made for *all* complex selectors. nth child, only-of-type, etc.
Does that mean they should all be abandoned in favour of simply putting the burden on document authors to properly class the stuff they want styled a particular way?

> I suppose you might counter that this kind of rule would be 
> useful in  
> a user stylesheet, but user stylesheets are only interesting to the  
> 0.000001% of the browser user population that understand CSS well  
> enough to construct and apply them. :)

Don't confuse the usefulness of user stylesheets with the lousy, propeller-head implementation of them. If browsers would offer a system whereby user styles could be downloaded (from a repository site, similar to what happens with Firefox themes/extensions), added, activated, switched to, etc without requiring user to actually know CSS itself, I'd posit that uptake would be a lot higher. Don't provide inadequate solutions and then moan that users aren't taking advantage of them...

P
________________________________
Patrick H. Lauke
Web Editor
External Relations Division
University of Salford
Room 113, Faraday House
Salford, Greater Manchester
M5 4WT
UK

T +44 (0) 161 295 4779
webmaster@salford.ac.uk

www.salford.ac.uk

A GREATER MANCHESTER UNIVERSITY  
Received on Monday, 25 September 2006 08:32:23 GMT

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