1
0
Fork 0
firefox/testing/web-platform/tests/css/css-inline/text-box-trim/text-box-on-non-root-inline-box.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

28 lines
1.1 KiB
HTML

<!DOCTYPE html>
<title>text-box on non-root inline box does not affect layout bounds only the box's size.</title>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim">
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-edge">
<style>
@import "support/TestMetricsFont.css";
div {
font-family: MetricsTestFont;
font-size: 12px;
}
.aqua {
background-color: aqua;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<body onload="checkLayout('.aqua')">
<div>
<span class=aqua style="text-box: ex alphabetic;" data-offset-y=16 data-expected-height=2>ApÉx</span>
<span class=aqua style="text-box: trim-start cap alphabetic; data-offset-y=14 data-expected-height=10">ApÉx</span>
<span class=aqua style="text-box: trim-end text alphabetic;" data-offset-y=8 data-expected-height=10>ApÉx</span>
</div>
<div class=aqua data-expected-height=18>
<span style="font-size: 18px; text-box: ex alphabetic;">ApÉx</span>
</div>
</body>