Tests: Add ref-test for "text-overflow"

This commit is contained in:
Tobias Christiansen 2024-07-29 18:36:16 +02:00 committed by Sam Atkins
commit e2c9e34050
Notes: github-actions[bot] 2024-08-03 09:05:33 +00:00
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,10 @@
<!doctype html>
<style>
div {
overflow: hidden;
white-space: nowrap;
width: 75px;
}
</style>
<div>This text gets clipped</div>
<div>This tex…</div>

View file

@ -0,0 +1,17 @@
<!doctype html>
<link rel="match" href="reference/text-overflow.html" />
<style>
div {
overflow: hidden;
white-space: nowrap;
width: 75px;
}
.clip {
text-overflow: clip;
}
.ellipsis {
text-overflow: ellipsis;
}
</style>
<div class="clip">This text gets clipped</div>
<div class="ellipsis">This text gets an ellipsis</div>