-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebKit export: [line-clamp] Incorrect clamped block height when conte…
…nt added dynamically (#49881) https://bugs.webkit.org/show_bug.cgi?id=284048 Co-authored-by: Alan Baradlay <zalan@apple.com>
- Loading branch information
1 parent
3459bd4
commit 3d3c608
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
css/css-overflow/line-clamp/line-clamp-content-height-with-dynamic-change-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<title>CSS Overflow: appending to a box with -webkit-line-clamp</title> | ||
<style> | ||
div { | ||
font-family: Monospace; | ||
font-size: 20px; | ||
} | ||
</style> | ||
<body> | ||
<div>first line<br>second line…</div> | ||
</body> |
23 changes: 23 additions & 0 deletions
23
css/css-overflow/line-clamp/line-clamp-content-height-with-dynamic-change.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<title>CSS Overflow: appending to a box with -webkit-line-clamp</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-overflow-3/#webkit-line-clamp"> | ||
<link rel="match" href="reference/webkit-line-clamp-dynamic-001-ref.html"> | ||
<style> | ||
#container { | ||
display: -webkit-box; | ||
-webkit-line-clamp: 2; | ||
-webkit-box-orient: vertical; | ||
font-size: 20px; | ||
font-family: Monospace; | ||
overflow: hidden; | ||
} | ||
</style> | ||
<body> | ||
<div id="container">first line<br>second line<br>PASS if this is not visible<br></div> | ||
<script> | ||
document.body.offsetTop; | ||
let span = document.createElement('span'); | ||
span.textContent = "PASS if this is not visible"; | ||
container.appendChild(span); | ||
</script> | ||
</body> |