- From: Anne van Kesteren <annevk@opera.com>
- Date: Tue, 19 Feb 2008 10:58:40 +0100
- To: "Jens Meiert" <jens.meiert@erde3.com>
- Cc: www-style@w3.org
On Tue, 19 Feb 2008 10:46:46 +0100, Jens Meiert <jens.meiert@erde3.com>
wrote:
>> > * E:empty – Chances are indeed that authors will use element
>> > selectors instead, and I remember Eric raising other concerns
>> > concerning this pseudo-class [1].
>>
>> Element selectors? Eric's concerns are browser bugs and a slight
>> misunderstanding of <img>.
>
> Please note the “and”.
I did. "Element selectors?" was referring to that.
> Me, I am talking about probably using element/type selectors instead
> (for example, using ”hr” instead of ”:empty” on imaginary sites where
> the only empty element is an “hr”);
How do you imagine to select all empty td elements within a table using
just a type selector?
>> > * E:lang(fr) – Probably the most questionable selector since
>> > apparently replaceable by attribute selectors.
>>
>> Oh really? I don't think so.
>
> Could you explain, please? What can you really do with ”:lang()” that is
> IMPOSSIBLE to do with attribute selectors (not talking about character
> savings)?
<div lang="en"><span>This line should have a green
background.</span></div>
span { background:red }
span:lang(en) { background:lime }
No, parent selectors are not allowed. (Note that language inherits all the
way from the Content-Language HTTP header so parent selectors wouldn't
work anyway.)
>> I'd expect a few people to make examples on how you can put them to use
>> and authors to follow by copy and pasting.
>
> Probably “trivial objection” wasn't clear, it was just a simple remark
> that I do not expect heavy use of these selectors, which, again, must
> not mean anything here. Sure, I could have dropped the note entirely,
> but I haven't been aware that all words get weighed now.
I can't really predict how heavily they will be used, but I imagine that
pretty much everyone will use at least the simple variant of :nth-child
for tables once all browsers support it properly.
--
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Tuesday, 19 February 2008 09:54:19 UTC