mirror of
https://github.com/servo/servo.git
synced 2025-06-19 14:48:59 +01:00
This adds the infrastructure necessary to support stacking contexts that are not containing blocks for absolutely-positioned elements. Our infrastructure did not support that before. This minor revamp actually ended up simplifying the logic around display list building and stacking-relative position computation for absolutely-positioned flows, which was nice.
27 lines
351 B
HTML
27 lines
351 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!-- Tests that opacity works. -->
|
|
<style>
|
|
section {
|
|
position: absolute;
|
|
width: 100px;
|
|
height: 100px;
|
|
top: 50px;
|
|
left: 50px;
|
|
}
|
|
#a {
|
|
background: #800000;
|
|
}
|
|
#b {
|
|
background: #000080;
|
|
opacity: 0.75;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<section id=a></section>
|
|
<section id=b></section>
|
|
</body>
|
|
</html>
|
|
|