summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/scrolling/unscrollable-layer-subpixel-size-with-negative-overflow.html
blob: 4a5e2770d3441d5814c84cda7376e184ac20f9af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!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>