blob: cf54aa9121fdd19f554e16bde76396040a7bfa61 [file] [edit]
<!DOCTYPE html>
<meta charset="utf-8">
<title>Generated counter content in ::before should not crash layout</title>
<link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=61411">
<style>
div::before {
counter-reset: foobar;
content: counter(foobar, upper-roman);
display: block;
overflow: hidden;
width: 100px;
height: 100px;
}
</style>
<div></div>
<script>
document.body.offsetTop;
</script>