[CSS container Queries] Include container queries in RuleSets
[webkit.git] / LayoutTests / imported / w3c / web-platform-tests / css / css-contain / contain-html-t-o-001.html
blobd74fa252660f0b870435b1b7769897121a6e5f76
1 <!doctype html>
2 <html lang=en>
3 <meta charset=utf-8>
4 <title>CSS-contain test: layout containment on html prevents text-orientation propagation</title>
5 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
6 <meta name=flags content="">
7 <meta name=assert content="layout containment on html prevents text-orientation propagation">
8 <link rel="match" href="reference/contain-body-t-o-001-ref.html">
9 <link rel=help href="https://drafts.csswg.org/css-contain-1/#contain-property">
11 <style>
12 html {
13 writing-mode: vertical-lr;
14 direction: rtl;
15 width: 100vw;
16 height: 100vh;
17 overflow: hidden;
19 body {
20 margin: 0;
21 border-top: 100px solid red;
22 border-bottom: 100px solid green;
23 width: 100vw;
24 height: 100vh;
25 text-orientation: upright;
27 html {
28 contain: layout;
30 p {
31 margin: auto;
32 padding: 150px 0;
33 writing-mode: horizontal-tb;
34 direction: ltr;
36 </style>
38 <p>Test passes if there is no red.