diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-overflow/overflow-clip-margin-011.html')
-rw-r--r-- | testing/web-platform/tests/css/css-overflow/overflow-clip-margin-011.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-overflow/overflow-clip-margin-011.html b/testing/web-platform/tests/css/css-overflow/overflow-clip-margin-011.html new file mode 100644 index 0000000000..5952f5e9de --- /dev/null +++ b/testing/web-platform/tests/css/css-overflow/overflow-clip-margin-011.html @@ -0,0 +1,35 @@ +<!doctype html> +<meta charset="utf-8"> +<title>Overflow-clip-margin: child of a small-border-box out-of-view large-clip-margin parent is shown</title> +<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin"> +<link rel="author" title="Xianzhu Wang" href="mailto:wangxianzhu@chromium.org"> +<link rel="match" href="overflow-clip-margin-011-ref.html"> +<style> + .overflow-hidden { + width: 200px; + height: 200px; + overflow: hidden; + } + .parent { + width: 100px; + height: 100px; + position: relative; + top: 500px; + overflow: clip; + overflow-clip-margin: 500px; + z-index: 1; + background: red; + } + .child { + width: 100px; + height: 100px; + position: relative; + top: -500px; + background: green; + } +</style> +<div class="overflow-hidden"> + <div class="parent"> + <div class="child"> + </div> +</div> |