New issue
Advanced search Search tips

Issue 684933 link

Starred by 1 user

Issue metadata

Status: Fixed
Merged: issue 684948
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Over-constraint margins computes part physically when RTL in vertical writing-mode (overconstrained case)

Reported by goo...@gtalbot.org, Jan 25 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0

Example URL:
http://www.gtalbot.org/BrowserBugsSection/CSS3WritingModes/s74-block-normal-flow-overconstrained-vrl-004.xht

Steps to reproduce the problem:
Load these 2 reduced self-explanatory tests:

(vertical-rl)
http://www.gtalbot.org/BrowserBugsSection/CSS3WritingModes/s74-block-normal-flow-overconstrained-vrl-004.xht

and

(vertical-lr)
http://www.gtalbot.org/BrowserBugsSection/CSS3WritingModes/s74-block-normal-flow-overconstrained-vlr-005.xht

What is the expected behavior?
A filled green square and no red

What went wrong?
A filled green square and a filled red square

Does it occur on multiple sites: N/A

Is it a problem with a plugin? No 

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 57.0.2986.0  Channel: dev
OS Version: 
Flash Version: Shockwave Flash 11.2 r202

The 2 tests have detailed and carefully edited comments. 

Basically, these 2 tests are specifically testing the following chunk of the CSS2.1 spec when applied to a vertical writing-mode context:

{
'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' = width of containing block

 If all of the above have a computed value other than 'auto', the values are said to be "over-constrained" and one of the used values will have to be different from its computed value. If the 'direction' property of the containing block has the value 'ltr', the specified value of 'margin-right' is ignored and the value is calculated so as to make the equality true. If the value of 'direction' is 'rtl', this happens to 'margin-left' instead.
}
CSS 2.1, section 10.3.3 Block-level, non-replaced elements in normal flow
http://www.w3.org/TR/CSS21/visudet.html#blockwidth

I will submit those 2 tests to the CSS Writing-Modes test suite eventually, along with the -002 and -003 tests (testing 'direction: ltr').
 
Labels: Needs-Triage-M57
Components: Blink
Labels: -Type-Compat -Needs-Triage-M57 M-58 OS-Mac OS-Windows Type-Bug
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on windows-7, Mac-10.12.2 and Linux Ubuntu-14.04 using chrome stable version 55.0.2883.87 and latest canary 58.0.2992.0 and reported version 57.0.2986.0.
This is non-regression issue observed from M-30 # 30.0.1599.0 . Hence marking it as Untriaged to get it addressed.
Please find the attached screen-cast.

Thanks.
684933.mp4
249 KB View Download
Components: -Blink Blink>Layout

Comment 4 by e...@chromium.org, Jan 26 2017

Mergedinto: 684948
Status: Duplicate (was: Untriaged)

Comment 5 by kojii@chromium.org, Jan 27 2017

Cc: kojii@chromium.org
Status: Available (was: Duplicate)
Summary: Over-constraint margins computes part physically when RTL in vertical writing-mode (overconstrained case) (was: non-replaced block in normal flow with 'direction: rtl' in vertical writing-mode (overconstrained case))

Comment 6 by kojii@chromium.org, Jan 27 2017

Labels: -Pri-2 Pri-3

Comment 7 by kojii@chromium.org, Jan 29 2017

Components: -Blink>Layout Blink>Layout>WritingMode

Comment 8 by goo...@gtalbot.org, Feb 18 2017

> I will submit those 2 tests to the CSS Writing-Modes test suite eventually,
> along with the -002 and -003 tests (testing 'direction: ltr').

Done:
http://hg.csswg.org/test/rev/8f8f0d27ab4f

Comment 9 by goo...@gtalbot.org, Oct 1 2017

I get expected results with Chromium 61 and Chromium 63.0.3229.0.
Owner: atotic@chromium.org
Status: Fixed (was: Available)
Thank you Gérard, I think one of atotic@'s fix did it.

Sign in to add a comment