logo       

RE: Text-decoration in :after content: msg#01280

Subject: RE: Text-decoration in :after content
On Sun, 29 Sep 2002, Porter Glendinning wrote:
> 
> Which was basically my point. The fact that a requirement as simple and 
> as reasonable as selecting an element only when it contains another 
> element could only be satisfied by transmitting (20 x "chars in 
> charset") bytes of CSS (give or take) seems to indicate a pretty 
> significant shortcoming.

Oh don't worry, the working group is more than fully aware of the problem.


> We need a way to select "upstream elements," either through something 
> as simple as parent/ancestor operators, or something more robust like 
> targeting random points in the selector chain.

The problem is that it is prohibitively inefficient to be checking the
entire document tree for every element, which is what you end up doing
with such a feature. Add that to :hover, which needs to recalculate all
the style information every time you move your mouse, and you end up with
extreme pain. This is why :contains() is marked as being only recommended
for print media.

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'

_______________________________________________
css-discuss [css-discuss@xxxxxxxxxxx]
http://three.pairlist.net/mailman/listinfo/css-discuss
Sponsored by www.westciv.com - CSS resources | software | learning



<Prev in Thread] Current Thread [Next in Thread>