Skip to content

Commit 0c50201

Browse files
committed
[css-text-3] Update Coverage Info
1 parent 3aef2d2 commit 0c50201

File tree

2 files changed

+189
-27
lines changed

2 files changed

+189
-27
lines changed

css-text-3/Overview.bs

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,21 @@ Characters and Letters</h3>
600600
Animation type: discrete
601601
</pre>
602602

603+
<wpt pathprefix="/css/CSS2/css1/">
604+
c562-white-sp-000.xht
605+
</wpt>
606+
<wpt pathprefix="/css/CSS2/text/">
607+
white-space-006.xht
608+
white-space-007.xht
609+
white-space-applies-to-001.xht
610+
white-space-mixed-001.xht
611+
white-space-mixed-002.xht
612+
white-space-mixed-003.xht
613+
<!-- manual test
614+
white-space-mixed-004.xht
615+
-->
616+
</wpt>
617+
603618
<p>This property specifies two things:
604619
<ul>
605620
<li>whether and how <a>white space</a> inside the element is collapsed
@@ -619,15 +634,31 @@ Characters and Letters</h3>
619634
Lines may wrap at allowed <a>soft wrap opportunities</a>,
620635
as determined by the line-breaking rules in effect,
621636
in order to minimize inline-axis overflow.
637+
638+
<wpt pathprefix="/css/CSS2/text/">
639+
white-space-normal-009.xht
640+
</wpt>
622641
<dt><dfn>pre</dfn></dt>
623642
<dd>This value prevents user agents from collapsing sequences of <a>white space</a>.
624643
<a>Segment breaks</a> such as line feeds
625644
are preserved as <a>forced line breaks</a>.
626645
Lines only break at <a>forced line breaks</a>;
627646
content that does not fit within the block container overflows it.
647+
648+
<wpt pathprefix="/css/CSS2/text/">
649+
white-space-pre-001.xht
650+
white-space-pre-002.xht
651+
<!--manual test
652+
white-space-pre-007.xht
653+
-->
654+
</wpt>
628655
<dt><dfn>nowrap</dfn>
629656
<dd>Like ''white-space/normal'', this value collapses <a>white space</a>;
630657
but like ''pre'', it does not allow wrapping.
658+
659+
<wpt pathprefix="/css/CSS2/text/">
660+
white-space-nowrap-001.xht
661+
</wpt>
631662
<dt><dfn>pre-wrap</dfn></dt>
632663
<dd>Like ''pre'', this value preserves <a>white space</a>;
633664
but like ''white-space/normal'', it allows wrapping.
@@ -660,6 +691,10 @@ Characters and Letters</h3>
660691
<dt><dfn>pre-line</dfn></dt>
661692
<dd>Like ''white-space/normal'', this value collapses consecutive spaces and allows wrapping,
662693
but preserves <a>segment breaks</a> in the source as <a>forced line breaks</a>.
694+
695+
<wpt pathprefix="/css/CSS2/text/">
696+
white-space-generated-content-before-001.xht
697+
</wpt>
663698
</dl>
664699

665700
<p>The following informative table summarizes the behavior of various
@@ -867,6 +902,22 @@ Characters and Letters</h3>
867902
the <dfn export lt="white space|white space characters| document white space|document white space characters">document white space characters</dfn>:
868903
spaces (U+0020), tabs (U+0009), and <a href="#white-space-processing">segment breaks</a>.
869904

