mirror of
https://github.com/servo/servo.git
synced 2025-07-01 04:23:39 +01:00
32 lines
844 B
HTML
32 lines
844 B
HTML
<!doctype html>
|
|
<html lang=en>
|
|
<meta charset=utf-8>
|
|
<title>CSS-contain test: layout containment on ruby-text-container</title>
|
|
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
|
|
<meta name=flags content="ahem">
|
|
<meta name=assert content="layout containment does not apply to ruby-text-container">
|
|
<link rel="match" href="reference/contain-layout-004-ref.html">
|
|
<link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-layout">
|
|
|
|
<style>
|
|
rtc {
|
|
contain: layout;
|
|
display: ruby-text-container;
|
|
font-family: ahem;
|
|
font-size: 20px;
|
|
line-height: 1;
|
|
}
|
|
rtc::before {
|
|
content: "X";
|
|
color: green;
|
|
}
|
|
rtc::after {
|
|
content: "X";
|
|
color: white;
|
|
position: absolute;
|
|
top:0; left: 0;
|
|
}
|
|
</style>
|
|
|
|
<p>This test passes if you can see a green box below.
|
|
<div><ruby><rtc></rtc></ruby></div>
|