Files
tubestation/layout/reftests/pagination/inline-block-slice-7-ref.html
Ting-Yu Lin 8b37b1799b Bug 1926809 - Make inline-block-slice-7 reftest stable by removing usage of viewport-relative units. r=dholbert
Change all the viewport-relative units to inch so that it is more stable in
reftest-paged environment. In addition, add `margin-block-start` to `.after` in
the reference so that we can use `==` rather than `!=` to compare the test.

Differential Revision: https://phabricator.services.mozilla.com/D226959
2024-10-26 18:44:40 +00:00

51 lines
1.0 KiB
HTML

<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html class="reftest-paged">
<head>
<style>
@page {
size: 5in 3in;
margin: 0.5in;
}
@font-face {
font-family: Ahem;
src: url(../fonts/Ahem.ttf);
}
html,body {
color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
}
html { block-size: 1in; }
.ib {
display: block;
inline-size: 2.5in;
block-size: 3in;
border: 5px solid black;
margin-left: 20px;
margin-top: -20px;
}
.ib > div {
block-size: 3.25in; /* creates a bit of scrollable overflow on .ib */
}
.after {
margin-block-start: calc(0.25in - 5px); /* scrollable overflow 0.25in minus border-block-end-width 5px */
display: block;
inline-size: 2.5in;
block-size: 0.25in;
border: 5px dashed grey;
background-color: grey;
}
</style>
</head>
<body>
X<span style="display:inline-block; inline-size:2.5in; border:5px solid transparent"></span>p
<div class="ib"><div></div></div>
<div class="after"></div>
</body>
</html>