forked from mirrors/gecko-dev
The previous implementation of line-clamp was relying on the flex measuring reflow. Differential Revision: https://phabricator.services.mozilla.com/D157371
16 lines
254 B
HTML
16 lines
254 B
HTML
<!doctype html>
|
|
<meta charset="utf-8">
|
|
<title>CSS Test Reference</title>
|
|
<style>
|
|
.clamp {
|
|
font: 16px / 32px serif;
|
|
white-space: pre;
|
|
background-color: yellow;
|
|
height: 5em;
|
|
}
|
|
</style>
|
|
<div class="clamp">Line 1
|
|
Line 2…
|
|
Line 3
|
|
Line 4
|
|
Line 5</div>
|