[html5] r7643 - [giow] (0) Magic alignment fixes Affected topics: HTML

whatwg at whatwg.org whatwg at whatwg.org
Thu Jan 17 14:47:42 PST 2013


Author: ianh
Date: 2013-01-17 14:47:41 -0800 (Thu, 17 Jan 2013)
New Revision: 7643

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Magic alignment fixes
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2013-01-17 20:37:22 UTC (rev 7642)
+++ complete.html	2013-01-17 22:47:41 UTC (rev 7643)
@@ -59496,18 +59496,23 @@
    <li><p>Let <var title="">dialog</var> be <a href=#magically-aligned>magically
    aligned</a> to <var title="">anchor element</var>.</li>
 
-  </ol><p>While an element <var title="">A</var> is <dfn id=magically-aligned>magically
-  aligned</dfn> to an element <var title="">B</var>, <var title="">A</var> and <var title="">B</var> both have rendered boxes,
-  and <var title="">B</var> is not a descendant of <var title="">A</var>, the following requirements apply:</p>
+  </ol><p>While an element <var title="">A</var> is <dfn id=magically-aligned>magically aligned</dfn> to an element <var title="">B</var>, <var title="">A</var> and <var title="">B</var> both have rendered boxes, <var title="">A</var> and <var title="">B</var> are both in the same <code><a href=#document>Document</a></code>, and <var title="">B</var> is earlier than <var title="">A</var> in <a href=#tree-order>tree order</a>, the following
+  requirements apply:</p>
 
-  <ul><li><p><var title="">A</var>'s 'position' property must compute to
-   the keyword '<dfn id=css-position-absolute-anchored title=css-position-absolute-anchored>absolute-anchored</dfn>'.</li>
+  <ul><li>
 
