blob: 4a5e2770d3441d5814c84cda7376e184ac20f9af [file] [log] [blame]
<!DOCTYPE html>
<script>
onload = function() {
var leftDiv = document.getElementById('left');
leftDiv.style.width = '100.4px';
leftDiv.offsetTop;
leftDiv.textContent = 'left';
};
</script>
<div>
This test reproduced the wrong call to LayerScrollableArea::updateAfterLayout()
from LayoutBox::setLocationAndUpdateOverflowControlsIfNeeded() which caused incorrect
LayoutBlock::baselinePosition() for later layout.
</div>
<div style="vertical-align: baseline; display: inline-block">
<div id="left" style="display: inline-block; width: 100px; background-color: green">left original
</div><!-- No whitespace --><div id="right" style="display: inline-block; position: relative; width: 300.4px; background-color: yellow; font-size: 100px">
<span style="position: relative; top: -10px">right</span>
</div>
</div>