summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/editing/the-hidden-attribute/hidden-until-found-005.html
blob: fabf636ec94850c7eea86b4e4bafafb1f795fd66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!doctype HTML>
<html>
<meta charset="utf8">
<title>hidden=until-found and size contained</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="help" href="https://github.com/WICG/display-locking">
<link rel="match" href="hidden-until-found-005-ref.html">
<meta name="assert" content="hidden=until-found puts in size containment">

<style>
div {
  border: 1px solid black;
}
</style>

Test passes if there is a empty div with border below.
<div hidden=until-found>
  This text is not visible, and neither should be the div below.
  <div style="width: 100px; height: 100px; background: red"></div>
</div>
</html>