Skip to content

Commit 2729381

Browse files
committed
[css-text-decor-3] Fix inconsistencies in text-underline-position examples / UA style sheet. #3441
1 parent c9ddc66 commit 2729381

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

css-text-decor-3/Overview.bs

+7-9
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,6 @@ Text Underline Position: the 'text-underline-position' property</h3>
361361
:root:lang(ja), [lang|=ja], :root:lang(ko), [lang|=ko] { text-underline-position: under right; }
362362
:root:lang(zh), [lang|=zh] { text-underline-position: under left; }
363363
</pre>
364-
<p>(Note that these rules are part of the suggested
365-
<a href="#default-stylesheet">default UA style sheet</a>.)
366364
</div>
367365

368366
<p>Values have the following meanings:
@@ -1036,12 +1034,10 @@ Appendix B: Default UA Stylesheet</h2>
10361034
/* set language-appropriate default underline position */
10371035
:root:lang(ja), [lang|=ja],
10381036
:root:lang(mn), [lang|=mn],
1039-
:root:lang(ko), [lang|=ko] { text-underline-position: auto right; }
1040-
:root:lang(zh), [lang|=zh] { text-underline-position: auto left; }
1041-
/* auto is used above instead of under due to content-compatibility concerns */
1042-
[lang]:not([lang|=zh], [lang|=ja], [lang|=ko], [lang|=mn]) {
1043-
text-underline-position: auto;
1044-
}
1037+
:root:lang(ko), [lang|=ko] { text-underline-position: right; }
1038+
:root:lang(zh), [lang|=zh] { text-underline-position: left; }
1039+
/* auto is chosen (implied) above instead of under
1040+
due to content-compatibility concerns */
10451041
</code></pre>
10461042
</div>
10471043

@@ -1076,10 +1072,12 @@ Changes</h2>
10761072
<h3 class="no-num" id="recent-changes">
10771073
Changes since the <a href="https://www.w3.org/TR/2018/CR-css-text-decor-3-20180703/">July 2018 Candidate Recommendation</a></h3>
10781074

1079-
<p>Significant changes include:</p>
1075+
<p>Changes include:</p>
10801076
<ul>
10811077
<li>Clarified that text decoration overflow is <a>ink overflow</a>.
10821078
(<a href="https://github.com/w3c/csswg-drafts/issues/3272">Issue 3272</a>)
1079+
<li>Fixed inconsistencies in sample 'text-underline-position' rules.
1080+
(<a href="https://github.com/w3c/csswg-drafts/issues/3441">Issue 3441</a>)
10831081
</ul>
10841082

10851083
<h3 class="no-num" id="recent-changes">

0 commit comments

Comments
 (0)