Commit 9ba07f67 authored by Scott Violet's avatar Scott Violet Committed by Commit Bot

css-flexbox: Fix static position for out-of-flow webkit-box

Ian was of the opinion the horizontal version should be the
same as the vertical position.

BUG=993813

Change-Id: I6238b5fdff67701335e778d2dca6fd5b40c0ea9c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1826871Reviewed-by: default avatarChristian Biesinger <cbiesinger@chromium.org>
Commit-Queue: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#700458}
parent 2726aa1f
......@@ -1294,7 +1294,7 @@ LayoutUnit LayoutFlexibleBox::StaticCrossAxisPositionForPositionedChild(
LayoutUnit LayoutFlexibleBox::StaticInlinePositionForPositionedChild(
const LayoutBox& child) {
const LayoutUnit start_offset = StartOffsetForContent();
if (IsColumnFlow() && StyleRef().IsDeprecatedWebkitBox())
if (StyleRef().IsDeprecatedWebkitBox())
return start_offset;
return start_offset + (IsColumnFlow()
? StaticCrossAxisPositionForPositionedChild(child)
......
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