New issue
Advanced search Search tips

Issue 677801 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

incorrect baseline alignment of inline-block element in vertical text

Reported by jfkth...@gmail.com, Jan 2 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:53.0) Gecko/20100101 Firefox/53.0

Example URL:
https://bug1324321.bmoattachments.org/attachment.cgi?id=8822223

Steps to reproduce the problem:
1. View the URL (testcase attached to Gecko bug report)

What is the expected behavior?
The testcase has two bordered inline-block elements in the vertical line. The first block, with blue border, shares the same (mixed) text-orientation as the parent line, and aligns to the same centered baseline.

The second block, with red border, has text-orientation:sideways for its content, and therefore (as expected) uses an alphabetic baseline internally. However, the box as a whole should still use a vertical center baseline to align within its parent line.

This expectation is based on the CSS Inline Layout spec, which states:

https://drafts.csswg.org/css-inline/#alignment-baseline-property
"'baseline'
     Use the dominant baseline choice of the parent. Match the box’s
     corresponding baseline to that of its parent. "

Note "of the parent" here. Although the content *within* the red box uses an alphabetic baseline, the alignment of the box itself within its parent should use "the dominant baseline choice of the parent", which is centered. (See also more extended discussion in the Gecko bug https://bugzilla.mozilla.org/show_bug.cgi?id=1324321.)

What went wrong?
The red-bordered inline-block element is offset to the right; it looks as though the *alphabetic* baseline of its content has been aligned with the *centered* baseline of the parent line, which AIUI is incorrect per the Inline Layout spec.

In Firefox, the red-bordered block shares the same center-baseline alignment as the other elements in the parent line.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: Version 55.0.2883.95 (64-bit)  Channel: stable
OS Version: OS X 10.12
Flash Version: Shockwave Flash 23.0 r0
 
Cc: kkaluri@chromium.org
Labels: M-57 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on windows 10,Ubuntu 14.04 and Mac 10,12,2 using chrome stable M55-55.0.2883.87 
Till M-47, the the blocks are displayed in the horizontal line,from M48 the blocks are displayed vertical line and from that milestone #48.0.2560.0 the 3rd block is not aligned to the right. 
This is a non-regression issue and marking it as untriaged.

Please look into the attached screencast.

Thank You...


Issue 677801.mp4
233 KB View Download
Issue 677801 - M-47.png
57.6 KB View Download
Issue 677801 - M-48.png
62.8 KB View Download
Components: -Blink Blink>Layout

Comment 3 by e...@chromium.org, Jan 3 2017

Owner: kojii@chromium.org
Status: Assigned (was: Untriaged)

Comment 4 by kojii@chromium.org, Jan 30 2017

Components: -Blink>Layout Blink>Layout>WritingMode

Comment 5 by e...@chromium.org, Dec 5 2017

Status: WontFix (was: Assigned)
Will be fixed in LayoutNG.

Sign in to add a comment