Files
sousa-gecko/testing/web-platform/tests/css/css-overflow/overflow-clip-margin-013.html
T
Tab Atkins Jr d64cb0b674 Bug 2030193 [wpt PR 59009] - Test overflow-clip-margin keywords, negative offsets, and effect on scrollers, a=testonly
Automatic update from web-platform-tests
Test overflow-clip-margin keywords, negative offsets, and effect on scrollers (#59009)
--

wpt-commits: 7885b8f629bf7e11220d9ecd56e92c39c060427d
wpt-pr: 59009
2026-04-17 08:39:32 +00:00

32 lines
820 B
HTML

<!doctype html>
<html class="reftest">
<meta charset="utf-8">
<title>overflow-clip-margin: border-box</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Tab Atkins-Bittner" href="mailto:jackalmage@gmail.com">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
.clip {
width: 80px;
height: 80px;
border: 10px solid transparent;
overflow: clip;
overflow-clip-margin: border-box;
background: red;
}
.big {
width: 100px;
height: 100px;
border: 50px solid red;
position: relative;
top: -60px;
left: -60px;
z-index: 1;
background: green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div class=clip>
<div class=big></div>
</div>