Files
sousa-gecko/testing/web-platform/tests/css/css-overflow/parsing/overflow-clip-margin-computed.html
T
Sammy Gill 4e439b1f28 Bug 2034267 [wpt PR 59418] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=308522, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=308522 (#59418)
--

wpt-commits: 688fb9bb993844c390583b4ae3e7b7b8c850a5f4
wpt-pr: 59418
2026-04-28 18:15:35 +00:00

42 lines
1.9 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Overflow: getComputedStyle() for overflow-clip-margin</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow/#overflow-clip-margin">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
</head>
<body>
<div id="target"></div>
<script>
test_computed_value("overflow-clip-margin", "0px", "0px");
test_computed_value("overflow-clip-margin", "10px");
test_computed_value("overflow-clip-margin", "content-box");
test_computed_value("overflow-clip-margin", "content-box 0px", "content-box");
test_computed_value("overflow-clip-margin", "content-box 10px");
test_computed_value("overflow-clip-margin", "10px content-box", "content-box 10px");
test_computed_value("overflow-clip-margin", "padding-box", "0px");
test_computed_value("overflow-clip-margin", "padding-box 0px", "0px");
test_computed_value("overflow-clip-margin", "padding-box 10px", "10px");
test_computed_value("overflow-clip-margin", "10px padding-box", "10px");
test_computed_value("overflow-clip-margin", "border-box");
test_computed_value("overflow-clip-margin", "border-box 0px", "border-box");
test_computed_value("overflow-clip-margin", "border-box 10px");
test_computed_value("overflow-clip-margin", "10px border-box", "border-box 10px");
test_computed_value("overflow-clip-margin", "calc(100px - 50px)", "50px");
test_computed_value("overflow-clip-margin", "calc(100px - 100px)", "0px");
test_computed_value("overflow-clip-margin", "calc(0.5em + 100px)", "108px");
test_computed_value("overflow-clip-margin", "padding-box calc(0.5em + 100px)", "108px");
test_computed_value("overflow-clip-margin", "padding-box calc(100px - 100px)", "0px");
test_computed_value("overflow-clip-margin", "border-box calc(0.5em + 100px)", "border-box 108px");
</script>
</body>
</html>