Skip to content

Commit 81f46a5

Browse files
committed
[css-text-3] Document test coverage for BK & NL line breaking classes
1 parent b3bf584 commit 81f46a5

File tree

1 file changed

+49
-25
lines changed

1 file changed

+49
-25
lines changed

css-text-3/Overview.bs

Lines changed: 49 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3248,7 +3248,6 @@ Line Breaking Details</h3>
32483248
32493249
Missing tests:
32503250
3251-
* “Regardless of the white-space value […] the BK, NL […] classes […] must be honored”
32523251
* For soft wrap opportunities before the first or after the last character of a box, the break occurs immediately before/after the box (at its margin edge) rather than breaking the box between its content edge and the content.
32533252
* Test for <a href=https://github.com/w3c/csswg-drafts/issues/4284>https://github.com/w3c/csswg-drafts/issues/4284</a>
32543253

@@ -3280,6 +3279,10 @@ Line Breaking Details</h3>
32803279
must be treated as forced line breaks.
32813280
[[!UAX14]]
32823281

3282+
<wpt>
3283+
line-breaking/line-breaking-022.html
3284+
</wpt>
3285+
32833286
Note: The bidi implications of such [=forced line breaks=]
32843287
are defined by the <a href="https://www.unicode.org/reports/tr9/"><cite>Unicode Bidirectional Algorithm</cite></a>.
32853288
[[!UAX9]]
@@ -4334,7 +4337,6 @@ Hyphenation: the 'hyphens' property</h3>
43344337
* No test of Animation type.
43354338
* “Automatic hyphenation opportunities within a word must be ignored if the word contains a conditional hyphen (shy or U+00AD), in favor of the conditional hyphen(s)”
43364339
* “However, if, even after breaking at such opportunities, a portion of that word is still too long to fit on one line, an automatic hyphenation opportunity may be used.”"></wpt>
4337-
* “The UA must use the appropriate language-specific hyphenation character(s) and should apply any appropriate spelling changes just as for automatic hyphenation at the same point.”
43384340

43394341
<dfn id=hyphenate lt="hyphenation|hyphenate">Hyphenation</dfn>
43404342
is the controlled splitting of words
@@ -4402,6 +4404,14 @@ Hyphenation: the 'hyphens' property</h3>
44024404
</table>
44034405
</details>
44044406

4407+
<wpt>
4408+
hyphens/i18n/hyphens-i18n-auto-001.html
4409+
hyphens/i18n/hyphens-i18n-auto-002.html
4410+
hyphens/i18n/hyphens-i18n-auto-003.html
4411+
hyphens/i18n/hyphens-i18n-auto-004.html
4412+
hyphens/i18n/hyphens-i18n-auto-005.html
4413+
</wpt>
4414+
44054415
Hyphenation occurs
44064416
when the line breaks at a valid <dfn>hyphenation opportunity</dfn>,
44074417
which is a type of [=soft wrap opportunity=]
@@ -4504,6 +4514,11 @@ Hyphenation: the 'hyphens' property</h3>
45044514
hyphens/hyphens-shaping-002.html
45054515
hyphens/hyphens-span-001.html
45064516
hyphens/shy-styling-001.html
4517+
hyphens/i18n/hyphens-i18n-manual-001.html
4518+
hyphens/i18n/hyphens-i18n-manual-002.html
4519+
hyphens/i18n/hyphens-i18n-manual-003.html
4520+
hyphens/i18n/hyphens-i18n-manual-004.html
4521+
hyphens/i18n/hyphens-i18n-manual-005.html
45074522
</wpt>
45084523

45094524
<div class="example">
@@ -5072,15 +5087,13 @@ Text Alignment: the 'text-align' shorthand</h3>
50725087

50735088
<wpt>
50745089
text-align/text-align-008.html
5075-
</wpt>
5076-
5077-
<wpt pathprefix="/css/css-text/text-align/">
5078-
text-align-match-parent-01.html
5079-
text-align-match-parent-02.html
5080-
text-align-match-parent-03.html
5081-
text-align-match-parent-04.html
5082-
text-align-match-parent-root-ltr.html
5083-
text-align-match-parent-root-rtl.html
5090+
text-align/text-align-match-parent-01.html
5091+
text-align/text-align-match-parent-02.html
5092+
text-align/text-align-match-parent-03.html
5093+
text-align/text-align-match-parent-04.html
5094+
text-align/text-align-match-parent-root-ltr.html
5095+
text-align/text-align-match-parent-root-rtl.html
5096+
text-align/text-align-match-parent-root-logical.html
50845097
</wpt>
50855098

