Re: Selector Syntax Survey - subject indicator vs :has()

In the comments to the earlier survey, I noticed someone choosing :has()
because '!' means negation in programming languages.

But this does not to apply to CSS for the following reasons:

1. With `!important` the exclamation mark already has a meaning in CSS,
which is *the opposite* of negation. Like in the regular written word, it
indicates emphasis.

2. CSS is not a programming language, like SASS (of which voters may be
more familiar with).

So by that reasoning the exclaimation mark is a strong choice, since it
indicates emphasis and already has precedence in CSS syntax.









On 12 February 2014 09:25, Daniel Glazman <
daniel.glazman@disruptive-innovations.com> wrote:

> On 11/02/2014 21:52, Tab Atkins Jr. wrote:
>
>> I've just posted the selector syntax survey I was charged with at the
>> last f2f: https://docs.google.com/forms/d/1x0eXPBj1GN8Zau-7k9J_
>> JGhoM6uGEqlJBkBBDFswT2w/viewform
>>
>> This will help us decide whether to use the subject indicator or the
>> :has() pseudoclass.  Please answer and share this poll!
>>
>
> The poll was originally started with a choice between !foo > a and
> a:has(> foo) and then you changed it to ^foo > a and tthe :has() thing.
> Most people have voted and commented against ! but this is not relevant
> any more to ^... I suggest you reset your form and ask people to do
> the survey again.
>
> </Daniel>
>
>
>


-- 
Pete Boere
Web Developer

Received on Wednesday, 12 February 2014 09:49:45 UTC