905+
<wpt pathprefix="/css/CSS2/text/">
906+
white-space-normal-003.xht
907+
white-space-normal-004.xht
908+
white-space-normal-005.xht
909+
white-space-normal-006.xht
910+
white-space-normal-007.xht
911+
white-space-normal-008.xht
912+
white-space-nowrap-005.xht
913+
white-space-nowrap-006.xht
914+
white-space-pre-005.xht
915+
white-space-pre-006.xht
916+
white-space-processing-054.xht
917+
white-space-processing-055.xht
918+
white-space-processing-056.xht
919+
</wpt>
920+
870921
<p class="note">
871922
Note: The set of characters considered <a>document white space</a> (part of the document content)
872923
and that considered syntactic white space (part of the CSS syntax)
@@ -900,6 +951,14 @@ Characters and Letters</h3>
900951
<wpt>
901952
white-space/seg-break-transformation-000.html
902953
</wpt>
954+
<wpt pathprefix="/css/CSS2/text/">
955+
white-space-processing-002.xht
956+
white-space-processing-003.xht
957+
white-space-processing-004.xht
958+
white-space-processing-008.xht
959+
white-space-processing-009.xht
960+
white-space-processing-010.xht
961+
</wpt>
903962
</li>
904963
<li><a>Segment breaks</a> are transformed for
905964
rendering according to the <a href="#line-break-transform">segment break transformation rules</a>.
@@ -909,6 +968,11 @@ Characters and Letters</h3>
909968
<wpt>
910969
white-space/white-space-collapse-000.html
911970
</wpt>
971+
<wpt pathprefix="/css/CSS2/text/">
972+
white-space-processing-019.xht
973+
white-space-processing-020.xht
974+
white-space-processing-021.xht
975+
</wpt>
912976
</li>
913977
<li>Any space immediately following another collapsible space&mdash;even
914978
one outside the boundary of the inline containing that space,
@@ -920,6 +984,38 @@ Characters and Letters</h3>
920984
white-space/white-space-collapse-001.html
921985
white-space/white-space-empty-text-sibling.html
922986
</wpt>
987+
<wpt pathprefix="/css/CSS2/text/">
988+
white-space-001.xht
989+
white-space-003.xht
990+
white-space-005.xht
991+
white-space-collapsing-001.xht
992+
white-space-collapsing-002.xht
993+
white-space-collapsing-004.xht
994+
white-space-collapsing-005.xht
995+
white-space-collapsing-breaks-001.xht
996+
white-space-mixed-001.xht
997+
white-space-mixed-002.xht
998+
white-space-normal-001.xht
999+
white-space-processing-001.xht
1000+
white-space-processing-022.xht
1001+
white-space-processing-023.xht
1002+
white-space-processing-024.xht
1003+
white-space-processing-025.xht
1004+
white-space-processing-026.xht
1005+
white-space-processing-027.xht
1006+
white-space-processing-028.xht
1007+
white-space-processing-029.xht
1008+
white-space-processing-030.xht
1009+
white-space-processing-031.xht
1010+
white-space-processing-032.xht
1011+
white-space-processing-033.xht
1012+
white-space-processing-034.xht
1013+
white-space-processing-035.xht
1014+
white-space-processing-036.xht
1015+
white-space-processing-050.xht
1016+
white-space-processing-051.xht
1017+
white-space-processing-053.xht
1018+
</wpt>
9231019
</li>
9241020
</ol>
9251021
</li>
@@ -935,11 +1031,31 @@ Characters and Letters</h3>
9351031
word-break/word-break-break-all-011.html
9361032
white-space/pre-wrap-015.html
9371033
</wpt>
1034+
<wpt pathprefix="/css/CSS2/text/">
1035+
white-space-002.xht
1036+
white-space-004.xht
1037+
white-space-processing-011.xht
1038+
white-space-processing-012.xht
1039+
white-space-processing-013.xht
1040+
white-space-processing-052.xht
1041+
</wpt>
9381042

9391043
<p>Then, the entire block is rendered. Inlines are laid out, taking bidi
9401044
reordering into account, and <a>wrapping</a> as specified by the
9411045
'white-space' property.</p>
9421046

1047+
<wpt pathprefix="/css/CSS2/">
1048+
bidi-text/bidi-002.xht
1049+
bidi-text/bidi-004.xht
1050+
bidi-text/line-breaking-bidi-001.xht
1051+
bidi-text/line-breaking-bidi-002.xht
1052+
bidi-text/line-breaking-bidi-003.xht
1053+
</wpt>
1054+
<wpt pathprefix="/css/CSS2/text/">
1055+
white-space-collapsing-bidi-001.xht
1056+
white-space-collapsing-bidi-002.xht
1057+
</wpt>
1058+
9431059
<div class="example" id="egbidiwscollapse">
9441060
<p>The following example illustrates
9451061
the interaction of white-space collapsing and bidirectionality.
@@ -975,13 +1091,24 @@ Characters and Letters</h3>
9751091
by relying on implicit bidirectionality instead of explicit embedding levels.
9761092
</div>
9771093

1094+
<wpt pathprefix="/css/CSS2/text/">
1095+
white-space-bidirectionality-001.xht
1096+
</wpt>
1097+
9781098
<h4 id="line-break-transform">
9791099
Segment Break Transformation Rules</h4>
9801100

9811101
<p>When 'white-space' is ''pre'', ''pre-wrap'', ''break-spaces'', or ''pre-line'',
9821102
<a>segment breaks</a> are not <a>collapsible</a>
9831103
and are instead transformed into a preserved line feed (U+000A).
9841104