50865099
When specified on the 'text-align' shorthand,
@@ -5258,9 +5271,6 @@ Justification Method: the 'text-justify' property</h3>
52585271
but the tests are minimal.
52595272
Not sure we can do better though.
52605273
5261-
Missing tests:
5262-
* distribute <i>computes to</i> inter-character
5263-
52645274
Untestable(?):
52655275
* behavior of auto"></wpt>
52665276

@@ -5450,10 +5460,8 @@ Justification Method: the 'text-justify' property</h3>
54505460

54515461
<wpt>
54525462
text-justify/text-justify-003.html
5453-
</wpt>
5454-
5455-
<wpt pathprefix="/css/css-text/text-justify/">
5456-
text-justify-distribute-001.html
5463+
parsing/text-justify-computed-legacy.html
5464+
text-justify/text-justify-distribute-001.html
54575465
</wpt>
54585466
</dl>
54595467

@@ -8137,13 +8145,19 @@ Changes</h2>
81378145
<h3 class="no-num" id="recent-changes">
81388146
Recent Changes</h3>
81398147

8140-
<wpt title="Tests not needed for this section."></wpt>
8141-
81428148
The following normative changes have been made since
81438149
the <a href="https://www.w3.org/TR/2020/CR-css-text-3-20201222/">December 2020 Candidate Recommendation</a>.
81448150

8145-
* Define that ''distribute'' computes to ''inter-character'', rather than merely behave the same.
8146-
(<a href="https://github.com/w3c/csswg-drafts/issues/6156">Issue 6156</a>)
8151+
* Define that ''distribute'' computes to ''inter-character'', rather than merely behave the same;
8152+
allow''text-justify/distribute'' to be implemented as a [=legacy value alias=],
8153+
since this is easier for some engines and does not matter for compatibility.
8154+
(<a href="https://github.com/w3c/csswg-drafts/issues/6156">Issue 6156</a>,
8155+
<a href="https://github.com/w3c/csswg-drafts/issues/7322">Issue 7322</a>)
8156+
8157+
<wpt>
8158+
parsing/text-justify-computed-legacy.html
8159+
</wpt>
8160+
81478161
* Clarify that language-specific hyphenation rules also apply to explicit [=hyphenation opportunities=].
81488162
(<a href="https://github.com/w3c/csswg-drafts/issues/5973">Issue 5973</a>)
81498163
<blockquote>
@@ -8153,12 +8167,22 @@ Recent Changes</h3>
81538167
and should apply any appropriate spelling changes
81548168
just as for automatic hyphenation at the same point.</ins>
81558169
</blockquote>
8170+
8171+
<wpt>
8172+
hyphens/i18n/hyphens-i18n-manual-001.html
8173+
hyphens/i18n/hyphens-i18n-manual-002.html
8174+
hyphens/i18n/hyphens-i18n-manual-003.html
8175+
hyphens/i18n/hyphens-i18n-manual-004.html
8176+
hyphens/i18n/hyphens-i18n-manual-005.html
8177+
</wpt>
8178+
81568179
* Define ''text-align/match-parent'' on the [=root element=] to compute to ''text-align/start''
81578180
instead of computing against the [=principal writing mode=].
81588181
(<a href="https://github.com/w3c/csswg-drafts/issues/6542">Issue 6542</a>)
8159-
* Allow ''text-justify/distribute'' to be implemented as a [=legacy value alias=],
8160-
since this is easier for some engines and does not matter for compatibility.
8161-
(<a href="https://github.com/w3c/csswg-drafts/issues/7322">Issue 7322</a>)
8182+
8183+
<wpt>
8184+
text-align/text-align-match-parent-root-logical.html
8185+
</wpt>
81628186

81638187
In addition there have been some minor editorial fixes.
81648188

0 commit comments

Comments
 (0)