Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: layout/reftests/abs-pos/reftest.list
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<head>
<style type="text/css">
body { font-size: 16px; }
div { position: absolute; border:1px solid black; }
</style>
<script type="text/javascript">//<![CDATA[
window.onload = function() {
var newSize = '32px';
var div = document.getElementById('div');
document.body.style.fontSize = newSize;
div.style.height = '1px';
setTimeout(function() {
div.style.height = 'auto';
document.documentElement.removeAttribute("class");
}, 0);
}
//]]></script>
</head>
<body>
<div id="div" style="top:40px;">
this text should be on one line <b>and not wrap</b>
</div>
</body>
</html>