Skip to content

Commit 6a1d303

Browse files
committed
[css-text-3] Add appendix summarizing plaintext copy-paste rules wrt white-space and text-transform.
1 parent a15dde8 commit 6a1d303

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

css-text-3/Overview.bs

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2359,8 +2359,22 @@ Text Processing Order of Operations</h2>
23592359
<li><a href="#text-align-property">text alignment</a>
23602360
</ol>
23612361

2362+
<h2 class="no-num" id="plaintext">
2363+
Appendix B: Conversion to Plaintext</h2>
2364+
2365+
<p>This appendix is normative for the purpose of plaintext copy-paste operations.
2366+
2367+
<p>When a CSS-rendered document is converted to a plaintext format,
2368+
it is expected that:
2369+
<ul>
2370+
<li>The 'text-transform' property has no effect.
2371+
<li>[[#white-space-phase-1]] is applied and any sequence of
2372+
<a>collapsible</a> spaces at the beginning of a <a>block</a>
2373+
or immediately following a <a>forced line break</a> is removed.
2374+
</ul>
2375+
23622376
<h2 class="no-num" id="default-stylesheet">
2363-
Appendix B: Default UA Stylesheet</h2>
2377+
Appendix C: Default UA Stylesheet</h2>
23642378

23652379
<p>This appendix is informative,
23662380
and is to help UA developers to implement a default stylesheet for HTML,
@@ -2376,7 +2390,7 @@ Appendix B: Default UA Stylesheet</h2>
23762390
with <kbd>[css-text]</kbd> in the subject line.</p>
23772391

23782392
<h2 class="no-num" id="script-groups">
2379-
Appendix C: Scripts and Spacing</h2>
2393+
Appendix D: Scripts and Spacing</h2>
23802394

23812395
<p><em>This appendix is normative.</em></p>
23822396

@@ -2426,7 +2440,7 @@ Appendix C: Scripts and Spacing</h2>
24262440
They have different tolerances for space-justification vs inter-character justification,
24272441
but both admit both.
24282442

2429-
<h2 id="character-properties" class="no-num">Appendix D.
2443+
<h2 id="character-properties" class="no-num">Appendix E.
24302444
Characters and Properties</h2>
24312445

24322446
<p>Unicode defines four codepoint-level properties that are referenced
@@ -2462,7 +2476,7 @@ Characters and Properties</h2>
24622476
but take their other properties from the first combining character in the sequence.
24632477
</ul>
24642478

2465-
<h2 id="script-tagging" class="no-num">Appendix E.
2479+
<h2 id="script-tagging" class="no-num">Appendix F.
24662480
Tagging Content by Writing System</h2>
24672481

24682482
While most languages have a preferred writing system,

0 commit comments

Comments
 (0)