Skip to content

Commit cba52cf

Browse files
committed
[css-overflow] Annotate tests
1 parent cd31eef commit cba52cf

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

css-overflow-4/Overview.bs

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ spec:css-writing-modes-4; type:dfn; text:end
2727
<pre class="anchors">
2828
url: https://drafts.csswg.org/selectors-3/#subject; type: dfn; text: subject;
2929
url: https://www.w3.org/TR/CSS21/visudet.html#strut; type: dfn; text: strut;
30+
</pre>
31+
<pre class=metadata>
32+
WPT Display: open
33+
WPT Path Prefix: /css/css-overflow/line-clamp/
3034
</pre>
3135
<style>
3236
table.source-demo-pair {
@@ -707,6 +711,11 @@ Indicating Block-Axis Overflow: the 'block-ellipsis' property</h3>
707711
Animation type: discrete
708712
</pre>
709713

714+
<wpt pathprefix="/css/css-overflow/parsing/">
715+
block-ellipsis-invalid.html
716+
block-ellipsis-valid.html
717+
</wpt>
718+
710719
This property allows inserting content into the last line box
711720
before a [=clamp point=] or a (forced <em>or</em> unforced) <a>region break</a>
712721
to indicate the continuity of truncated / interrupted content.
@@ -729,6 +738,9 @@ Indicating Block-Axis Overflow: the 'block-ellipsis' property</h3>
729738
<dd>
730739
The rendering is unaffected.
731740

741+
<wpt>
742+
block-ellipsis-023.html
743+
</wpt>
732744
<dt><dfn>auto</dfn>
733745
<dd>
734746
Render an ellipsis character (U+2026)--
@@ -750,6 +762,10 @@ Indicating Block-Axis Overflow: the 'block-ellipsis' property</h3>
750762

751763
When set to the empty string,
752764
the behavior is identical to the ''no-ellipsis'' value.
765+
766+
<wpt>
767+
block-ellipsis-024.html
768+
</wpt>
753769
</dl>
754770

755771
When 'block-ellipsis' is neither ''no-ellipsis'' nor the empty string,
@@ -824,6 +840,11 @@ Limiting Visible Lines: the 'line-clamp' shorthand property</h3>
824840
Percentages: N/A
825841
</pre>
826842

843+
<wpt pathprefix="/css/css-overflow/parsing/">
844+
line-clamp-valid.html
845+
line-clamp-invalid.html
846+
</wpt>
847+
827848
The 'line-clamp' property is a <a>shorthand</a>
828849
for the 'max-lines', 'block-ellipsis', and 'continue' properties.
829850

@@ -916,6 +937,11 @@ Legacy compatibility</h4>
916937
Percentages: N/A
917938
</pre>
918939

940+
<wpt pathprefix="/css/css-overflow/parsing/">
941+
webkit-line-clamp-valid.html
942+
webkit-line-clamp-invalid.html
943+
</wpt>
944+
919945
<pre class="propdef partial">
920946
Name: continue
921947
New Values: -webkit-legacy
@@ -962,6 +988,11 @@ Forcing a Break After a Set Number of Lines: the 'max-lines' property</h3>
962988
Animation type: by computed value type
963989
</pre>
964990

991+
<wpt pathprefix="/css/css-overflow/parsing/">
992+
max-lines-valid.html
993+
max-lines-invalid.html
994+
</wpt>
995+
965996
If the value of 'max-lines' is not <dfn for=max-lines dfn-type=value>none</dfn>,
966997
then, given a [=computed value=] of <var>N</var>:
967998

@@ -974,6 +1005,10 @@ Forcing a Break After a Set Number of Lines: the 'max-lines' property</h3>
9741005
or if there are no possible clamp points
9751006
after the <var>N</var>th descendant <a>in-flow</a> <a>line box</a>,
9761007
then that line-clamp container has no [=line-based clamp point=].
1008+
1009+
<wpt>
1010+
block-ellipsis-022.html
1011+
</wpt>
9771012
- If the box is a [=fragmentation container=] that captures [=region breaks=],
9781013
a <a>region break</a>
9791014
is forced after its <var>N</var>th
@@ -1030,6 +1065,11 @@ Handling of Excess Content: the 'continue' property</h3>
10301065
Animation type: discrete
10311066
</pre>
10321067

1068+
<wpt pathprefix="/css/css-overflow/parsing/">
1069+
continue-valid.html
1070+
continue-invalid.html
1071+
</wpt>
1072+
10331073
The 'continue' property gives authors the ability
10341074
to truncate/interrupt the content inside a box,
10351075
either by visually hiding the remaining content,
@@ -1138,6 +1178,10 @@ Handling of Excess Content: the 'continue' property</h3>
11381178
the [=computed value=] becomes ''inline-block'' and
11391179
the box establishes a [=BFC=].
11401180

1181+
<wpt pathprefix="/css/css-overflow/parsing/">
1182+
webkit-box-computed.html
1183+
</wpt>
1184+
11411185
Note: This means that 'line-clamp' (set without ''line-clamp/-webkit-legacy'') will work
11421186
if both or neither of ''-webkit-box-orient: vertical''
11431187
and ''display: -webkit-box'' or ''display: -webkit-inline-box'' are set,
@@ -1252,6 +1296,12 @@ Handling of Excess Content: the 'continue' property</h3>
12521296
nor is any additional [=multi-column line=] or [=multi-column row=]
12531297
that would be generated to hold such content.
12541298

1299+
<wpt>
1300+
discard/discard-multicol-001.html
1301+
discard/discard-multicol-002.html
1302+
discard/discard-multicol-003.html
1303+
</wpt>
1304+
12551305
<div class=example id=discard-overflow-column>
12561306
In the absence of the 'continue' property,
12571307
based on [[css-multicol-1 inline]],

0 commit comments

Comments
 (0)