fune/testing/web-platform/tests/css/css-overflow/overflow-clip-margin-010.html
Vladimir Levin 671a2b307c Bug 1746003 [wpt PR 32047] - overflow-clip-margin: Apply margin on rounded border clips., a=testonly
Automatic update from web-platform-tests
overflow-clip-margin: Apply margin on rounded border clips.

This patch ensures that overflow-clip-margin works correctly even in
the presence of border-radius

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

Fixed: 1200163
Change-Id: If684b1e602186ac6eaed52aa8f6db43eb0335aa8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3336159
Reviewed-by: Philip Rogers <pdr@chromium.org>
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: Vladimir Levin <vmpstr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#956117}

--

wpt-commits: 03ced021594abbd9e914cd5c4ea28175a8e8e333
wpt-pr: 32047
2022-01-11 14:12:28 +00:00

34 lines
728 B
HTML

<!doctype html>
<html class="reftest">
<meta charset="utf-8">
<title>Overflow-clip-margin corner shape</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-010-ref.html">
<style>
.container {
width: 100px;
height: 100px;
position: relative;
top: 30px;
left: 30px;
border: 5px solid green;
overflow: clip;
overflow-clip-margin: 20px;
border-radius: 0px 15px 25px 35px;
}
.child {
width: 400px;
height: 400px;
margin: -200px;
background: lightblue;
opacity: 0.8;
}
</style>
<div class=container>
<div class=child></div>
</div>