W3C home > Mailing lists > Public > www-style@w3.org > January 2011

Re: [css3-selectors] Please add example of stacking sequence within a not-so-simple selector

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 14 Jan 2011 18:01:50 -0800
Message-ID: <AANLkTi=8e4mjSQsak7NXNY1ymPaAxvWAGZZ3QJktdXRF@mail.gmail.com>
To: "Belov, Charles" <Charles.Belov@sfmta.com>
Cc: www-style list <www-style@w3.org>
On Fri, Jan 14, 2011 at 1:15 PM, Belov, Charles <Charles.Belov@sfmta.com> wrote:
> selectors, but has only one example of a not-so-simple selector, that of
> two classes:
> p.pastoral.marine { color: green }
> It would be good if there was an example of a complex selector, so that
> I would know the proper sequence or validity, if any, of something like:
> a.pastoral.marine[id][title]:hover:first-letter
> I'm actually looking for the proper sequencing of
> a.pastoral[style*=font-weight:bold], and I see upon testing that it
> works in Firefox 3.6, but it would be good to explicitly show something
> complex like that as an example.

The only explicit sequencing required is that tag name selectors must
go first, and pseudo-element selectors must go last.  Other than that,
there is no ordering required or implied, so feel free to go crazy.

Received on Saturday, 15 January 2011 02:02:43 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:42 UTC