summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-generated-content/normalize-with-first-letter-and-before-content-crash.html
blob: ca5c1764e244f333372417c7bdc677ed2d4339a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!doctype html>
<style>
.absolutePosition { position: fixed; }
.float:before { float: right; content: ''; }
.float:first-letter { float: right; }
.inline::first-letter { content: ''; }
</style>
<script>
function crash() {
    document.body.offsetTop;
    parent = document.getElementById('parent');
    child.setAttribute('class', 'inline');
    document.body.offsetTop;
    parent.removeChild(child);
    parent.normalize();
}
window.onload = crash;
if (window.testRunner)
    testRunner.dumpAsText();
</script>
<div class="float" id="parent">
<div class="absolutePosition" id="child"></div>
Test passes if no crash.