<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24239</bug_id>
          
          <creation_ts>2014-01-08 14:33:34 +0000</creation_ts>
          <short_desc>More clarification for argument in :not() and :matches()</short_desc>
          <delta_ts>2014-01-08 14:33:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>Selectors</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Arkadiusz Michalski (Spirit)">crimsteam</reporter>
          <assigned_to name="fantasai">fantasai.bugs</assigned_to>
          
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98132</commentid>
    <comment_count>0</comment_count>
    <who name="Arkadiusz Michalski (Spirit)">crimsteam</who>
    <bug_when>2014-01-08 14:33:34 +0000</bug_when>
    <thetext>Hello, in new module Selectors Level 4 we can use a selector list as an argument in :not() and :matches() pseudo-classes. But it will be nice (better) if one example will explain this case:

div:not(.heavy, #box) {color: red}

What exactly does it mean:

Case1
div:not(.heavy):not(#box) {color: red}

Case2 

div:not(.heavy), div:not(#box) {color: red}

equivalent:

div:not(.heavy) {color: red}
div:not(#box) {color: red}

Case1 and Case2 is not the same. Case2 will style &lt;p class=&quot;heavy&quot;&gt; (second rule) and &lt;p id=&quot;box&quot;&gt; (first rule), but Case1 no.

Maybe term&apos;s selector list in some way shown it, but one simple example can replace many long descriptions and uncertainties.

The same situation is for :matches(). I check it for :-moz-any() pseudo and it works like Case2. But dont know if :-moz-any() is or will be equivalent for :matches(). At this moment there is no browser with implements the new module, so we can&apos;t test anything.

On the other site, if not() and :matches() represent Case2, maybe consider adding next selector which represents Case1, like notAll(), matchesAll(), additional modyficator/identificator or sometching else. It can be short version for unnecessary repeat :not(), like:

:not():not():not():not():not():not()

PS. 

Last thing is unnecessary, I see in new level 4 we can sth like this:

:not([arg=val1][arg=val2][arg=val3][arg=val4][arg=val5][arg=val6])

and you considering multiple-value matching:

:not([arg=val1,val2,val3,val4,val5,val6]) &lt;&lt; but again I wander what comma will means, conjunction or alternative.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>