W3C home > Mailing lists > Public > public-html-diffs@w3.org > April 2012

hixie: Oops, forgot to center the <dialog> element vertically when it is not anchored. (whatwg r7051)

From: poot <cvsmail@w3.org>
Date: Wed, 11 Apr 2012 19:22:39 -0400
To: public-html-diffs@w3.org
Message-Id: <E1SI6s3-0001Iw-A9@jay.w3.org>
hixie: Oops, forgot to center the <dialog> element vertically when it is
not anchored. (whatwg r7051)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5621&r2=1.5622&f=h
http://html5.org/tools/web-apps-tracker?from=7050&to=7051

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5621
retrieving revision 1.5622
diff -u -d -r1.5621 -r1.5622
--- Overview.html	11 Apr 2012 00:42:32 -0000	1.5621
+++ Overview.html	11 Apr 2012 23:22:23 -0000	1.5622
@@ -49757,8 +49757,9 @@
 
    <li><p>If the <code title="dom-dialog-show"><a href="#dom-dialog-show">show()</a></code> method
    was invoked with an argument, <a href="#set-up-the-position">set up the position</a> of
-   the <code><a href="#the-dialog-element">dialog</a></code> element, using that argument as the
-   anchor.</li>
+   the <code><a href="#the-dialog-element">dialog</a></code> element, using that argument as the anchor.
+   Otherwise, <a href="#set-up-the-default-static-position">set up the default static position</a> of the
+   dialog element.</li>
 
   </ol><hr><p>Each <code><a href="#document">Document</a></code> has a stack of <code><a href="#the-dialog-element">dialog</a></code>
   elements known as the <dfn id="pending-dialog-stack">pending dialog stack</dfn>. When a
@@ -49792,7 +49793,8 @@
    <li><p>If the <code title="dom-dialog-showModal"><a href="#dom-dialog-showmodal">showModal()</a></code>
    method was invoked with an argument, <a href="#set-up-the-position">set up the
    position</a> of <var title="">dialog</var>, using that argument
-   as the anchor.</li>
+   as the anchor. Otherwise, <a href="#set-up-the-default-static-position">set up the default static
+   position</a> of the dialog element.</li>
 
    <li><p>Let <var title="">dialog</var>'s <code><a href="#document">Document</a></code> be
    <a href="#blocked-by-a-modal-dialog" title="blocked by a modal dialog">blocked by the modal
@@ -49882,7 +49884,25 @@
   <p class="note">An example of such a UI mechanism would be the user
   pressing the "Escape" key.</p>
 
-  <hr><p>When a user agent is to <dfn id="set-up-the-position">set up the position</dfn> of an
+  <hr><p>When a user agent is to <dfn id="set-up-the-default-static-position">set up the default static
+  position</dfn> of an element <var title="">dialog</var> without an
+  anchor, it must set up the element such that its top static
+  position, for the purposes of calculating the used value of the
+  'top' property, is the value that would place the element's top
+  margin edge as far from the top of the viewport as the element's
+  bottom margin edge from the bottom of the viewport, if the element's
+  height is less than the height of the viewport, and otherwise is the
+  value that would place the element's top margin edge at the top of
+  the viewport.</p>
+
+  <p>This top static position must remain the element's top static
+  position until it is next changed by the above algorithm or the next
+  one. (The element's static position is only used in calculating the
+  used value of the 'top' property in certain situations; it's not
+  used, for instance, to position the element if its 'position'
+  property is set to 'static'.)</p>
+
+  <p>When a user agent is to <dfn id="set-up-the-position">set up the position</dfn> of an
   element <var title="">dialog</var> using an anchor <var title="">anchor</var>, it must run the following steps:</p>
 
   <ol><li>
Received on Wednesday, 11 April 2012 23:22:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 11 April 2012 23:22:42 GMT