[html5] r8448 - [giow] (1) Make non-modal <dialog>s use the regular containing block, since they [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Jan 30 14:45:27 PST 2014


Author: ianh
Date: 2014-01-30 14:45:26 -0800 (Thu, 30 Jan 2014)
New Revision: 8448

Modified:
   complete.html
   index
   source
Log:
[giow] (1) Make non-modal <dialog>s use the regular containing block, since they're not on the top layer.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=20418
Affected topics: CSS, DOM APIs, HTML

Modified: complete.html
===================================================================
--- complete.html	2014-01-30 22:17:26 UTC (rev 8447)
+++ complete.html	2014-01-30 22:45:26 UTC (rev 8448)
@@ -52189,8 +52189,10 @@
   initialized to be empty.</p>
 
   <p>When an element is added to the <a href=#pending-dialog-stack>pending dialog stack</a>, it must also be added to the
-  <a href=#top-layer>top layer</a> layer. When an element is removed from the <a href=#pending-dialog-stack>pending dialog
-  stack</a>, it must be removed from the <a href=#top-layer>top layer</a>. <a href=#refsFULLSCREEN>[FULLSCREEN]</a></p>
+  <a href=#top-layer>top layer</a> layer and its containing block must be the initial containing block. When
+  an element is removed from the <a href=#pending-dialog-stack>pending dialog stack</a>, it must be removed from the
+  <a href=#top-layer>top layer</a>, and its containing block must revert to that given by the regular
+  containing block rules as defined by CSS. <a href=#refsFULLSCREEN>[FULLSCREEN]</a> <a href=#refsCSS>[CSS]</a></p>
 
   <p>When the <dfn id=dom-dialog-showmodal title=dom-dialog-showModal><code>showModal()</code></dfn> method is invoked,
   the user agent must run the following steps:</p>
@@ -52297,10 +52299,7 @@
 
   <p class=note>An example of such a UI mechanism would be the user pressing the "Escape" key.</p>
 
-  <hr><p>The containing block of all <code><a href=#the-dialog-element>dialog</a></code> elements that are <i>absolutely positioned</i>
-  must be the initial containing block.</p>
-
-  <p>All <code><a href=#the-dialog-element>dialog</a></code> elements are always in one of two modes: <dfn id=mundanely-aligned>mundanely aligned</dfn>,
+  <hr><p>All <code><a href=#the-dialog-element>dialog</a></code> elements are always in one of two modes: <dfn id=mundanely-aligned>mundanely aligned</dfn>,
   or <dfn id=magically-aligned>magically aligned</dfn>. When a <code><a href=#the-dialog-element>dialog</a></code> element is created, it must be placed
   in the <a href=#mundanely-aligned>mundanely aligned</a> mode and the user agent must <a href=#set-up-the-default-static-position>set up the default static
   position</a> for that element, without an anchor.</p>

Modified: index
===================================================================
--- index	2014-01-30 22:17:26 UTC (rev 8447)
+++ index	2014-01-30 22:45:26 UTC (rev 8448)
@@ -52189,8 +52189,10 @@
   initialized to be empty.</p>
 
   <p>When an element is added to the <a href=#pending-dialog-stack>pending dialog stack</a>, it must also be added to the
-  <a href=#top-layer>top layer</a> layer. When an element is removed from the <a href=#pending-dialog-stack>pending dialog
-  stack</a>, it must be removed from the <a href=#top-layer>top layer</a>. <a href=#refsFULLSCREEN>[FULLSCREEN]</a></p>
+  <a href=#top-layer>top layer</a> layer and its containing block must be the initial containing block. When
+  an element is removed from the <a href=#pending-dialog-stack>pending dialog stack</a>, it must be removed from the
+  <a href=#top-layer>top layer</a>, and its containing block must revert to that given by the regular
+  containing block rules as defined by CSS. <a href=#refsFULLSCREEN>[FULLSCREEN]</a> <a href=#refsCSS>[CSS]</a></p>
 
   <p>When the <dfn id=dom-dialog-showmodal title=dom-dialog-showModal><code>showModal()</code></dfn> method is invoked,
   the user agent must run the following steps:</p>
@@ -52297,10 +52299,7 @@
 
   <p class=note>An example of such a UI mechanism would be the user pressing the "Escape" key.</p>
 
-  <hr><p>The containing block of all <code><a href=#the-dialog-element>dialog</a></code> elements that are <i>absolutely positioned</i>
-  must be the initial containing block.</p>
-
-  <p>All <code><a href=#the-dialog-element>dialog</a></code> elements are always in one of two modes: <dfn id=mundanely-aligned>mundanely aligned</dfn>,
+  <hr><p>All <code><a href=#the-dialog-element>dialog</a></code> elements are always in one of two modes: <dfn id=mundanely-aligned>mundanely aligned</dfn>,
   or <dfn id=magically-aligned>magically aligned</dfn>. When a <code><a href=#the-dialog-element>dialog</a></code> element is created, it must be placed
   in the <a href=#mundanely-aligned>mundanely aligned</a> mode and the user agent must <a href=#set-up-the-default-static-position>set up the default static
   position</a> for that element, without an anchor.</p>

Modified: source
===================================================================
--- source	2014-01-30 22:17:26 UTC (rev 8447)
+++ source	2014-01-30 22:45:26 UTC (rev 8448)
@@ -57699,9 +57699,11 @@
   initialized to be empty.</p>
 
   <p>When an element is added to the <span>pending dialog stack</span>, it must also be added to the
-  <span>top layer</span> layer. When an element is removed from the <span>pending dialog
-  stack</span>, it must be removed from the <span>top layer</span>. <a
-  href="#refsFULLSCREEN">[FULLSCREEN]</a></p>
+  <span>top layer</span> layer and its containing block must be the initial containing block. When
+  an element is removed from the <span>pending dialog stack</span>, it must be removed from the
+  <span>top layer</span>, and its containing block must revert to that given by the regular
+  containing block rules as defined by CSS. <a href="#refsFULLSCREEN">[FULLSCREEN]</a> <a
+  href="#refsCSS">[CSS]</a></p>
 
   <p>When the <dfn data-x="dom-dialog-showModal"><code>showModal()</code></dfn> method is invoked,
   the user agent must run the following steps:</p>
@@ -57840,9 +57842,6 @@
 
   <hr>
 
-  <p>The containing block of all <code>dialog</code> elements that are <i>absolutely positioned</i>
-  must be the initial containing block.</p>
-
   <p>All <code>dialog</code> elements are always in one of two modes: <dfn>mundanely aligned</dfn>,
   or <dfn>magically aligned</dfn>. When a <code>dialog</code> element is created, it must be placed
   in the <span>mundanely aligned</span> mode and the user agent must <span>set up the default static




More information about the Commit-Watchers mailing list