Re: [selectors] Any benefit of [att|="val"] over [att="val"], [att^="val-"]

On 3 September 2014 09:27, James Craig <jcraig@apple.com> wrote:

> What's the benefit of this very specific and seemingly limited [att|=val]
> selector:
>
>         [lang|="en"] { /* properties */ }
>
> Over this combination of more extensible selectors?
>
>         [lang="en"], [lang^="en-"] { /* properties */ }
>
> If there is no real benefit, should it be dropped from the selectors
> module?

Disregarding whether it adds a benefit, as that selector is already defined
in CSS 2.1[1] and implemented by all main user agents[2], it can't be
dropped anymore.

Sebastian

[1] http://www.w3.org/TR/CSS21/selector.html#attribute-selectors

Received on Wednesday, 3 September 2014 07:56:36 UTC