Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>Generated counter content in ::before should not crash layout</title>
<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>