New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 767001 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

pos:absolute inside pos:relative inside direction:rtl goes to the other side

Reported by vnexs...@gmail.com, Sep 20 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36

Steps to reproduce the problem:
http://jsbin.com/worihoh/edit?html,output
in FF and edge it works ok

What is the expected behavior?
the div should be positioned on the right

What went wrong?
it goes to the left and out of bounds

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 60.0.3112.113  Channel: n/a
OS Version: 10.0
Flash Version:
 
Labels: Needs-Triage-M61
Components: -Blink>CSS Blink>Layout

Comment 3 by e...@chromium.org, Sep 25 2017

Cc: atotic@chromium.org
Status: Available (was: Unconfirmed)
Aleks, any idea what's going on here?

Comment 4 by atotic@chromium.org, Sep 25 2017

Owner: atotic@chromium.org
Static position of the abspos div inside an rtl inline containing block is getting confused by RTL. 

I'll take a look, this might be fixable.

Comment 5 by atotic@chromium.org, Sep 29 2017

Inside LayoutBox::ComputeInlineStaticDistance[1] there is a FIXME:

// FIXME: The static distance computation has not been patched for mixed
// writing modes yet.

Static distance computation currently only works all writing modes between child and containing block match. Fixing this might take several days or more of work. 

There are lots of methods that I know nothing about. What is FlowThread? I can try fixing it, if someone with FlowThread expertise is willing to help.

>IsInsideFlowThread())
static_position += AccumulateStaticOffsetForFlowThread

What do you think we should do?

[1] https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/layout/LayoutBox.cpp?type=cs&q=ComputeInlineStaticDistance&sq=package:chromium&l=3924

Comment 6 by atotic@chromium.org, Sep 29 2017

Owner: e...@chromium.org

Comment 7 by e...@chromium.org, Oct 3 2017

Cc: -atotic@chromium.org robho...@gmail.com
Owner: kojii@chromium.org
Status: Assigned (was: Available)

Sign in to add a comment