1105+
<wpt pathprefix="/css/CSS2/text/">
1106+
white-space-008.xht
1107+
white-space-process-016.xht
1108+
white-space-process-017.xht
1109+
white-space-process-018.xht
1110+
</wpt>
1111+
9851112
<p>For other values of 'white-space', <a>segment breaks</a> are <a>collapsible</a>.
9861113
As with spaces,
9871114
any collapsible <a>segment break</a> immediately following another collapsible <a>segment break</a>
@@ -1125,6 +1252,16 @@ Characters and Letters</h3>
11251252
<wpt>
11261253
white-space/line-edge-white-space-collapse-002.html
11271254
</wpt>
1255+
<wpt pathprefix="/css/CSS2/text/">
1256+
white-space-collapsing-003.xht
1257+
white-space-collapsing-bidi-003.xht
1258+
white-space-normal-001.xht
1259+
white-space-normal-002.xht
1260+
white-space-processing-037.xht
1261+
white-space-processing-038.xht
1262+
white-space-processing-040.xht
1263+
white-space-processing-041.xht
1264+
</wpt>
11281265
<li>If the tab size is zero, tabs are not rendered.
11291266
Otherwise, each tab is rendered as a horizontal shift
11301267
that lines up the start edge of the next glyph with the next <a>tab stop</a>.
@@ -1144,6 +1281,9 @@ Characters and Letters</h3>
11441281
tab-size/tab-min-rendered-width-1.html
11451282
tab-size/tab-size-integer-003.html
11461283
</wpt>
1284+
<wpt pathprefix="/css/CSS2/text/">
1285+
white-space-processing-042.xht
1286+
</wpt>
11471287

11481288
Note: See [[UAX9]] for <a href="http://unicode.org/reports/tr9/#L1">rules on how U+0009 tabulation interacts with bidi</a>.
11491289

@@ -1161,6 +1301,17 @@ Characters and Letters</h3>
11611301
white-space/trailing-ideographic-space-002.html
11621302
white-space/trailing-space-before-br-001.html
11631303
</wpt>
1304+
<wpt pathprefix="/css/CSS2/text/">
1305+
white-space-collapsing-003.xht
1306+
white-space-collapsing-bidi-003.xht
1307+
white-space-normal-001.xht
1308+
white-space-normal-002.xht
1309+
white-space-processing-043.xht
1310+
white-space-processing-044.xht
1311+
white-space-processing-045.xht
1312+
white-space-processing-046.xht
1313+
white-space-processing-047.xht
1314+
</wpt>
11641315
<li>If there remains any sequence of <a>white space</a>
11651316
and/or ideographic spaces (U+3000)
11661317
at the end of a line:
@@ -2557,6 +2708,13 @@ Shaping Across Intra-word Breaks</h3>
25572708
that <a>tab stops</a> continue to line up as required by the
25582709
<a href="#white-space-rules">white space processing rules</a>.
25592710

2711+
<wpt pathprefix="/css/CSS2/text">
2712+
text-align-white-space-001.xht
2713+
text-align-white-space-003.xht
2714+
text-align-white-space-005.xht
2715+
text-align-white-space-007.xht
2716+
</wpt>
2717+
25602718
<p>If (after justification, if any) the inline contents of a line box are too long to fit within it,
25612719
then the contents are <a spec=css-writing-modes-3>start</a>-aligned:
25622720
any content that doesn't fit overflows the line box's <a spec=css-writing-modes-3>end</a> edge.
@@ -3029,6 +3187,20 @@ Word Spacing: the 'word-spacing' property</h3>
30293187
<wpt>
30303188
letter-spacing/letter-spacing-bidi-001.html
30313189
</wpt>
3190+
<wpt pathprefix="/css/CSS2">
3191+
bidi-005.xht
3192+
bidi-006.xht
3193+
bidi-007.xht
3194+
bidi-008.xht
3195+
bidi-009.xht
3196+
bidi-010.xht
3197+
bidi-text/bidi-005b.xht
3198+
bidi-text/bidi-006b.xht
3199+
bidi-text/bidi-007b.xht
3200+
bidi-text/bidi-008b.xht
3201+
bidi-text/bidi-009b.xht
3202+
bidi-text/bidi-010b.xht
3203+
</wpt>
30323204

30333205
<p>Values have the following meanings:
30343206

css-text-3/test-coverage.html

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@ <h2 class="no-num no-toc no-ref heading settled" id="abstract"><span class="cont
3131

3232
<ul>
3333
<li><a href="https://github.com/web-platform-tests/wpt/tree/master/css/css-text/">wpt/css/css-text/</a> and subdirectories
34+
<li>All tests in <a href="https://github.com/web-platform-tests/wpt/tree/master/css/CSS2/">wpt/css/CSS2/</a> and subdirectories <em>that relate to the <code>white-space</code> property</em>.
3435
<li><a href="https://github.com/web-platform-tests/wpt/tree/master/css/vendor-imports/mozilla/mozilla-central-reftests/text3">wpt/css/vendor-imports/mozilla/mozilla-central-reftests/text3/</a>
3536
</ul>
3637

3738
<p>
3839
It does <strong>not</strong> include tests from:
3940
<ul>
40-
<li><a href="https://github.com/web-platform-tests/wpt/tree/master/css/CSS2/text">wpt/css/CSS2/text/</a>
41+
<li><a href="https://github.com/web-platform-tests/wpt/tree/master/css/CSS2">wpt/css/CSS2/</a>, other than those related to the <code>white-space</code> property.
4142
</ul>
4243
</div>
4344

