mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
511a39c19d
--HG-- extra : rebase_source : 7b5877bc9336e3b01ec43732a5697fba7994c465
52 lines
758 B
HTML
52 lines
758 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<meta charset="utf-8">
|
|
<title>Test container background searching with clipped display items</title>
|
|
|
|
<style>
|
|
|
|
div {
|
|
box-sizing: border-box;
|
|
width: 200px;
|
|
height: 200px;
|
|
margin-bottom: -200px;
|
|
}
|
|
|
|
#outer {
|
|
background-color: red;
|
|
}
|
|
|
|
#container {
|
|
will-change: opacity;
|
|
}
|
|
|
|
#backgroundCover {
|
|
background-color: lime;
|
|
}
|
|
|
|
#roundedClip {
|
|
overflow: hidden;
|
|
border-radius: 20px;
|
|
}
|
|
|
|
#clippedItem {
|
|
background-color: lime;
|
|
}
|
|
|
|
#separatePaintedLayer {
|
|
position: sticky;
|
|
border: 1px solid lime;
|
|
}
|
|
|
|
</style>
|
|
|
|
<div id="outer">
|
|
<div id="container">
|
|
<div id="backgroundCover"></div>
|
|
<div id="roundedClip">
|
|
<div id="clippedItem"></div>
|
|
</div>
|
|
<div id="separatePaintedLayer"></div>
|
|
</div>
|
|
</div>
|