-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathtop-layer-box-uses-icb-htb-ltr.html
More file actions
53 lines (40 loc) · 1.07 KB
/
top-layer-box-uses-icb-htb-ltr.html
File metadata and controls
53 lines (40 loc) · 1.07 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html class="reftest-wait">
<title>Boxes in the top layer use the initial containing block as their static-position rectangle.</title>
<link rel="help" href="https://drafts.csswg.org/css-position-3/#staticpos-rect">
<link rel="match" href="top-layer-box-uses-icb-top-left-ref.html">
<link rel="author" title="Kiet Ho" href="mailto:kiet.ho@apple.com">
<style>
:root {
writing-mode: horizontal-tb;
direction: ltr;
}
body {
margin: 0;
padding: 0;
}
#reference {
width: 100px;
height: 100px;
background: red;
}
#popover {
width: 100px;
height: 100px;
background: green;
/* Override popover UA style */
border: none;
padding: 0;
inset: auto;
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/common/rendering-utils.js"></script>
<div id="reference"></div>
<!-- This green box should fully cover the red box above. -->
<div id="popover" popover></div>
<script>
document.getElementById("popover").showPopover();
waitForAtLeastOneFrame().then(takeScreenshot);
</script>
</html>