mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
layout: Separate out overflow-for-scrolling from overflow-for-paint.
Closes #9484.
This commit is contained in:
parent
f605c6aa69
commit
7c5b2d6cb3
17 changed files with 131 additions and 56 deletions
32
tests/html/overflow-box-shadow.html
Normal file
32
tests/html/overflow-box-shadow.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- Nothing on this page should be scrollable. -->
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.red {
|
||||
background: red;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.green {
|
||||
background: green;
|
||||
position: absolute;
|
||||
width: 500px;
|
||||
height: 100%;
|
||||
right: 0px;
|
||||
|
||||
width: 500px;
|
||||
transform: translateX(250px);
|
||||
box-shadow: 0px 0px 200px black;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="red">
|
||||
<div class="green"></div>
|
||||
</div>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue