<?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>24383</bug_id>
          
          <creation_ts>2014-01-24 16:02:10 +0000</creation_ts>
          <short_desc>Is :nth-match() and :nth-last-match() are necessary?</short_desc>
          <delta_ts>2014-01-28 15:13:12 +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>Windows NT</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>99007</commentid>
    <comment_count>0</comment_count>
    <who name="Arkadiusz Michalski (Spirit)">crimsteam</who>
    <bug_when>2014-01-24 16:02:10 +0000</bug_when>
    <thetext>It&apos;s clear how this selector &quot;p.foo:nth-child(even)&quot; work, like you describe, and why you put this &quot;:nth-match(even p.foo)&quot;.

But this two selectors:

:nth-match(even of p.foo)
p.foo:nth-of-type(even)

don&apos;t have the same result?

So only improve for this new pseudo is that whe can use selector list:

:nth-match(even of p,div) {}
the same as:
:nth-match(even of p), :nth-match(even of div) {}
p:nth-of-type(even), div.foo:nth-of-type(even) {}

or :nth-match(even of p,div) means, take p and div (it would be one sub sibling list) and start indexing. This will be nice, but when I see that selector list is treated as union, benefit is less. Or add new variant (conjunction) for argument in functional pseudo, like p^div, p&amp;div, or sth similar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99299</commentid>
    <comment_count>1</comment_count>
    <who name="Arkadiusz Michalski (Spirit)">crimsteam</who>
    <bug_when>2014-01-28 15:13:12 +0000</bug_when>
    <thetext>Ok, now I see that 

:nth-match(even of p.foo)
p.foo:nth-of-type(even)

is not same, this is same:

:nth-match(even of p)
p:nth-of-type(even)

But still wondering how interpretate list of selector in this :nth-match(even of p,div).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>