Skip to content

Commit 1f58919

Browse files
committed
[css-text-3] Expand information on test coverage
1 parent 3723e63 commit 1f58919

File tree

2 files changed

+158
-11
lines changed

2 files changed

+158
-11
lines changed

css-text-3/Overview.bs

Lines changed: 143 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,6 @@ Values</h3>
168168
also accept the <a>CSS-wide keywords</a> keywords as their property value.
169169
For readability they have not been repeated explicitly.
170170

171-
<wpt>
172-
<!-- this test doesn't really belong here,
173-
but its proper anchor point is in a generated part ofthe spec,
174-
so this section is as good as any
175-
-->
176-
inheritance.html
177-
</wpt>
178171
<h3 id="languages">
179172
Languages and Typesetting</h3>
180173

@@ -369,6 +362,10 @@ Characters and Letters</h3>
369362
Animation type: discrete
370363
</pre>
371364

365+
<wpt>
366+
inheritance.html
367+
</wpt>
368+
372369
<p>This property transforms text for styling purposes.
373370
It has no effect on the underlying content,
374371
and must not affect the content of a plain text copy &amp; paste operation.
@@ -566,6 +563,13 @@ Characters and Letters</h3>
566563
the mapping is from the decomposition (minus the <code>&lt;wide&gt;</code> tag)
567564
back to the original code point.
568565

