Skip to content

Commit

Permalink
[css-text] Update test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
frivoal committed May 27, 2024
1 parent 1839d5c commit 6b3a79f
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 2 deletions.
23 changes: 23 additions & 0 deletions css-text-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2337,6 +2337,7 @@ Phase II: Trimming and Positioning</h4>
white-space/white-space-pre-wrap-justify-002.html
white-space/white-space-pre-wrap-justify-003.html
white-space/white-space-pre-wrap-justify-004.html
white-space/eol-spaces-bidi-004.html
</wpt>

Note: [=Hanging=] the white space rather than collapsing it
Expand Down Expand Up @@ -3303,6 +3304,11 @@ Line Breaking and Word Boundaries</h2>
Any guidance on additional appropriate references
would be much appreciated.

<wpt>
line-breaking/line-breaking-028.html
line-breaking/line-breaking-029.html
</wpt>

<wpt title="Generic line-breaking tests not particularly anchored to any specific spec language">
shaping/shaping_lig-001.html
</wpt>
Expand Down Expand Up @@ -5187,6 +5193,7 @@ Text Alignment: the 'text-align' shorthand</h3>
text-align/text-align-justify-005.html
text-align/text-align-justify-006.html
text-align/text-align-justify-shy-001.html
text-align/text-align-justify-bidi-control.html
</wpt>

<wpt pathprefix="/css/CSS2/text">
Expand Down Expand Up @@ -5365,6 +5372,7 @@ Last Line Alignment: the 'text-align-last' property</h3>
parsing/text-align-last-computed.html
text-align/text-align-last-013.html
text-align/text-align-last-014.html
text-align/text-align-last-justify-br.html
</wpt>

This property describes how the last line of a block or a line
Expand Down Expand Up @@ -6015,6 +6023,9 @@ Word Spacing: the 'word-spacing' property</h3>
word-spacing-098.xht
word-spacing-099.xht
</wpt>
<wpt>
word-spacing/word-spacing-002.html
</wpt>
</dl>

Additional spacing is applied to each [=word separator=] left in the text
Expand Down Expand Up @@ -6110,6 +6121,7 @@ Tracking: the 'letter-spacing' property</h3>
letter-spacing/letter-spacing-201.html
letter-spacing/letter-spacing-203.html
letter-spacing/letter-spacing-206.html
letter-spacing/letter-spacing-end-of-line-002.html
</wpt>

<wpt pathprefix="/css/CSS2/css1">
Expand Down Expand Up @@ -8674,4 +8686,15 @@ Older Changes</h3>
text-spacing-trim/text-spacing-trim-start-001.html
text-spacing-trim/text-spacing-trim-start-002.html
text-transform/math/text-transform-math-auto-003.html

white-space/text-wrap-balance-003.html
white-space/text-wrap-balance-004.html
white-space/text-wrap-balance-float-006.html
white-space/text-wrap-balance-right-to-left.html
white-space/text-wrap-balance-top-to-bottom.html
white-space/text-wrap-nowrap-001.html
text-spacing-trim/text-spacing-trim-span-001.html
text-spacing-trim/text-spacing-trim-subset-001.html
letter-spacing/letter-spacing-percent-001.html
word-spacing/word-spacing-percent-001.html
</wpt>
30 changes: 28 additions & 2 deletions css-text-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3521,6 +3521,7 @@ Phase II: Trimming and Positioning</h4>
white-space/white-space-pre-wrap-justify-002.html
white-space/white-space-pre-wrap-justify-003.html
white-space/white-space-pre-wrap-justify-004.html
white-space/eol-spaces-bidi-004.html
</wpt>

Note: [=Hanging=] the white space rather than collapsing it
Expand Down Expand Up @@ -4221,6 +4222,7 @@ Deciding Whether to Wrap: the 'text-wrap-mode' property</h3>
parsing/white-space-shorthand-text-wrap.html
white-space/text-wrap-balance-001.html
white-space/text-wrap-balance-002.html
white-space/text-wrap-balance-003.html
white-space/text-wrap-balance-align-001.html
white-space/text-wrap-balance-dynamic-001.html
white-space/text-wrap-balance-line-clamp-001.html
Expand Down Expand Up @@ -5072,6 +5074,7 @@ Deciding Whether to Wrap: the 'text-wrap-mode' property</h3>
<wpt title="tests using nowrap directly through 'text-wrap-mode':">
</wpt>
<wpt title="tests using nowrap through 'text-wrap: nowrap':">
white-space/text-wrap-nowrap-001.html
</wpt>
<wpt title="CSS 2 indirect tests via 'white-space: pre':" pathprefix="/css/CSS2/text/">
white-space-pre-001.xht
Expand Down Expand Up @@ -5542,6 +5545,7 @@ Selecting How to Wrap: the 'text-wrap-style' property</h3>
<wpt>
white-space/text-wrap-balance-001.html
white-space/text-wrap-balance-002.html
white-space/text-wrap-balance-003.html
white-space/text-wrap-balance-align-001.html
white-space/text-wrap-balance-dynamic-001.html
white-space/text-wrap-balance-line-clamp-001.html
Expand All @@ -5550,6 +5554,8 @@ Selecting How to Wrap: the 'text-wrap-style' property</h3>
crashtests/text-wrap-balance-nested-blocks-crash.html
white-space/text-wrap-balance-overflow-001.html
white-space/text-wrap-balance-overflow-002.html
white-space/text-wrap-balance-right-to-left.html
white-space/text-wrap-balance-top-to-bottom.html
</wpt>

