[LFC][Out-of-flow] Use the containing block's padding width when computing min/max...
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Feb 2019 16:45:38 +0000 (16:45 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Feb 2019 16:45:38 +0000 (16:45 +0000)
commite08af28e311c30947c1913df69e0b39a88cfcb16
tree6056f9809dff19a97e742adbb96fe05b38bbff73
parentf882de46b18d1229eb83075d211db6ad64a71522
[LFC][Out-of-flow] Use the containing block's padding width when computing min/max width.
https://bugs.webkit.org/show_bug.cgi?id=194391

Reviewed by Antti Koivisto.

Source/WebCore:

The spec is not clear about this but that's what matches the current behaviour.

Test: fast/block/block-only/absolute-positioned-min-max-percentage-with-parent-padding.html

* layout/FormattingContext.cpp:
(WebCore::Layout::FormattingContext::computeOutOfFlowHorizontalGeometry const):

Tools:

* LayoutReloaded/misc/LFC-passing-tests.txt:

LayoutTests:

* fast/block/block-only/absolute-positioned-min-max-percentage-with-parent-padding-expected.html: Added.
* fast/block/block-only/absolute-positioned-min-max-percentage-with-parent-padding.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241123 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/block/block-only/absolute-positioned-min-max-percentage-with-parent-padding-expected.html [new file with mode: 0644]
LayoutTests/fast/block/block-only/absolute-positioned-min-max-percentage-with-parent-padding.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/layout/FormattingContext.cpp
Tools/ChangeLog
Tools/LayoutReloaded/misc/LFC-passing-tests.txt