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
[css-text-decor-3] Move the text about position/color/style of decorations to the respective properties. Propose details for how to position decorations, awaiting WG agreement.
@@ -361,27 +361,6 @@ <h2 id=line-decoration><span class=secno>2. </span> Line Decoration:
361
361
the <ahref="#decorating-box"><i>decorating box</i></a> are always
362
362
skipped.
363
363
364
-
<p>In determining the position and thickness of text decoration lines, user
365
-
agents may consider the font sizes and dominant baselines of descendants,
366
-
but for a given element's decoration must use the same position and
367
-
thickness throughout each line box. The <a
368
-
href="#text-decoration-color">color</a> and <a
369
-
href="#text-decoration-style">line style</a> of decorations must remain
370
-
the same on all decorations applied by a given element, even if descendant
371
-
boxes have different color or line style values.
372
-
373
-
<divclass=example>
374
-
<p>The following figure shows the averaging for underline:
375
-
376
-
<p><img
377
-
alt="In the first rendering of the underlined text '1st a' with 'st' as a superscript, both the '1st' and the 'a' are rendered in a small font. In the second rendering, the 'a' is rendered in a larger font. In the third, both '1st' and 'a' are large."
378
-
height=105src=underline-averaging.gifwidth=326>
379
-
380
-
<p>In the three fragments of underlined text, the underline is drawn
381
-
consecutively lower and thicker as the ratio of large text to small text
382
-
increases.
383
-
</div>
384
-
385
364
<p>Relatively positioning a descendant moves all text decorations applied
386
365
to it along with the descendant's text; it does not affect calculation of
387
366
the decoration's initial position on that line. The ‘<code
@@ -510,6 +489,53 @@ <h3 id=text-decoration-line-property><span class=secno>2.1. </span> Text
<dd> Position the line with respect to the lowest <i>under</i> content
513
+
edge of the decorated boxes.
514
+
515
+
<dt>line-throughs
516
+
517
+
<dd> Position the line to an average of the ideal line-throughs of the
518
+
decorated boxes, ignoring any boxes with non-initial ‘<code
519
+
class=property>vertical-align</code>’. However, if this would place a
520
+
line-through outside the middle third of a decorated box's content box,
521
+
break the line-through, treating the line-through of that box and its
522
+
descendants as an independent decoration for the purpose of determining
523
+
the line's position and thickness.
524
+
</dl>
525
+
</div>
526
+
527
+
<divclass=example>
528
+
<p>The following figure shows the averaging for underline:
529
+
530
+
<p><img
531
+
alt="In the first rendering of the underlined text '1st a' with 'st' as a superscript, both the '1st' and the 'a' are rendered in a small font. In the second rendering, the 'a' is rendered in a larger font. In the third, both '1st' and 'a' are large."
532
+
height=105src=underline-averaging.gifwidth=326>
533
+
534
+
<p>In the three fragments of underlined text, the underline is drawn
535
+
consecutively lower and thicker as the ratio of large text to small text
536
+
increases.
537
+
</div>
538
+
513
539
<h3id=text-decoration-color-property><spanclass=secno>2.2. </span> Text
514
540
Decoration Color: the ‘<ahref="#text-decoration-color"><code
0 commit comments