tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

contain-paint-ignored-cases-ruby-stacking-and-clipping-001.html (1806B)


      1 <!doctype html>
      2 <html lang=en>
      3  <head>
      4    <meta charset=utf-8>
      5    <title>CSS-contain test: paint containment on internal ruby elements.</title>
      6    <link rel="author" title="Yusuf Sermet" href="mailto:ysermet@mozilla.com">
      7    <link rel="help" href="https://drafts.csswg.org/css-contain/#containment-paint">
      8    <link rel="match" href="contain-paint-ignored-cases-ruby-stacking-and-clipping-001-ref.html">
      9    <meta name="assert" content="Paint containment should not apply to ruby base, ruby base container, ruby text, and ruby text container. This test confirms that contain:paint does not create a stacking context and does not apply overflow clipping.">
     10    <style>
     11      div {
     12        position: relative;
     13      }
     14      rb,
     15      rbc,
     16      rt,
     17      rtc {
     18        contain: paint;
     19      }
     20      rbc {
     21        display: ruby-base-container;
     22      }
     23      .contained {
     24        z-index: 5;
     25        width: 70px;
     26        height: 10px;
     27        background-color: blue;
     28        margin-left: -25px;
     29      }
     30      .background {
     31        background-color: yellow;
     32        height: 50px;
     33        width: 50px;
     34        position: fixed;
     35        z-index: 2;
     36      }
     37      .group {
     38        display: inline-block;
     39      }
     40    </style>
     41  </head>
     42  <body>
     43    <div class="group">
     44      <div class="background"></div>
     45      <ruby><rb>&emsp;<div class="contained"></div></rb></ruby>
     46    </div>
     47    <div class="group">
     48      <div class="background"></div>
     49      <ruby><rbc>&emsp;<div class="contained"></div></rbc></ruby>
     50    </div>
     51    <div class="group">
     52      <div class="background"></div>
     53      <ruby><rt>&emsp;<div class="contained"></div></rt></ruby>
     54    </div>
     55    <div class="group">
     56      <div class="background"></div>
     57      <ruby><rtc>&emsp;<div class="contained"></div></rtc></ruby>
     58    </div>
     59  </body>
     60 </html>