1
0
Fork 0
firefox/testing/web-platform/tests/css/css-inline/text-box-trim/new-fc-001.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

33 lines
1.1 KiB
HTML

<!DOCTYPE html>
<title>text-box-trim with block formatting context root children</title>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<style>
.container {
position: relative;
text-box-trim: trim-both;
font-family: Ahem;
font-size: 20px;
line-height: 40px;
color: green;
background: red;
}
.filler {
position: absolute;
width: 100px;
height: 20px;
background: green;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="width:100px; height:100px; background:red;">
<div class="container">
<div style="display:flow-root;">xxxxx</div>
<div style="display:flow-root;">xxxxx</div>
<div style="display:flow-root;">xxxxx</div>
<div class="filler" style="top:20px;"></div>
<div class="filler" style="top:60px;"></div>
</div>
</div>