Re: [CSS4 Selectors] :matches naming bikeshed

On 06/19/2011 06:07 PM, Brian Kardell wrote:
> $ seems much less confusing to me personally, but I think almost anything would be.  I wasn't even  bothered by Ian's original
> # proposal.

OK.

> just out of curiosity, what would something like this mean (a value to the left of the subject) ...would it be valid?
>
> div:matches(.foo $ > .bar)

That means a div that has a .foo ancestor and a .bar child. It's the same
as writing

.foo $div > .bar

:matches() just means an element represented by the selector in its argument.

~fantasai

Received on Monday, 20 June 2011 17:27:40 UTC