blob: bd90fff5143e43d4e1fddd6a1113b97b2a2957a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<!doctype HTML>
<html>
<meta charset="utf8">
<title>Content Visibility: Elements with content-visibility: auto and intrinsic width should render correctly</title>
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility">
<link rel="match" href="container-ref.html">
<meta name="assert" content="Elements with content-visibility: auto and intrinsic width should render correctly">
<style>
#container {
content-visibility: auto;
width: max-content;
background: lightblue;
}
#child {
width: 150px;
height: 150px;
}
</style>
<div id="container">
<div id="child"></div>
</div>
|