fune/testing/web-platform/tests/css/css-overflow/overflow-clip-margin-009.html
Vladimir Levin c4db9cba66 Bug 1745982 [wpt PR 32036] - overflow-clip-margin: Make sure we can inherit from any parent., a=testonly
Automatic update from web-platform-tests
overflow-clip-margin: Make sure we can inherit from any parent.

This patch ensures that we can inherit the value from any parent,
even if the value itself has no effect on the parent.

R=ikilpatrick@chromium.org, chrishtr@chromium.org

Change-Id: I26586956884a1b8b922e9fce75ee4ad408cb4798
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3335076
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Vladimir Levin <vmpstr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#952542}

--

wpt-commits: 17cbe4740c8718505a8a4e76f77dcc37e995a258
wpt-pr: 32036
2021-12-23 14:25:26 +00:00

28 lines
700 B
HTML

<!doctype html>
<html class="reftest">
<meta charset="utf-8">
<title>Overflow-clip-margin can be inherited even if it has no effect on specified element</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="match" href="overflow-clip-margin-009-ref.html">
<style>
.prop {
overflow-clip-margin: 20px;
}
.container {
width: 100px;
height: 100px;
overflow-clip-margin: inherit;
overflow: clip;
}
.child {
width: 200px;
height: 200px;
background: lightblue;
}
</style>
<div class=prop>
<div class=container>
<div class=child></div>
</div>
</div>