Skip to content

Commit ea0f559

Browse files
committed
[css-text-4] Don't let hanging-punctuation inherit into pre elements
Closes w3c#9689
1 parent a3cc2a6 commit ea0f559

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

css-text-4/Overview.bs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11956,6 +11956,9 @@ Default UA Stylesheet</h2>
1195611956
1195711957
/* preserve character grid in preformatted text */
1195811958
pre, code, kbd, samp, tt { text-spacing: none; }
11959+
11960+
/* Avoid hanging punctuation inheriting into preformatted blocks */
11961+
pre { hanging-punctuation: none; }
1195911962
</pre>
1196011963
</div>
1196111964
<!--
@@ -13073,6 +13076,8 @@ Changes</h2>
1307313076
(<a href="https://github.com/w3c/csswg-drafts/issues/9532">Issue 9532</a>)
1307413077
* Clarify details of fullwidth punctuation collapsing.
1307513078
(<a href="https://github.com/w3c/csswg-drafts/issues/9225">Issue 9225</a>)
13079+
* Prevent pre from inheriting hanging-punctuation by default with a user-agent style rule.
13080+
(<a href="https://github.com/w3c/csswg-drafts/issues/9689">Issue 9689</a>)
1307613081
1307713082
Significant changes since the <a href="https://www.w3.org/TR/2023/WD-css-text-4-20230329/">29 March 2023 Working Draft</a> include:
1307813083
* Recast the 'text-wrap' property as a shorthand of two new properties,

0 commit comments

Comments
 (0)