+    <p><var title="">A</var>'s 'position' property must compute to the keyword '<a href=#css-position-absolute-anchored title=css-position-absolute-anchored>absolute-anchored</a>' rather than whatever it would
+    otherwise compute to (i.e. the 'position' property's specified value is ignored).</p>
+
+    <p class=note>The '<a href=#css-position-absolute-anchored title=css-position-absolute-anchored>absolute-anchored</a>'
+    keyword's requirements are described below.</p>
+
+   </li>
+
    <li>
 
-    <p>Let <var title="">A</var> and <var title="">B</var>'s anchor
-    points be defined as per the appropriate entry in the following
-    list:</p>
+    <p>The anchor points for <var title="">A</var> and <var title="">B</var> are defined as per the
+    appropriate entry in the following list:</p>
 
     <dl class=switch><dt>If the computed value of 'anchor-point' is 'none' on both
      <var title="">A</var> and <var title="">B</var>
@@ -59638,25 +59643,24 @@
   However, there are many other cases; e.g. table columns do not have
   boxes (their properties merely affect other boxes).</p>
 
-  <p>When an element's 'position' property must compute to
-  'absolute-anchored', the 'float', property does not apply and must
-  compute to 'none', the 'display' property must compute to a value as
-  described by the table in <a href=http://www.w3.org/TR/CSS21/visuren.html#dis-pos-flo>the
-  section of CSS 2.1 describing the <cite>relationships between
-  'display', 'position', and 'float'</cite></a>, and the element's box
-  must be positioned using the rules for absolute positioning but with
-  its static position set such that if the box is positioned in its
-  static position, its anchor point is exactly aligned over the anchor
-  point of the element to which it is <a href=#magically-aligned>magically
+  <p>When an element's 'position' property computes to '<dfn id=css-position-absolute-anchored title=css-position-absolute-anchored>absolute-anchored</dfn>', the 'float' property does not
+  apply and must compute to 'none', the 'display' property must compute to a value as described by
+  the table in <a href=http://www.w3.org/TR/CSS21/visuren.html#dis-pos-flo>the section of CSS 2.1
+  describing the <cite>relationships between 'display', 'position', and 'float'</cite></a>, and the
+  element's box must be positioned using the rules for absolute positioning but with its static
+  position set such that if the box is positioned in its static position, its anchor point is
+  exactly aligned over the anchor point of the element to which it is <a href=#magically-aligned>magically
   aligned</a>.</p>
 
-  <p class=note>The 'absolute-anchored' keyword is not a keyword
-  that can be specified in CSS; the 'position' property can only
-  compute to this value if the <code><a href=#the-dialog-element>dialog</a></code> element is
-  positioned via the APIs described above.</p>
+  <p>If an element to which another element is anchored changes rendering, the anchored element must
+  be repositioned accordingly. (In other words, the requirements above are live, they are not just
+  calculated once per anchored element.)</p>
 
-<!--TOPIC:DOM APIs-->
-  <p>The <dfn id=dom-dialog-open title=dom-dialog-open><code>open</code></dfn> IDL
+  <p class=note>The '<a href=#css-position-absolute-anchored title=css-position-absolute-anchored>absolute-anchored</a>'
+  keyword is not a keyword that can be specified in CSS; the 'position' property can only compute to
+  this value if the <code><a href=#the-dialog-element>dialog</a></code> element is positioned via the APIs described above.</p>
+
+  <hr><!--TOPIC:DOM APIs--><p>The <dfn id=dom-dialog-open title=dom-dialog-open><code>open</code></dfn> IDL
   attribute must <a href=#reflect>reflect</a> the <code title=attr-dialog-open><a href=#attr-dialog-open>open</a></code> content attribute.</p>
 <!--TOPIC:HTML-->
 
@@ -105185,6 +105189,7 @@
   Mathias Bynens,
   Mathieu Henri,
   Matias Larsson,
+  Matt Falkenhagen,
   Matt Schmidt,
   Matt Wright,
   Matthew Gregan,

Modified: index
===================================================================
--- index	2013-01-17 20:37:22 UTC (rev 7642)
+++ index	2013-01-17 22:47:41 UTC (rev 7643)
@@ -59496,18 +59496,23 @@
    <li><p>Let <var title="">dialog</var> be <a href=#magically-aligned>magically
    aligned</a> to <var title="">anchor element</var>.</li>
 
-  </ol><p>While an element <var title="">A</var> is <dfn id=magically-aligned>magically
-  aligned</dfn> to an element <var title="">B</var>, <var title="">A</var> and <var title="">B</var> both have rendered boxes,
-  and <var title="">B</var> is not a descendant of <var title="">A</var>, the following requirements apply:</p>
+  </ol><p>While an element <var title="">A</var> is <dfn id=magically-aligned>magically aligned</dfn> to an element <var title="">B</var>, <var title="">A</var> and <var title="">B</var> both have rendered boxes, <var title="">A</var> and <var title="">B</var> are both in the same <code><a href=#document>Document</a></code>, and <var title="">B</var> is earlier than <var title="">A</var> in <a href=#tree-order>tree order</a>, the following
+  requirements apply:</p>
 
-  <ul><li><p><var title="">A</var>'s 'position' property must compute to
-   the keyword '<dfn id=css-position-absolute-anchored title=css-position-absolute-anchored>absolute-anchored</dfn>'.</li>
+  <ul><li>
 
+    <p><var title="">A</var>'s 'position' property must compute to the keyword '<a href=#css-position-absolute-anchored title=css-position-absolute-anchored>absolute-anchored</a>' rather than whatever it would
+    otherwise compute to (i.e. the 'position' property's specified value is ignored).</p>
+
+    <p class=note>The '<a href=#css-position-absolute-anchored title=css-position-absolute-anchored>absolute-anchored</a>'
+    keyword's requirements are described below.</p>
+
+   </li>
+
    <li>
 
-    <p>Let <var title="">A</var> and <var title="">B</var>'s anchor
-    points be defined as per the appropriate entry in the following
-    list:</p>
+    <p>The anchor points for <var title="">A</var> and <var title="">B</var> are defined as per the
+    appropriate entry in the following list:</p>
 
     <dl class=switch><dt>If the computed value of 'anchor-point' is 'none' on both
      <var title="">A</var> and <var title="">B</var>
@@ -59638,25 +59643,24 @@
   However, there are many other cases; e.g. table columns do not have
   boxes (their properties merely affect other boxes).</p>
 
-  <p>When an element's 'position' property must compute to
-  'absolute-anchored', the 'float', property does not apply and must
-  compute to 'none', the 'display' property must compute to a value as
-  described by the table in <a href=http://www.w3.org/TR/CSS21/visuren.html#dis-pos-flo>the
-  section of CSS 2.1 describing the <cite>relationships between
-  'display', 'position', and 'float'</cite></a>, and the element's box
-  must be positioned using the rules for absolute positioning but with
-  its static position set such that if the box is positioned in its
-  static position, its anchor point is exactly aligned over the anchor
-  point of the element to which it is <a href=#magically-aligned>magically
+  <p>When an element's 'position' property computes to '<dfn id=css-position-absolute-anchored title=css-position-absolute-anchored>absolute-anchored</dfn>', the 'float' property does not
+  apply and must compute to 'none', the 'display' property must compute to a value as described by
+  the table in <a href=http://www.w3.org/TR/CSS21/visuren.html#dis-pos-flo>the section of CSS 2.1
+  describing the <cite>relationships between 'display', 'position', and 'float'</cite></a>, and the
+  element's box must be positioned using the rules for absolute positioning but with its static
+  position set such that if the box is positioned in its static position, its anchor point is
+  exactly aligned over the anchor point of the element to which it is <a href=#magically-aligned>magically
   aligned</a>.</p>
 
-  <p class=note>The 'absolute-anchored' keyword is not a keyword
-  that can be specified in CSS; the 'position' property can only
-  compute to this value if the <code><a href=#the-dialog-element>dialog</a></code> element is
-  positioned via the APIs described above.</p>
+  <p>If an element to which another element is anchored changes rendering, the anchored element must
+  be repositioned accordingly. (In other words, the requirements above are live, they are not just
+  calculated once per anchored element.)</p>
 
-<!--TOPIC:DOM APIs-->
-  <p>The <dfn id=dom-dialog-open title=dom-dialog-open><code>open</code></dfn> IDL
+  <p class=note>The '<a href=#css-position-absolute-anchored title=css-position-absolute-anchored>absolute-anchored</a>'
+  keyword is not a keyword that can be specified in CSS; the 'position' property can only compute to
+  this value if the <code><a href=#the-dialog-element>dialog</a></code> element is positioned via the APIs described above.</p>
+
+  <hr><!--TOPIC:DOM APIs--><p>The <dfn id=dom-dialog-open title=dom-dialog-open><code>open</code></dfn> IDL
   attribute must <a href=#reflect>reflect</a> the <code title=attr-dialog-open><a href=#attr-dialog-open>open</a></code> content attribute.</p>
 <!--TOPIC:HTML-->
 
@@ -105185,6 +105189,7 @@
   Mathias Bynens,
   Mathieu Henri,
   Matias Larsson,
+  Matt Falkenhagen,
   Matt Schmidt,
   Matt Wright,
   Matthew Gregan,

Modified: source
===================================================================
--- source	2013-01-17 20:37:22 UTC (rev 7642)
+++ source	2013-01-17 22:47:41 UTC (rev 7643)
@@ -69628,23 +69628,29 @@
 
   </ol>
 
-  <p>While an element <var title="">A</var> is <dfn>magically
-  aligned</dfn> to an element <var title="">B</var>, <var
-  title="">A</var> and <var title="">B</var> both have rendered boxes,
-  and <var title="">B</var> is not a descendant of <var
-  title="">A</var>, the following requirements apply:</p>
+  <p>While an element <var title="">A</var> is <dfn>magically aligned</dfn> to an element <var
+  title="">B</var>, <var title="">A</var> and <var title="">B</var> both have rendered boxes, <var
+  title="">A</var> and <var title="">B</var> are both in the same <code>Document</code>, and <var
+  title="">B</var> is earlier than <var title="">A</var> in <span>tree order</span>, the following
+  requirements apply:</p>
 
   <ul>
 
-   <li><p><var title="">A</var>'s 'position' property must compute to
-   the keyword '<dfn
-   title="css-position-absolute-anchored">absolute-anchored</dfn>'.</p></li>
+   <li>
 
+    <p><var title="">A</var>'s 'position' property must compute to the keyword '<span
+    title="css-position-absolute-anchored">absolute-anchored</span>' rather than whatever it would
+    otherwise compute to (i.e. the 'position' property's specified value is ignored).</p>
+
+    <p class="note">The '<span title="css-position-absolute-anchored">absolute-anchored</span>'
+    keyword's requirements are described below.</p>
+
+   </li>
+
    <li>
 
-    <p>Let <var title="">A</var> and <var title="">B</var>'s anchor
-    points be defined as per the appropriate entry in the following
-    list:</p>
+    <p>The anchor points for <var title="">A</var> and <var title="">B</var> are defined as per the
+    appropriate entry in the following list:</p>
 
     <dl class="switch">
 
@@ -69793,24 +69799,26 @@
   However, there are many other cases; e.g. table columns do not have
   boxes (their properties merely affect other boxes).</p>
 
-  <p>When an element's 'position' property must compute to
-  'absolute-anchored', the 'float', property does not apply and must
-  compute to 'none', the 'display' property must compute to a value as
-  described by the table in <a
-  href="http://www.w3.org/TR/CSS21/visuren.html#dis-pos-flo">the
-  section of CSS 2.1 describing the <cite>relationships between
-  'display', 'position', and 'float'</cite></a>, and the element's box
-  must be positioned using the rules for absolute positioning but with
-  its static position set such that if the box is positioned in its
-  static position, its anchor point is exactly aligned over the anchor
-  point of the element to which it is <span>magically
+  <p>When an element's 'position' property computes to '<dfn
+  title="css-position-absolute-anchored">absolute-anchored</dfn>', the 'float' property does not
+  apply and must compute to 'none', the 'display' property must compute to a value as described by
+  the table in <a href="http://www.w3.org/TR/CSS21/visuren.html#dis-pos-flo">the section of CSS 2.1
+  describing the <cite>relationships between 'display', 'position', and 'float'</cite></a>, and the
+  element's box must be positioned using the rules for absolute positioning but with its static
+  position set such that if the box is positioned in its static position, its anchor point is
+  exactly aligned over the anchor point of the element to which it is <span>magically
   aligned</span>.</p>
 
-  <p class="note">The 'absolute-anchored' keyword is not a keyword
-  that can be specified in CSS; the 'position' property can only
-  compute to this value if the <code>dialog</code> element is
-  positioned via the APIs described above.</p>
+  <p>If an element to which another element is anchored changes rendering, the anchored element must
+  be repositioned accordingly. (In other words, the requirements above are live, they are not just
+  calculated once per anchored element.)</p>
 
+  <p class="note">The '<span title="css-position-absolute-anchored">absolute-anchored</span>'
+  keyword is not a keyword that can be specified in CSS; the 'position' property can only compute to
+  this value if the <code>dialog</code> element is positioned via the APIs described above.</p>
+
+  <hr>
+
 <!--TOPIC:DOM APIs-->
   <p>The <dfn title="dom-dialog-open"><code>open</code></dfn> IDL
   attribute must <span>reflect</span> the <code
@@ -123118,6 +123126,7 @@
   Mathias Bynens,
   Mathieu Henri,
   Matias Larsson,
+  Matt Falkenhagen,
   Matt Schmidt,
   Matt Wright,
   Matthew Gregan,




More information about the Commit-Watchers mailing list