blob: bd630f11dce64da12ae744c7e390c6e4a5118b41 [file] [edit]
<!DOCTYPE html>
<html>
<head>
<style>
span {
display: inline-block;
width: 28px;
height: 40px;
margin: 0;
word-break: break-all;
font-size: 32px;
}
a {
display: block;
width: 100px;
height: 100px;
overflow: hidden;
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.addEventListener('load', () => {
document.body.offsetWidth;
const target = document.getElementById('target');
target.textContent = "This test should not assert";
target.style.overflowX = 'hidden';
}, false);
</script>
</head>
<body>
<a><span id="target">A</span> Hello world</a>
</body>
</html>