Commit 6835de4b authored by Aleks Totic's avatar Aleks Totic Committed by Commit Bot

[LayoutNG] fix inline abspos inside container with border

Static position needs to be adjusted based upon block container
padding box, not upon inline container padding box.

Bug: 740993
Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng
Change-Id: Ib6a5fbb27a56f7a724a52366988cfbd5063d2e36
Reviewed-on: https://chromium-review.googlesource.com/1132532Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
Commit-Queue: Aleks Totic <atotic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#574102}
parent c797a4c5
......@@ -547,7 +547,6 @@ crbug.com/591099 fast/inline/inline-with-empty-inline-children.html [ Failure ]
crbug.com/591099 fast/inline/nested-text-descendants.html [ Failure ]
crbug.com/591099 fast/inline/outline-continuations.html [ Failure ]
crbug.com/714962 fast/inline/outline-offset.html [ Failure ]
crbug.com/591099 fast/inline/styledEmptyInlinesWithBRs.html [ Failure ]
crbug.com/591099 fast/lists/001-vertical.html [ Failure ]
crbug.com/591099 fast/lists/003-vertical.html [ Failure ]
crbug.com/591099 fast/lists/004.html [ Failure ]
......
......@@ -297,7 +297,7 @@ scoped_refptr<NGLayoutResult> NGOutOfFlowLayoutPart::LayoutDescendant(
// relative to the container's border box, ng_absolute_utils expects it to be
// relative to the container's padding box.
NGStaticPosition static_position(descendant.static_position);
static_position.offset -= container_info.content_physical_offset;
static_position.offset -= default_containing_block_.content_physical_offset;
// The block estimate is in the descendant's writing mode.
scoped_refptr<NGConstraintSpace> descendant_constraint_space =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment