[CSS container Queries] Include container queries in RuleSets
[webkit.git] / LayoutTests / imported / w3c / web-platform-tests / css / css-contain / contain-body-bg-003.html
blob0aaf8b0da859ba89dda8977bf18663be012d1fb5
1 <!doctype html>
2 <html lang=en>
3 <meta charset=utf-8>
4 <title>CSS-contain test: size containment on body prevents background propagation</title>
5 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
6 <meta name=flags content="">
7 <meta name=assert content="size containment on body prevents background propagation">
8 <link rel="match" href="reference/contain-body-bg-001-ref.html">
9 <link rel=help href="https://drafts.csswg.org/css-contain-1/#contain-property">
11 <style>
12 html, body, p {
13 margin: 0;
14 width: 300px;
15 height: 200px;
17 p {
18 background: white;
20 body {
21 background: red;
22 contain: size;
24 </style>
26 <p>Test passes if there is no red.