<?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>27863</bug_id>
          
          <creation_ts>2015-01-20 06:05:50 +0000</creation_ts>
          <short_desc>Not need to specify moving element in top layer and fullscreen stack</short_desc>
          <delta_ts>2015-07-03 12:29:56 +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>All</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>
          <dependson>27865</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Xidorn Quan">xidorn+w3c</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>117334</commentid>
    <comment_count>0</comment_count>
    <who name="Xidorn Quan">xidorn+w3c</who>
    <bug_when>2015-01-20 06:05:50 +0000</bug_when>
    <thetext>https://fullscreen.spec.whatwg.org/#concept-fullscreen-add

[[
To add an element on a document&apos;s fullscreen element stack, add, or move if already present, it on top of document&apos;s browsing context&apos;s top layer, and then add, or move if already present, it on top of document&apos;s fullscreen element stack.
]]

Since the spec includes the following items in the &quot;fullscreen element ready check&quot; algorithm:

[[
element&apos;s node document&apos;s fullscreen element stack is either empty or its top element is an inclusive ancestor of element. 
]]

I don&apos;t think it is possible that an element already in the stack could be added to the stack again.

Hence I suggest to remove the &quot;or move if already present&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117337</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-01-20 08:19:56 +0000</bug_when>
    <thetext>For top layer this is definitely untrue as that concept is shared with other features, such as &lt;dialog&gt;.

Why do you think it is true for the fullscreen element stack. It could be both non-empty and filled with elements that are not inclusive ancestors of the element in question, no?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117339</commentid>
    <comment_count>2</comment_count>
    <who name="Xidorn Quan">xidorn+w3c</who>
    <bug_when>2015-01-20 08:48:50 +0000</bug_when>
    <thetext>(In reply to Anne from comment #1)
&gt; For top layer this is definitely untrue as that concept is shared with other
&gt; features, such as &lt;dialog&gt;.

OK

&gt; Why do you think it is true for the fullscreen element stack. It could be
&gt; both non-empty and filled with elements that are not inclusive ancestors of
&gt; the element in question, no?

Because in this case, the requestFullscreen() method will fail in &quot;fullscreen element ready check&quot; step, which stops this method from adding element to the stack.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117340</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-01-20 08:56:22 +0000</bug_when>
    <thetext>Yeah sorry, I guess you&apos;re right. I&apos;m going to hold off on fixing this until I get a chance to fix the other outstanding issues.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121591</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-07-03 12:29:56 +0000</bug_when>
    <thetext>This was fixed by merging the two concepts in bug 27865.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>