Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions css/css-overflow/overflow-clip-margin-013.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!doctype html>
<html class="reftest">
<meta charset="utf-8">
<title>overflow-clip-margin: border-box</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Tab Atkins-Bittner" href="mailto:jackalmage@gmail.com">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
.clip {
width: 80px;
height: 80px;
border: 10px solid transparent;
overflow: clip;
overflow-clip-margin: border-box;
background: red;
}
.big {
width: 100px;
height: 100px;
border: 50px solid red;
position: relative;
top: -60px;
left: -60px;
z-index: 1;
background: green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div class=clip>
<div class=big></div>
</div>
32 changes: 32 additions & 0 deletions css/css-overflow/overflow-clip-margin-014.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!doctype html>
<html class="reftest">
<meta charset="utf-8">
<title>overflow-clip-margin: content-box</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Tab Atkins-Bittner" href="mailto:jackalmage@gmail.com">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
.clip {
width: 100px;
height: 100px;
border: 10px solid transparent;
padding: 10px;
margin: -20px 0 0 -20px;
overflow: clip;
overflow-clip-margin: content-box;
}
.big {
width: 100px;
height: 100px;
border: 50px solid red;
position: relative;
top: -50px;
left: -50px;
z-index: 1;
background: green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div class=clip>
<div class=big></div>
</div>
31 changes: 31 additions & 0 deletions css/css-overflow/overflow-clip-margin-015.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!doctype html>
<html class="reftest">
<meta charset="utf-8">
<title>overflow-clip-margin: keyword + positive length</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Tab Atkins-Bittner" href="mailto:jackalmage@gmail.com">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
.clip {
width: 80px;
height: 80px;
border: 10px solid transparent;
overflow: clip;
overflow-clip-margin: padding-box 10px;
background: red;
}
.big {
width: 100px;
height: 100px;
border: 50px solid red;
position: relative;
top: -60px;
left: -60px;
z-index: 1;
background: green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div class=clip>
<div class=big></div>
</div>
33 changes: 33 additions & 0 deletions css/css-overflow/overflow-clip-margin-016.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!doctype html>
<html class="reftest">
<meta charset="utf-8">
<title>overflow-clip-margin: keyword + negative length</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Tab Atkins-Bittner" href="mailto:jackalmage@gmail.com">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
.clip {
width: 100px;
height: 100px;
padding: 10px;
margin: -10px 0 0 -10px;
overflow: clip;
overflow-clip-margin: padding-box -10px;
background: red;
background-clip: content-box;
}
.big {
width: 100px;
height: 100px;
border: 50px solid red;
position: relative;
top: -50px;
left: -50px;
z-index: 1;
background: green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div class=clip>
<div class=big></div>
</div>
33 changes: 33 additions & 0 deletions css/css-overflow/overflow-clip-margin-017.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!doctype html>
<html class="reftest">
<meta charset="utf-8">
<title>overflow-clip-margin: just a negative length</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Tab Atkins-Bittner" href="mailto:jackalmage@gmail.com">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
.clip {
width: 100px;
height: 100px;
padding: 10px;
margin: -10px 0 0 -10px;
overflow: clip;
overflow-clip-margin: -10px;
background: red;
background-clip: content-box;
}
.big {
width: 100px;
height: 100px;
border: 50px solid red;
position: relative;
top: -50px;
left: -50px;
z-index: 1;
background: green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div class=clip>
<div class=big></div>
</div>
32 changes: 32 additions & 0 deletions css/css-overflow/overflow-clip-margin-018.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!doctype html>
<html class="reftest">
<meta charset="utf-8">
<title>overflow-clip-margin: content-box on a scroller</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Tab Atkins-Bittner" href="mailto:jackalmage@gmail.com">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
.clip {
width: 100px;
height: 100px;
border: 10px solid transparent;
padding: 10px;
margin: -20px 0 0 -20px;
overflow: hidden;
overflow-clip-margin: content-box;
}
.big {
width: 100px;
height: 100px;
border: 50px solid red;
position: relative;
top: -50px;
left: -50px;
z-index: 1;
background: green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div class=clip>
<div class=big></div>
</div>
33 changes: 33 additions & 0 deletions css/css-overflow/overflow-clip-margin-019.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!doctype html>
<html class="reftest">
<meta charset="utf-8">
<title>overflow-clip-margin: keyword + negative length on a scroller</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Tab Atkins-Bittner" href="mailto:jackalmage@gmail.com">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
.clip {
width: 100px;
height: 100px;
padding: 10px;
margin: -10px 0 0 -10px;
overflow: hidden;
overflow-clip-margin: padding-box -10px;
background: red;
background-clip: content-box;
}
.big {
width: 100px;
height: 100px;
border: 50px solid red;
position: relative;
top: -50px;
left: -50px;
z-index: 1;
background: green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div class=clip>
<div class=big></div>
</div>
33 changes: 33 additions & 0 deletions css/css-overflow/overflow-clip-margin-020.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!doctype html>
<html class="reftest">
<meta charset="utf-8">
<title>overflow-clip-margin: just a negative length on a scroller</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Tab Atkins-Bittner" href="mailto:jackalmage@gmail.com">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
.clip {
width: 100px;
height: 100px;
padding: 10px;
margin: -10px 0 0 -10px;
overflow: hidden;
overflow-clip-margin: -10px;
background: red;
background-clip: content-box;
}
.big {
width: 100px;
height: 100px;
border: 50px solid red;
position: relative;
top: -50px;
left: -50px;
z-index: 1;
background: green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div class=clip>
<div class=big></div>
</div>
34 changes: 34 additions & 0 deletions css/css-overflow/overflow-clip-margin-021.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!doctype html>
<html class="reftest">
<meta charset="utf-8">
<title>overflow-clip-margin: border-box is ignored on a scroller</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Tab Atkins-Bittner" href="mailto:jackalmage@gmail.com">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
.clip {
width: 80px;
height: 80px;
padding: 10px;
border: 10px solid transparent;
margin: -10px 0 0 -10px;
overflow: hidden;
overflow-clip-margin: border-box;
background: red;
background-clip: content-box;
}
.big {
width: 100px;
height: 100px;
border: 50px solid red;
position: relative;
top: -60px;
left: -60px;
z-index: 1;
background: green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div class=clip>
<div class=big></div>
</div>
34 changes: 34 additions & 0 deletions css/css-overflow/overflow-clip-margin-022.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!doctype html>
<html class="reftest">
<meta charset="utf-8">
<title>overflow-clip-margin: border-box is ignored on a scroller, including the offset</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Tab Atkins-Bittner" href="mailto:jackalmage@gmail.com">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
.clip {
width: 80px;
height: 80px;
padding: 10px;
border: 10px solid transparent;
margin: -10px 0 0 -10px;
overflow: hidden;
overflow-clip-margin: border-box -1000px;
background: red;
background-clip: content-box;
}
.big {
width: 100px;
height: 100px;
border: 50px solid red;
position: relative;
top: -60px;
left: -60px;
z-index: 1;
background: green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div class=clip>
<div class=big></div>
</div>
Loading