Update web-platform-tests to revision 0a45e9baf952da4787f81ca93d34dfad3ca24d33

This commit is contained in:
WPT Sync Bot 2020-10-21 08:19:33 +00:00
parent 1d217b7f0f
commit 5097f12054
108 changed files with 1154 additions and 315 deletions

View file

@ -0,0 +1,32 @@
<!doctype html>
<meta charset="utf-8">
<title>Verifies overflow-clip-margin extends outside bounds</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Scott Violet" href="mailto:sky@chromium.org">
<style>
.container {
display: flex;
}
.parent {
position: relative;
top: -10px;
left: -10px;
width: 120px;
height: 120px;
flex: none;
background-color: green;
}
.spacer {
flex: none;
height: 100px;
width: 100px;
}
</style>
<p>You should see two green squares touching each other. The one on the
right should be slightly larger.</p>
<div class="spacer"></div>
<div class="container">
<div class="spacer" style="background-color: green"></div>
<div class="parent"></div>
</div>

View file

@ -0,0 +1,42 @@
<!doctype html>
<meta charset="utf-8">
<title>Verifies overflow-clip-margin extends outside bounds</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Scott Violet" href="mailto:sky@chromium.org">
<link rel="match" href="overflow-clip-margin-001-ref.html">
<style>
.container {
display: flex;
}
.parent {
width: 100px;
height: 100px;
flex: none;
overflow: clip;
overflow-clip-margin: 10px;
}
.child {
width: 200px;
height: 200px;
position: relative;
top: -50px;
left: -50px;
background-color: green;
}
.spacer {
flex: none;
height: 100px;
width: 100px;
}
</style>
<p>You should see two green squares touching each other. The one on the
right should be slightly larger.</p>
<div class="spacer"></div>
<div class="container">
<div class="spacer" style="width: 90px; background-color: green"></div>
<div class="spacer" style="width: 10px"></div>
<div class="parent">
<div class="child"></div>
</div>
</div>

View file

@ -0,0 +1,31 @@
<!doctype html>
<meta charset="utf-8">
<title>Verifies overflow-clip-margin impacts layout</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Scott Violet" href="mailto:sky@chromium.org">
<style>
.scroller {
overflow: auto;
width: 100px;
height: 100px;
}
.child {
position: relative;
width: 110px;
height: 110px;
background-color: green;
}
</style>
<p>You should see a green box with scrollbars.</p>
<div class="scroller">
<div class="child"></div>
</div>
<p>You should see a green box with scrollbars.</p>
<div class="scroller">
<div class="child" style="width: 150px; height: 150px"></div>
</div>
<p>You should see a green box with no scrollbars.</p>
<div class="scroller" style="background-color: green">
</div>

View file

@ -0,0 +1,46 @@
<!doctype html>
<meta charset="utf-8">
<title>Verifies overflow-clip-margin impacts layout</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Scott Violet" href="mailto:sky@chromium.org">
<link rel="match" href="overflow-clip-margin-002-ref.html">
<style>
.scroller {
overflow: auto;
width: 100px;
height: 100px;
}
.parent {
width: 100px;
height: 100px;
overflow: clip;
overflow-clip-margin: 10px;
}
.child {
width: 200px;
height: 200px;
position: relative;
top: -50px;
left: -50px;
background-color: green;
}
</style>
<p>You should see a green box with scrollbars.</p>
<div class="scroller">
<div class="parent">
<div class="child"></div>
</div>
</div>
<p>You should see a green box with scrollbars.</p>
<div class="scroller">
<div class="parent" style="overflow-clip-margin: 100px">
<div class="child"></div>
</div>
</div>
<p>You should see a green box with no scrollbars.</p>
<div class="scroller">
<div class="parent" style="background-color: green">
</div>
</div>

View file

@ -0,0 +1,15 @@
<!doctype html>
<meta charset="utf-8">
<title>Verifies overflow-clip-margin doesn't impact paint effects</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Scott Violet" href="mailto:sky@chromium.org">
<style>
.parent {
width: 100px;
height: 100px;
background-color: green;
box-shadow: 20px 20px 5px red;
}
</style>
<p>You should see a green box with a red box shadow.
<div class="parent"></div>

View file

@ -0,0 +1,18 @@
<!doctype html>
<meta charset="utf-8">
<title>Verifies overflow-clip-margin doesn't impact paint effects</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Scott Violet" href="mailto:sky@chromium.org">
<link rel="match" href="overflow-clip-margin-003-ref.html">
<style>
.parent {
width: 100px;
height: 100px;
background-color: green;
overflow: clip;
overflow-clip-margin: 1px;
box-shadow: 20px 20px 5px red;
}
</style>
<p>You should see a green box with a red box shadow.
<div class="parent"></div>

View file

@ -0,0 +1,40 @@
<!doctype html>
<meta charset="utf-8">
<title>CSS Overflow: overflow-clip-margin: invalidation on change</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Scott Violet" href="mailto:sky@chromium.org">
<style>
.container {
display: flex;
}
.parent_overflow {
position: relative;
top: -10px;
left: -10px;
width: 120px;
height: 120px;
flex: none;
background-color: green;
}
.parent {
width: 100px;
height: 100px;
flex: none;
background-color: green;
}
.spacer {
flex: none;
height: 100px;
width: 100px;
}
</style>
<div class="spacer"></div>
<div class="container">
<div class="spacer"></div>
<div class="parent"></div>
<div class="spacer"></div>
<div class="container">
<div class="spacer"></div>
<div class="parent_overflow"></div>
</body>

View file

@ -0,0 +1,64 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<title>CSS Overflow: overflow-clip-margin: invalidation on change</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<meta name="assert" content="overflow-clip-margin: toggling should invalidate.">
<link rel="author" title="Scott Violet" href="mailto:sky@chromium.org">
<link rel="match" href="overflow-clip-margin-invalidation-ref.html">
<style>
.container {
display: flex;
}
.parent {
flex: none;
width: 100px;
height: 100px;
flex: none;
overflow: clip;
}
.child {
width: 200px;
height: 200px;
position: relative;
top: -50px;
left: -50px;
background-color: green;
}
.spacer {
flex: none;
height: 100px;
width: 100px;
}
.margin {
overflow-clip-margin: 10px;
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/common/rendering-utils.js"></script>
</head>
<body>
<div class="spacer"></div>
<div class="container">
<div class="spacer"></div>
<div id="div_with_margin" class="parent margin">
<div class="child"></div>
</div>
<div class="spacer"></div>
<div class="container">
<div class="spacer"></div>
<div id="div_without_margin" class="parent">
<div class="child"></div>
</div>
</body>
<script>
async function runTest() {
document.getElementById('div_with_margin').classList.remove("margin");
document.getElementById('div_without_margin').classList.add("margin");
takeScreenshot();
}
onload = () => {
waitForAtLeastOneFrame().then(() => { runTest() });
}
</script>
</html>