You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an inline box contains a block box, the inline box (and its inline ancestors within the same line box) are broken around the block. The line boxes before the break and after the break are enclosed in anonymous boxes, and the block box becomes a sibling of those anonymous boxes.
7170
+
When such an inline box is affected by relative positioning,
7171
+
the relative positioning also affects the block box.
@@ -10684,6 +10686,9 @@ <h2>10.7 <a name="min-max-heights">Minimum and maximum heights</a>: <a href="vis
10684
10686
</li>
10685
10687
</ol>
10686
10688
10689
+
<p class="note">These steps do not affect the real computed values of
10690
+
the above properties.</p>
10691
+
10687
10692
<p>However, for replaced elements with both <a href="visudet.html#propdef-width" class="noxref"><span
10688
10693
class="propinst-width">'width'</span></a> and <a href="visudet.html#propdef-height" class="noxref"><span
10689
10694
class="propinst-height">'height'</span></a> computed as 'auto', use the
@@ -14770,20 +14775,20 @@ <h3>16.3.1 <a name="lining-striking-props">Underlining, overlining, striking, an
14770
14775
positioned descendants, nor to the contents of 'inline-table' and
14771
14776
'inline-block' descendants.
14772
14777
</p><p>
14773
-
If an element contains no text (ignoring white space in elements
14774
-
that have 'white-space' set to 'normal', 'pre-line', or 'nowrap'),
14775
-
user agents must refrain from rendering text decorations on the
14776
-
element. For example, elements containing only images and collapsed
14777
-
white space will not be underlined.
14778
+
Underlines, overlines, and line-throughs are applied only to text
14779
+
(including whitespace, letter spacing, and word spacing): margins,
14780
+
borders, and padding are skipped. If an element contains no text,
14781
+
user agents must refrain from rendering these text decorations on the
14782
+
element. For example, images will not be underlined.
14778
14783
</p><p>
14779
-
Text decorations on inline boxes are drawn across the entire
14780
-
element, going across any descendant elements without paying any
14781
-
attention to their presence. The 'text-decoration' property on
14782
-
descendant elements cannot have any effect on the decoration of the
14783
-
element. In determining the position of and thickness of text
14784
-
decoration lines, user agents may consider the font sizes of and
14785
-
dominant baselines of descendants, but must use the same baseline
14786
-
and thickness on each line.
14784
+
The 'text-decoration' property on descendant elements cannot have any
14785
+
effect on the decoration of the ancestor. In determining the position
14786
+
of and thickness of textdecoration lines, user agents may consider the
14787
+
font sizes of and dominant baselines of descendants, but must use the
14788
+
same baseline and thickness on each line. Relatively positioning a
14789
+
descendant moves all text decorations affecting it along with the
14790
+
descendant's text; it does not affect calculation of the decoration's
14791
+
initial position on that line.
14787
14792
</p>
14788
14793
14789
14794
<p>Values have the following meanings:</p>
@@ -14807,13 +14812,13 @@ <h3>16.3.1 <a name="lining-striking-props">Underlining, overlining, striking, an
14807
14812
<p>
14808
14813
The color(s) required for the text decoration must be derived from
14809
14814
the <a href="colors.html#propdef-color" class="noxref"><span class="propinst-color">'color'</span></a> property value of the element on which 'text-decoration'
14810
-
is set. The color of decorations should remain the same even if
14815
+
is set. The color of decorations must remain the same even if
14811
14816
descendant elements have different <a href="colors.html#propdef-color" class="noxref"><span class="propinst-color">'color'</span></a> values.
14812
14817
</p>
14813
14818
<p>
14814
14819
Some user agents have implemented text-decoration by
14815
14820
propagating the decoration to the descendant elements as opposed to
14816
-
simply drawing the decoration through the elements as described
14821
+
preserving a constant thickness and line position as described
14817
14822
above. This was arguably allowed by the looser wording in CSS2. SVG1,
14818
14823
CSS1-only, and CSS2-only user agents may implement the older model
14819
14824
and still claim conformance to this part of CSS 2.1. (This does not
0 commit comments