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
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
height: 100px;
will-change: transform;
background: black;
box-shadow: 10px 50px 5px red;
box-shadow: 50px 50px 5px green;
}

.cover {
Expand Down
12 changes: 11 additions & 1 deletion css/css-overflow/overflow-clip-content-visual-overflow.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,29 @@
width: 100px;
height: 100px;
background: black;
box-shadow: 10px 50px 5px red;
box-shadow: 50px 50px 5px green;
}

.spacer {
width: 100px;
height: 150px;
}

.fail {
width: 10px;
height: 10px;
background: red;
position: absolute;
z-index: -1;
}
</style>
<div class="parent" style="overflow-x: clip; overflow-y: visible">
<div class="child"></div>
</div>
<div class="fail" style="left: 70px; top: 120px;"></div>
<div class="spacer"></div>
<div class="parent" style="overflow-x: visible; overflow-y: clip">
<div class="child"></div>
</div>
<div class="fail" style="left: 120px; top: 320px;"></div>
</script>
2 changes: 1 addition & 1 deletion css/css-overflow/overflow-clip-hit-testing.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}

.child2 {
background-color: red;
background-color: blue;
}
</style>
<div class="parent" style="display: flex; overflow-x: visible; overflow-y: clip">
Expand Down
4 changes: 2 additions & 2 deletions css/css-overflow/overflow-clip-margin-003-ref.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
width: 100px;
height: 100px;
background-color: green;
box-shadow: 20px 20px 5px red;
box-shadow: 20px 20px 5px blue;
}
</style>
<p>You should see a green box with a red box shadow.
<p>You should see a green box with a blue box shadow.
<div class="parent"></div>
14 changes: 12 additions & 2 deletions css/css-overflow/overflow-clip-margin-003.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,18 @@
background-color: green;
overflow: clip;
overflow-clip-margin: 1px;
box-shadow: 20px 20px 5px red;
box-shadow: 20px 20px 5px blue;
}
.fail {
width: 20px;
height: 20px;
background-color: red;
position: relative;
top: -15px;
left: 85px;
z-index: -1;
}
</style>
<p>You should see a green box with a red box shadow.
<p>You should see a green box with a blue box shadow.
<div class="parent"></div>
<div class="fail"></div>
4 changes: 2 additions & 2 deletions css/css-overflow/overflow-clip-margin-006-ref.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
width: 100px;
height: 100px;
background-color: green;
box-shadow: 20px 20px 5px red;
box-shadow: 20px 20px 5px blue;
}
</style>
<p>You should see a green box with a red box shadow.
<p>You should see a green box with a blue box shadow.
<div class="parent"></div>
14 changes: 12 additions & 2 deletions css/css-overflow/overflow-clip-margin-006.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,18 @@
background-color: green;
contain: paint;
overflow-clip-margin: 1px;
box-shadow: 20px 20px 5px red;
box-shadow: 20px 20px 5px blue;
}
.fail {
width: 20px;
height: 20px;
background-color: red;
position: relative;
top: -15px;
left: 85px;
z-index: -1;
}
</style>
<p>You should see a green box with a red box shadow.
<p>You should see a green box with a blue box shadow.
<div class="parent"></div>
<div class="fail"></div>
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
height: 20px;
background: green;
}
.fail {
width: 20px;
height: 20px;
background: red;
position: relative;
top: -60px;
left: 40px;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div id="container">
Expand All @@ -33,6 +41,7 @@
<div class="content"></div>
</div>
</div>
<div class="fail"></div>
<script>
waitForAtLeastOneFrame().then(() => {
container.style.height = '100px';
Expand Down
Loading