<?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>58341</bug_id>
          
          <creation_ts>2011-04-12 10:13:43 -0700</creation_ts>
          <short_desc>Improve media controls state management code by using CSS selectors</short_desc>
          <delta_ts>2014-10-22 10:31:41 -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>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>
          <dependson>58342</dependson>
          <blocked>58345</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dimitri Glazkov (Google)">dglazkov</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>sjl</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>384094</commentid>
    <comment_count>0</comment_count>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2011-04-12 10:13:43 -0700</bug_when>
    <thetext>Today, the code in media controls explicitly sets inline styles on specific controls to hide or show them. This can be completely eliminated if we instead manipulate state using DOM attributes. For example, if a network error occurs, we can set &quot;disabled&quot; attribute on the timeline control, and then specify in mediaControls.css:

video::-webkit-media-controls-timeline:disabled { display: none; }

Unfortunately, this is not immediately possible due to a restriction on how CSS selectors can be combined: the pseudo-element selector must always be the last one. Otherwise, the selector is deemed invalid.

Hyatt suggested that we relax this requirement, much the same way we relaxed it to allow scrollbar styling.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>