@@ -120,18 +121,21 @@ <h3 id="case-transforms-the-text-transform-property"><a href="https://drafts.css
120121

121122
<h2 id="white-space-and-wrapping-the-white-space-property"><a href="https://drafts.csswg.org/css-text-3/#white-space-property">White Space and Wrapping: the white-space property</a></h2>
122123

123-
<p>A fair amount of coverage through section 4 (white space processing details) and subsections . Probably well tested by the CSS2 test suite, but I have not checked that.
124+
<p>Good overal coverage through section 4 (white space processing details) and subsections.
124125

125126
<p>Missing tests:
126127

127128
<ul>
128-
<li>applies to inlines (and specifically, wrappable inlines inside white-space:pre blocks don’t get ignored)
129+
<li>wrappable inlines inside white-space:pre blocks don’t get ignored
129130
<li>No test of Animation type.
130-
<li>tests for the nowrap value
131-
<li>tests for the pre-line value
132131
<li>intrinsic (min and max) sizing tests for values other than pre-wrap and break-spaces
133132
</ul>
134133

134+
<p>Possible addition:
135+
<ul>
136+
<li>coverage of "break-spaces" not as exhaustive as other values. Basic behavior is covered, and difference from "pre-wrap" is covered as well, so this is adequate, but it doesn't have the long list of basic tests that other values got from the CSS2 test suite.
137+
</ul>
138+
135139
<div class=issue>Issue:
136140
<p>Problematic tests:
137141

@@ -159,25 +163,13 @@ <h2 id="white-space-processing-details"><a href="https://drafts.csswg.org/css-te
159163

160164
<h3 id="the-white-space-processing-rules">The <a href="https://drafts.csswg.org/css-text-3/#white-space-rules">White Space Processing Rules</a></h3>
161165

162-
<p>Test only needed in subsections.
166+
<p>Sufficient coverage. All parts of this section are well exercised.
163167

164-
<h4 id="phase-i-collapsing-and-transformation"><a href="https://drafts.csswg.org/css-text-3/#white-space-phase-1">Phase I: Collapsing and Transformation</a></h4>
165-
166-
<p>Partial coverage.
168+
<p>Most tests to be found in subsections.
167169

168-
<p>Missing tests:
169-
170-
<ul>
171-
<li>“All spaces and tabs immediately preceding or following a segment break are removed.” for nowrap and pre-line
172-
<li>“Every tab is converted to a space (U+0020).” for nowrap and pre-line
173-
<li>“Any space immediately following another collapsible space[…]is collapsed[…]” for nowrap and pre-line
174-
</ul>
175-
176-
<p>Possible addition:
170+
<h4 id="phase-i-collapsing-and-transformation"><a href="https://drafts.csswg.org/css-text-3/#white-space-phase-1">Phase I: Collapsing and Transformation</a></h4>
177171

178-
<ul>
179-
<li>Turn example 4 into a test
180-
</ul>
172+
<p>Sufficient coverage. All parts of this section are well exercised.
181173

182174
<div class=issue>Issue
183175
<p>Spec problem:
@@ -191,29 +183,27 @@ <h4 id="segment-break-transformation-rules"><a href="https://drafts.csswg.org/cs
191183

192184
<p>Partial coverage.
193185

194-
<p>Indirectly tested, no dedicated tests, and not covering all the values:
186+
<p>Indirectly tested, no dedicated tests:
195187

196188
<ul>
197-
<li>When white-space is pre, pre-wrap, break-spaces, or pre-line, segment breaks are not collapsible and are instead transformed into a preserved line feed (U+000A).
198-
<li>For other values of white-space, segment breaks are collapsible. (indirectly covered by other tests, but not for every value of the property)
189+
<li>When 'white-space' is ''break-spaces'' segment breaks are not collapsible and are instead transformed into a preserved line feed (U+000A).
199190
</ul>
200191

201192
<p>Missing tests:
202193

203194
<ul>
204-
<li>None of the statements in this section are tested for “nowrap”
195+
<li>the first 3 bullet points are not tested for “nowrap”
205196
<li>“Otherwise, if the writing system of the segment break is Chinese, Japanese, or Yi, […]”
206197
<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.
207198
</ul>
208199

209200
<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>
210201

211-
<p>Good coverage of the behavior, but not for all values of the white-space property.
202+
<p>Almost sufficient coverage. Most parts of this section are well exercised.
212203

213204
<p>Missing tests:
214205

215206
<ul>
216-
<li>No statements made in this section has tests for nowrap and pre-line
217207
<li>See [UAX9] for rules on how U+0009 tabulation interacts with bidi.
218208
</ul>
219209

0 commit comments

Comments
 (0)