- From: David Chambers <david.chambers.05@gmail.com>
- Date: Thu, 7 Oct 2010 04:09:15 +1300
- To: Boris Zbarsky <bzbarsky@mit.edu>
- Cc: www-style@w3.org
Received on Wednesday, 6 October 2010 15:15:28 UTC
Thanks, Boris. I tend to overlook the fact that CSS services markup
languages other than HTML. :)
Now what one _could_ do is introduce a :header pseudo-class or something, if
> it's felt that it would be sufficiently useful....
I don't mind whether I need to write `#preview :any(h1, h2, h3, h4, h5, h6)`
or `#preview :header`; having one or the other would be great. `:any` has
broader application, so is probably the better option.
On 7 October 2010 03:54, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 10/6/10 10:50 AM, David Chambers wrote:
>
>> How would you tell that apart from trying to style elements named "h"?
>>
>> I'm not sure what you mean by this, Boris. Are you able to elaborate?
>>
>
> Sure. Currently in CSS, this style:
>
> h { color: green; }
>
> would match the <h> node in this markup:
>
> <span><h>I should be green</h></span>
>
> We can't just arbitrarily define this one tag selector to mean something
> different.
>
> Now what one _could_ do is introduce a :header pseudo-class or something,
> if it's felt that it would be sufficiently useful....
>
> -Boris
>
Received on Wednesday, 6 October 2010 15:15:28 UTC