blob: 9c24210c2570224f6a1812b84148c4ca468a4473 (
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
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
<!DOCTYPE html>
<title>CSS Position Absolute: Chrome crash</title>
<link rel="author" href="mailto:atotic@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://crbug.com/945696">
<meta name="assert" content="Absolute descendant inside multiple nested split inlines does not crash.">
<style>
body {
overflow: hidden;
margin: 0px;
font-size: 24px;
}
#block-container {
position: relative;
}
#css-container {
position: relative;
font-size: 12px;
}
#anonymous-parent {
background-color: #FFFF7F;
}
#anonymous-split {
background-color: #FFD997;
}
#css-container {
background-color: #BEE0FF;
}
#abs {
background-color: rgba(0, 255, 0, 0.5);
position:absolute;
top: 0px;
left: 0px;
}
#fullabs {
background-color: rgba(0, 255, 0, 0.5);
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
</style>
<div id="block-container">
<span id="anonymous-parent">
parent <br>start
<span id="anonymous-split">
split start
<div id="splitter" >splitter</div>
split middle
<span id="css-container">
css-container start
<div id="abs">ABS</div>
<div id="fullabs">FULLABS</div>
css container end
</span>
split end
</span>
parent end
</span>
</div>
<script>
document.body.offsetTop;
test(() => {
}, 'test passes if it does not crash');
</script>
|