1
0
Fork 0
firefox/testing/web-platform/tests/css/css-overflow/line-clamp/line-clamp-027.tentative.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

27 lines
884 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: sizing of line-clamp elements with ruby annotations</title>
<link rel="author" title="Andreu Botella" href="mailto:abotella@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-overflow-4/#line-clamp">
<link rel="match" href="reference/line-clamp-027-ref.html">
<meta name="assert" content="The sizing of a line-clamp element should be exactly as if it had no content after clamp, even if there are ruby annotations involved.">
<style>
.clamp {
line-clamp: 3;
font-size: 16px / 16px serif;
white-space: pre-wrap;
background-color: yellow;
}
ruby.under {
ruby-position: under;
}
.large {
font-size: 3em;
}
</style>
<div class="clamp">Line 1
Line 2
<ruby class="under">Line 3<rt>ruby</ruby>
<ruby>Line 4<rt class="large">ruby</ruby>
Line 5
<ruby class="under">Line 6<rt class="large">ruby</ruby></div>