mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
Tests: Add ref-test for "text-overflow"
This commit is contained in:
parent
da7f0897d1
commit
e2c9e34050
Notes:
github-actions[bot]
2024-08-03 09:05:33 +00:00
Author: https://github.com/TobyAsE
Commit: e2c9e34050
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/813
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/kalenikaliaksandr ✅
2 changed files with 27 additions and 0 deletions
10
Tests/LibWeb/Ref/reference/text-overflow.html
Normal file
10
Tests/LibWeb/Ref/reference/text-overflow.html
Normal 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>
|
17
Tests/LibWeb/Ref/text-overflow.html
Normal file
17
Tests/LibWeb/Ref/text-overflow.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue