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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>59867</bug_id>
          
          <creation_ts>2011-04-30 10:10:07 -0700</creation_ts>
          <short_desc>Add support for media pseudo-classes</short_desc>
          <delta_ts>2023-10-21 14:33:32 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>71216</dependson>
          <blocked>58345</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dimitri Glazkov (Google)">dglazkov</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>arun.patole</cc>
    
    <cc>eoconnor</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>ntim</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>395822</commentid>
    <comment_count>0</comment_count>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2011-04-30 10:10:07 -0700</bug_when>
    <thetext>See discussion on whatwg: http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-April/thread.html#31315

Per WebKit contributor meeting discussion:

Ready states:
  - error
  - unknown
  - buffering

Runtime states:
  - playing

Media characteristics:
  - has-closed-captioning
  - has-audio
  - has-video
  - has-duration


Example of how to use for default UA stylesheets:
 - Browser A always wants to display a closed captioning button, but have it disabled when there are no closed captioning. Default style for video:has-closed-captioning is disabled.
 - Browser B only wants to display a closed captioning button when present. Default style for video:has-closed-captioning is display:none</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>487410</commentid>
    <comment_count>1</comment_count>
    <who name="Arun Patole">arun.patole</who>
    <bug_when>2011-10-20 01:42:00 -0700</bug_when>
    <thetext>Looks like this will be a good addition. If no one is working on this I will try to submit a patch.

Is this a final list of media pseudo classes that we have planned to add? Also one more thing, what does this &quot;unknown&quot; state mean?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>487602</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2011-10-20 08:50:38 -0700</bug_when>
    <thetext>Eric, do you remember what &quot;unknown&quot; meant? I lost track of this :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>487615</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2011-10-20 09:08:15 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Eric, do you remember what &quot;unknown&quot; meant? I lost track of this :)

I don&apos;t recall exactly, maybe for an element with preload=none?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>487669</commentid>
    <comment_count>4</comment_count>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2011-10-20 09:57:36 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; Eric, do you remember what &quot;unknown&quot; meant? I lost track of this :)
&gt; 
&gt; I don&apos;t recall exactly, maybe for an element with preload=none?

Maybe. Arun, I would recommend starting with a small set of pseudo-classes and iterating on that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>488319</commentid>
    <comment_count>5</comment_count>
    <who name="Arun Patole">arun.patole</who>
    <bug_when>2011-10-21 05:03:42 -0700</bug_when>
    <thetext>&gt; Maybe. Arun, I would recommend starting with a small set of pseudo-classes and iterating on that.

Ok, Thanks. I will start with small set. May be, media characteristics pseudo classes in first patch in separate bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1755535</commentid>
    <comment_count>6</comment_count>
    <who name="Theresa O&apos;Connor">eoconnor</who>
    <bug_when>2021-04-29 14:46:24 -0700</bug_when>
    <thetext>Selectors 4 has recently been updated to include the following pseudo-classes:

    :seeking
    :buffering
    :stalled
    :muted
    :volume-locked

These are in addition to these ones which already existed:

    :playing
    :paused

See the spec for the details:

    https://drafts.csswg.org/selectors-4/#resource-pseudos</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1755537</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-04-29 14:46:36 -0700</bug_when>
    <thetext>&lt;rdar://problem/77344273&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>