Description[layoutng] Better abspos support in legacy interop
In legacy layout, abspos differs from regular blocks in that abspos blocks
position themselves in their own layout, instead of getting positioned by
their parent. So it we are a positioned block in a legacy-layout containing
block, we have to emulate this positioning, which is what this change does.
Fixes this testcase:
<div style="height: 200px; background: yellow; position: relative;">
XXX
<div style="position: absolute; bottom: 0;">
<div>Bottom</div>
</div>
</div>
R=atotic@chromium.org,ikilpatrick@chromium.org
BUG=635619
Committed: https://crrev.com/b235a3a7becc58e7f82760c5ee5da04f767ecbd8
Cr-Commit-Position: refs/heads/master@{#440975}
Patch Set 1 #Patch Set 2 : better code & comment #Patch Set 3 : isPositioned -> isOutOfFlowPositioned #Messages
Total messages: 15 (10 generated)
|