The remaining space to consider
Expand All @@ -5567,6 +5573,7 @@ Selecting How to Wrap: the 'text-wrap-style' property</h3>
white-space/text-wrap-balance-float-003.html
white-space/text-wrap-balance-float-004.html
white-space/text-wrap-balance-float-005.html
white-space/text-wrap-balance-float-006.html
</wpt>

Groups of lines separated by a [=forced line break=]
Expand Down Expand Up @@ -6290,6 +6297,11 @@ Line Breaking and Word Boundaries</h2>
Any guidance on additional appropriate references
would be much appreciated.

<wpt>
line-breaking/line-breaking-028.html
line-breaking/line-breaking-029.html
</wpt>

<wpt title="Generic line-breaking tests not particularly anchored to any specific spec language">
shaping/shaping_lig-001.html
</wpt>
Expand Down Expand Up @@ -8572,6 +8584,7 @@ Text Alignment: the 'text-align' shorthand</h3>
text-align/text-align-justify-005.html
text-align/text-align-justify-006.html
text-align/text-align-justify-shy-001.html
text-align/text-align-justify-bidi-control.html
</wpt>
<wpt pathprefix="/css/CSS2/text">
Expand Down Expand Up @@ -8943,6 +8956,7 @@ Last Line Alignment: the 'text-align-last' property</h3>
parsing/text-align-last-computed.html
text-align/text-align-last-013.html
text-align/text-align-last-014.html
text-align/text-align-last-justify-br.html
</wpt>
This property describes how the last line of a block or a line
Expand Down Expand Up @@ -9714,6 +9728,8 @@ Word Spacing: the 'word-spacing' property</h3>
<wpt>
word-spacing/word-spacing-001.html
word-spacing/word-spacing-002.html
word-spacing/word-spacing-percent-001.html
tab-size/tab-size-spacing-001.html
</wpt>
Expand Down Expand Up @@ -9835,7 +9851,6 @@ Tracking: the 'letter-spacing' property</h3>
Missing tests:
* Applies to text
* percentage
* Due to <a href=https://github.com/w3c/csswg-drafts/issues/1518>issue 1518</a>, some/many tests in this section should be converted from MUST to SHOULD.
* inherit lengths as absolute
* For legacy reasons, a computed letter-spacing of zero yields a resolved value (getComputedStyle() return value) of normal.
Expand Down Expand Up @@ -9868,6 +9883,7 @@ Tracking: the 'letter-spacing' property</h3>
letter-spacing/letter-spacing-201.html
letter-spacing/letter-spacing-203.html
letter-spacing/letter-spacing-206.html
letter-spacing/letter-spacing-end-of-line-002.html
</wpt>
<wpt pathprefix="/css/CSS2/css1">
Expand Down Expand Up @@ -9948,7 +9964,7 @@ Tracking: the 'letter-spacing' property</h3>
letter-spacing-100.xht
</wpt>
<dt><dfn>&lt;length&gt;</dfn>
<dt><dfn>&lt;length-percentage&gt;</dfn>
<dd>
Specifies <em>additional</em> spacing
between [=typographic character units=].
Expand Down Expand Up @@ -10015,6 +10031,9 @@ Tracking: the 'letter-spacing' property</h3>
letter-spacing-101.xht
letter-spacing-102.xht
</wpt>
<wpt>
letter-spacing/letter-spacing-percent-001.html
</wpt>
</dl>
For <a href="https://github.com/w3c/csswg-drafts/issues/1484">legacy reasons</a>,
Expand Down Expand Up @@ -10563,6 +10582,11 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
and collapse spacing between punctuation glyphs
<a href="#fullwidth-collapsing">as described below</a>.
<wpt>
text-spacing-trim/text-spacing-trim-span-001.html
text-spacing-trim/text-spacing-trim-subset-001.html
</wpt>
<dt><dfn>trim-both</dfn>
<dd>
Set <a>fullwidth opening punctuation</a> with half-width glyphs (flush)
Expand All @@ -10586,6 +10610,7 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
text-spacing-trim/text-spacing-trim-dot-001.html
text-spacing-trim/text-spacing-trim-quote-001.html
text-spacing-trim/text-spacing-trim-start-001.html
text-spacing-trim/text-spacing-trim-span-001.html
</wpt>
<details class="note">
Expand Down Expand Up @@ -10641,6 +10666,7 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
text-spacing-trim/text-spacing-trim-start-001.html
text-spacing-trim/text-spacing-trim-start-002.html
text-spacing-trim/text-spacing-trim-end-001.html
text-spacing-trim/text-spacing-trim-span-001.html
</wpt>
<dt><dfn>trim-all</dfn>
Expand Down

0 comments on commit 6b3a79f

Please sign in to comment.