[CSS container Queries] Include container queries in RuleSets
[webkit.git] / LayoutTests / imported / w3c / web-platform-tests / css / css-contain / contain-layout-containing-block-fixed-001.html
blob979d71d406d293a3a0a507bf4a4c6a07826cbef7
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>CSS Test: 'contain: layout' element should contain fixed position elements.</title>
6 <link rel="author" title="Kyle Zentner" href="mailto:zentner.kyle@gmail.com">
7 <link rel="author" title="Morgan Rae Reschenberg" href="mailto:mreschenberg@berkeley.edu">
8 <link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-layout">
9 <link rel="match" href="contain-paint-containing-block-fixed-001-ref.html">
10 <style>
11 #a {
12 contain: layout;
13 width: 100px;
14 height: 100px;
15 background: red;
16 margin: 50px;
18 #b {
19 position: fixed;
20 top: 0;
21 left: 0;
22 width: 100px;
23 height: 100px;
24 background: green;
26 </style>
27 </head>
28 <body>
29 <div id="a">
30 <div>
31 <div id="b"></div>
32 </div>
33 </div>
34 </body>
35 </html>