<?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>26677</bug_id>
          
          <creation_ts>2014-08-26 21:54:35 +0000</creation_ts>
          <short_desc>Clarify when :fullscreen applies</short_desc>
          <delta_ts>2015-07-15 12:53:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Fullscreen</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Philip Jägenstedt">philipj</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>110647</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-08-26 21:54:35 +0000</bug_when>
    <thetext>http://fullscreen.spec.whatwg.org/#:fullscreen-pseudo-class

If an element at the top of its node document&apos;s fullscreen element stack is moved to another document, does the :fullscreen pseudo-class still apply until the old document&apos;s fullscreen element stack is updated in exitFullscreen()?

If yes, it becomes a bit harder to implement :fullscreen, one would have to have a flag per element instead of checking the the element&apos;s node document&apos;s fullscreen element stack. Do not like.

If no, scripts will immediately observe the change in element.matches(&apos;:fullscreen&apos;) but the change in oldDocument.fullscreenElement will be async. That&apos;s a bit weird, but maybe OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111127</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-06 15:28:01 +0000</bug_when>
    <thetext>Why would the change to oldDocument.fullscreenElement be asynchronous? As far as I can tell it is identical to :fullscreen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111133</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-09-06 21:44:10 +0000</bug_when>
    <thetext>It&apos;s the difference between an element being at the top of any document&apos;s fullscreen element stack, and being at the top of that element&apos;s node document&apos;s fullscreen element stack. The latter makes more sense I think.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111136</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-07 07:05:01 +0000</bug_when>
    <thetext>Oh I see. The removing steps are sometimes synchronous and sometimes not. As per that other bug. This sucks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122059</commentid>
    <comment_count>4</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-07-15 12:53:06 +0000</bug_when>
    <thetext>The spec now says what I asked for: &quot;The :fullscreen pseudo-class must match any element that is that element&apos;s node document&apos;s fullscreen element.&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>