566+
<wpt>
567+
text-transform/text-transform-fullwidth-001.xht
568+
text-transform/text-transform-fullwidth-002.xht
569+
text-transform/text-transform-fullwidth-004.xht
570+
text-transform/text-transform-fullwidth-005.xht
571+
</wpt>
572+
569573
<p>The mappings for small Kana to full-size Kana are defined in [[#small-kana]].
570574

571575
<p>When multiple values are specified and therefore multiple transformations need to be applied,
@@ -600,6 +604,9 @@ Characters and Letters</h3>
600604
Animation type: discrete
601605
</pre>
602606

607+
<wpt>
608+
inheritance.html
609+
</wpt>
603610
<wpt pathprefix="/css/CSS2/css1/">
604611
c562-white-sp-000.xht
605612
</wpt>
@@ -636,6 +643,14 @@ Characters and Letters</h3>
636643
in order to minimize inline-axis overflow.
637644

638645
<wpt pathprefix="/css/CSS2/text/">
646+
white-space-normal-001.xht
647+
white-space-normal-002.xht
648+
white-space-normal-003.xht
649+
white-space-normal-004.xht
650+
white-space-normal-005.xht
651+
white-space-normal-006.xht
652+
white-space-normal-007.xht
653+
white-space-normal-008.xht
639654
white-space-normal-009.xht
640655
</wpt>
641656
<dt><dfn>pre</dfn></dt>
@@ -648,6 +663,8 @@ Characters and Letters</h3>
648663
<wpt pathprefix="/css/CSS2/text/">
649664
white-space-pre-001.xht
650665
white-space-pre-002.xht
666+
white-space-pre-005.xht
667+
white-space-pre-006.xht
651668
<!--manual test
652669
white-space-pre-007.xht
653670
-->
@@ -658,10 +675,40 @@ Characters and Letters</h3>
658675

659676
<wpt pathprefix="/css/CSS2/text/">
660677
white-space-nowrap-001.xht
678+
white-space-nowrap-005.xht
679+
white-space-nowrap-006.xht
661680
</wpt>
662681
<dt><dfn>pre-wrap</dfn></dt>
663682
<dd>Like ''pre'', this value preserves <a>white space</a>;
664683
but like ''white-space/normal'', it allows wrapping.
684+
685+
<wpt>
686+
white-space/pre-wrap-001.html
687+
white-space/pre-wrap-002.html
688+
white-space/pre-wrap-003.html
689+
white-space/pre-wrap-004.html
690+
white-space/pre-wrap-005.html
691+
white-space/pre-wrap-006.html
692+
white-space/pre-wrap-007.html
693+
white-space/pre-wrap-011.html
694+
white-space/pre-wrap-012.html
695+
white-space/pre-wrap-013.html
696+
white-space/pre-wrap-014.html
697+
white-space/textarea-pre-wrap-001.html
698+
white-space/textarea-pre-wrap-002.html
699+
white-space/textarea-pre-wrap-003.html
700+
white-space/textarea-pre-wrap-004.html
701+
white-space/textarea-pre-wrap-005.html
702+
white-space/textarea-pre-wrap-006.html
703+
white-space/textarea-pre-wrap-007.html
704+
white-space/textarea-pre-wrap-011.html
705+
white-space/textarea-pre-wrap-012.html
706+
white-space/textarea-pre-wrap-013.html
707+
white-space/textarea-pre-wrap-014.html
708+
white-space/white-space-pre-wrap-trailing-spaces-001.html
709+
white-space/white-space-pre-wrap-trailing-spaces-002.html
710+
white-space/white-space-pre-wrap-trailing-spaces-003.html
711+
</wpt>
665712
<dt><dfn>break-spaces</dfn></dt>
666713
<dd>The behavior is identical to that of ''white-space/pre-wrap'',
667714
except that:
@@ -673,8 +720,12 @@ Characters and Letters</h3>
673720
<wpt>
674721
overflow-wrap/overflow-wrap-break-word-002.html
675722
overflow-wrap/overflow-wrap-anywhere-002.html
723+
white-space/break-spaces-001.html
676724
white-space/break-spaces-002.html
725+
white-space/textarea-break-spaces-001.html
677726
white-space/textarea-break-spaces-002.html
727+
white-space/tab-stop-threshold-005.html
728+
white-space/tab-stop-threshold-006.html
678729
</wpt>
679730

680731
As preserved spaces take up space and do not hang,
@@ -693,7 +744,21 @@ Characters and Letters</h3>
693744
but preserves <a>segment breaks</a> in the source as <a>forced line breaks</a>.
694745

695746
<wpt pathprefix="/css/CSS2/text/">
747+
white-space-005.xht
696748
white-space-generated-content-before-001.xht
749+
white-space-processing-004.xht
750+
white-space-processing-010.xht
751+
white-space-processing-017.xht
752+
white-space-processing-021.xht
753+
white-space-processing-024.xht
754+
white-space-processing-027.xht
755+
white-space-processing-028.xht
756+
white-space-processing-029.xht
757+
white-space-processing-030.xht
758+
white-space-processing-035.xht
759+
white-space-processing-036.xht
760+
white-space-processing-045.xht
761+
white-space-processing-053.xht
697762
</wpt>
698763
</dl>
699764

@@ -1414,6 +1479,7 @@ Characters and Letters</h3>
14141479
<wpt>
14151480
tab-size/tab-size-integer-001.html
14161481
tab-size/tab-size-inheritance-001.html
1482+
inheritance.html
14171483
</wpt>
14181484

14191485
<p>This property determines the tab size used to render preserved tab characters (U+0009).
@@ -1424,9 +1490,20 @@ Characters and Letters</h3>
14241490
<wpt>
14251491
tab-size/tab-size-integer-001.html
14261492
tab-size/tab-size-integer-002.html
1493+
tab-size/tab-size-integer-003.html
14271494
tab-size/tab-size-length-001.html
14281495
tab-size/tab-size-length-002.html
14291496
tab-size/tab-size-percent-001.html
1497+
tab-size/tab-min-rendered-width-1.html
1498+
white-space/tab-stop-threshold-001.html
1499+
white-space/tab-stop-threshold-002.html
1500+
white-space/tab-stop-threshold-003.html
1501+
white-space/tab-stop-threshold-004.html
1502+
white-space/tab-stop-threshold-005.html
1503+
white-space/tab-stop-threshold-006.html
1504+
</wpt>
1505+
<wpt pathprefix="/css/CSS2/text/">
1506+
white-space-processing-042.xht
14301507
</wpt>
14311508

14321509
<h2 id="line-breaking">
@@ -1863,6 +1940,10 @@ Line Breaking Details</h3>
18631940
Animation type: discrete
18641941
</pre>
18651942

1943+
<wpt>
1944+
inheritance.html
1945+
</wpt>
1946+
18661947
<p>This property specifies <a>soft wrap opportunities</a> between letters,
18671948
i.e. where it is “normal” and permissible to break lines of text.
18681949
Specifically it controls whether a <a>soft wrap opportunity</a>
@@ -2106,6 +2187,10 @@ Line Breaking Details</h3>
21062187
Animation type: discrete
21072188
</pre>
21082189

2190+
<wpt>
2191+
inheritance.html
2192+
</wpt>
2193+
21092194
<p>This property specifies the strictness of line-breaking rules applied
21102195
within an element:
21112196
especially how <a>wrapping</a> interacts with punctuation and symbols.
@@ -2453,6 +2538,7 @@ Line Breaking Details</h3>
24532538
</pre>
24542539

24552540
<wpt>
2541+
inheritance.html
24562542
overflow-wrap/overflow-wrap-anywhere-span-001.html
24572543
overflow-wrap/overflow-wrap-anywhere-span-002.html
24582544
overflow-wrap/overflow-wrap-break-word-span-001.html
@@ -2560,7 +2646,11 @@ Shaping Across Intra-word Breaks</h3>
25602646
Inherited: yes
25612647
Canonical order: n/a
25622648
Animation type: discrete
2563-
</pre>
2649+
</pre>
2650+
2651+
<wpt>
2652+
inheritance.html
2653+
</wpt>
25642654

25652655
<p>This <a>shorthand property</a>
25662656
sets the 'text-align-all' and 'text-align-last' properties
@@ -2734,9 +2824,12 @@ Shaping Across Intra-word Breaks</h3>
27342824
Computed value: keyword as specified, except for ''match-parent'' which computes as defined above
27352825
Canonical order: n/a
27362826
Animation type: discrete
2737-
27382827
</pre>
27392828

2829+
<wpt>
2830+
inheritance.html
2831+
</wpt>
2832+
27402833
<p>This longhand of the 'text-align' <a>shorthand property</a>
27412834
specifies the inline alignment of all lines of inline content in the block container,
27422835
except for last lines overridden by a non-''text-align-last/auto'' value of 'text-align-last'.
@@ -2760,6 +2853,7 @@ Shaping Across Intra-word Breaks</h3>
27602853
</pre>
27612854

27622855
<wpt>
2856+
inheritance.html
27632857
<!-- manual test
27642858
text-align/text-align-last-013.html
27652859
text-align/text-align-last-014.html
@@ -2813,6 +2907,10 @@ Shaping Across Intra-word Breaks</h3>
28132907
Animation type: discrete
28142908
</pre>
28152909

2910+
<wpt>
2911+
inheritance.html
2912+
</wpt>
2913+
28162914
<p>This property selects the justification method used when a line's
28172915
alignment is set to ''justify'' (see 'text-align').
28182916
The property applies to inlines,
@@ -3126,6 +3224,10 @@ Word Spacing: the 'word-spacing' property</h3>
31263224
Canonical order: n/a
31273225
</pre>
31283226

3227+
<wpt>
3228+
inheritance.html
3229+
</wpt>
3230+
31293231
<p>This property specifies additional spacing
31303232
between &ldquo;words&rdquo;.
31313233
Missing values are assumed to be ''word-spacing:normal''.
@@ -3174,6 +3276,10 @@ Word Spacing: the 'word-spacing' property</h3>
31743276
Canonical order: n/a
31753277
</pre>
31763278

3279+
<wpt>
3280+
inheritance.html
3281+
</wpt>
3282+
31773283
<p>This property specifies additional spacing (commonly called <dfn export>tracking</dfn>)
31783284
between adjacent <a>typographic character units</a>.
31793285
Letter-spacing is applied after
@@ -3491,6 +3597,10 @@ Cursive Scripts</h4>
34913597
Canonical order: <abbr title="follows order of property value definition">per grammar</abbr>
34923598
</pre>
34933599

3600+
<wpt>
3601+
inheritance.html
3602+
</wpt>
3603+
34943604
<p>This property specifies the indentation applied to lines of inline
34953605
content in a block. The indent is treated as a margin applied to
34963606
the start edge of the line box.
@@ -3604,6 +3714,10 @@ Cursive Scripts</h4>
36043714
Animation type: discrete
36053715
</pre>
36063716

3717+
<wpt>
3718+
inheritance.html
3719+
</wpt>
3720+
36073721
<p>This property determines whether a punctuation mark, if one is present,
36083722
<a>hangs</a> and may be placed outside the line box (or in the indent)
36093723
at the start or at the end of a line of text.
@@ -4026,6 +4140,10 @@ Tagging Content by Writing System</h2>
40264140

40274141
<wpt>
40284142
writing-system/writing-system-font-001.html
4143+
writing-system/writing-system-text-transform-001.html
4144+
writing-system/writing-system-segment-break-001.html
4145+
writing-system/writing-system-line-break-001.html
4146+
writing-system/writing-system-line-break-002.html
40294147
</wpt>
40304148

40314149
The full correspondence between languages and their most common writing system
@@ -4038,6 +4156,12 @@ Tagging Content by Writing System</h2>
40384156
* If the [=content language=] is Japanese and the [=writing system=] is unspecified,
40394157
or for any [=content language=] if the [=writing system=] to specified to be one of the ''Jpan'', ''Hrkt'', ''Hira'' or ''Kana'' [[ISO15924]] codes,
40404158
then the [=writing system=] is <dfn noexport for=writing-system>Japanese</dfn>.
4159+
4160+
4161+
<wpt>
4162+
writing-system/writing-system-line-break-002.html
4163+
writing-system/writing-system-segment-break-001.html
4164+
</wpt>
40414165
* If the [=content language=] is Korean and the [=writing system=] is unspecified,
40424166
or for any [=content language=] if the [=writing system=] to specified to be one of the ''Kore'', ''Hang'', or ''Jamo'' [[ISO15924]] codes,
40434167
then the [=writing system=] is <dfn noexport for=writing-system>Korean</dfn>.
@@ -4429,6 +4553,16 @@ Small Kana Mappings</h2>
44294553
</table>
44304554
</div>
44314555

4556+
<wpt>
4557+
text-transform/text-transform-full-size-kana-001.html
4558+
text-transform/text-transform-full-size-kana-002.html
4559+
text-transform/text-transform-full-size-kana-003.html
4560+
text-transform/text-transform-full-size-kana-004.html
4561+
text-transform/text-transform-full-size-kana-005.html
4562+
text-transform/text-transform-full-size-kana-006.html
4563+
text-transform/text-transform-full-size-kana-007.html
4564+
</wpt>
4565+
44324566
<h2 id="priv-sec" class="no-num">
44334567
Privacy and Security Considerations</h2>
44344568

css-text-3/test-coverage.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ <h3 id="case-transforms-the-text-transform-property"><a href="https://drafts.css
104104
<ul>
105105
<li>No test of Animation type.
106106
<li>specifying several values at the same time
107+
<li>“full-width only transforms U+0020 spaces to U+3000 within preserved white space.”
107108
</ul>
108109

109110
<p>Possible addition:
@@ -187,6 +188,7 @@ <h4 id="segment-break-transformation-rules"><a href="https://drafts.csswg.org/cs
187188
<li>the first 3 bullet points are not tested for “nowrap”
188189
<li>“Otherwise, if the writing system of the segment break is Chinese, Japanese, or Yi, […]”
189190
<li>For this purpose, Emoji (Unicode property Emoji) with an East Asian Width property of W or N are treated as having an East Asian Width property of A.
191+
<li>“Otherwise, the segment break is converted to a space (U+0020).”
190192
</ul>
191193

192194
<h4 id="phase-ii-trimming-and-positioning"><a href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">Phase II: Trimming and Positioning</a></h4>
@@ -298,6 +300,7 @@ <h3 id="line-breaking-strictness-the-line-break-property"><a href="https://draft
298300
<li>applies to inlines
299301
<li>No test of Animation type.
300302
<li>affects intrinsic sizing
303+
<li>see <a href="https://github.com/web-platform-tests/wpt/issues/11161">wpt issue 11161</a>
301304
</ul>
302305

303306
<p>Untestable(?):
@@ -572,6 +575,8 @@ <h2 id="appendix-c-default-ua-stylesheet"><a href="https://drafts.csswg.org/css-
572575

573576
<h2 id="appendix-d-scripts-and-spacing"><a href="https://drafts.csswg.org/css-text-3/#script-groups">Appendix D: Scripts and Spacing</a></h2>
574577

578+
<p>Tests not needed?
579+
575580
<h2 id="appendix-e-characters-and-properties"><a href="https://drafts.csswg.org/css-text-3/#character-properties">Appendix E: Characters and Properties</a></h2>
576581

577582
<p>No Tests.
@@ -586,9 +591,17 @@ <h2 id="appendix-e-characters-and-properties"><a href="https://drafts.csswg.org/
586591

587592
<h2 id="appendix-f-tagging-content-by-writing-system"><a href="https://drafts.csswg.org/css-text-3/#script-tagging">Appendix F. Tagging Content by Writing System</a></h2>
588593

589-
<p>Adequate Coverage.
594+
<p>Partial Coverage.
595+
596+
<p>Each of the diverse properties that take the content language into account is tested, except tested on text-justification:auto, but probably not testable anyway.
590597

591-
<p>Tested via the diverse properties that take the content language into account. Not tested on text-justification:auto, but probably not testable anyway.
598+
<p>Missing tests:
599+
600+
<ul>
601+
<li>if the writing system to specified to be one of the Hant, Hans, Hani, Hanb, or Bopo [ISO15924] codes, then the writing system is Chinese.
602+
<li>if the writing system to specified to be one of the Jpan, Hira [ISO15924] codes, then the writing system is Japanese.
603+
<li>if the writing system to specified to be one of the Kore, Hang, or Jamo [ISO15924] codes, then the writing system is Korean.
604+
</ul>
592605

593606
<h2 id="appendix-g-small-kana-mappings"><a href="https://drafts.csswg.org/css-text-3/#small-kana">Appendix G. Small Kana Mappings</a></h2>
594607

0 commit comments

Comments
 (0)