New issue
Advanced search Search tips

Issue 750059 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 681917
Owner: ----
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

[css-writing-modes] Various form elements do not respect vertical writing-mode

Reported by hjche...@gmail.com, Jul 28 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.13 Safari/537.36

Steps to reproduce the problem:
1. Create a HTML form with the writing-mode set to vertical-rl or vertical-lr
2. Test case here: https://www.chenhuijing.com/demos/megaform/
3. List of form elements affected:
- input type button
- input type color
- all date-related input types
- input type email
- input type file
- input type number
- input type password
- input type range
- input type reset
- input type search
- input type submit 
- input type tel
- input type text
- input type url
- button element
- select element (covered in issue 681917: https://bugs.chromium.org/p/chromium/issues/detail?id=681917)
- optgroup and option elements (see select element)
- datalist element
- meter element
- textarea element
- progress element

What is the expected behavior?
Form controls are expected to match the writing mode, refer to CSS Writing Modes Level 3: https://www.w3.org/TR/css-writing-modes-3/#block-flow

What went wrong?
The mentioned form elements still display as if the writing-mode was horizontal-tb

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 61.0.3163.13  Channel: dev
OS Version: OS X 10.12.6
Flash Version: Shockwave Flash 26.0 r0

Firefox has most of the form elements displaying in the expected block-flow direction but has bugs with the date and time input types.
 
Cc: pbomm...@chromium.org e...@chromium.org
Labels: M-61 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
Reproducible with latest Chrome Dev i.,e., 61.0.3163.13 on Windows 7,10, Mac and Linux. 

Note : Not sure if this is a bug since I see that the behavior on Chrome,Safari and Edge was similar Firefox is the only browser where I didn't see the issue.


Comment 2 by hjche...@gmail.com, Jul 29 2017

Kindly refer to the CSS Writing Modes Level 3 specification section 3.1. Block Flow Direction: the writing-mode property at
https://www.w3.org/TR/css-writing-modes-3/#block-flow.

“The writing-mode property specifies the block flow direction, which determines the ordering direction of block-level boxes in a block formatting context; the ordering direction of line boxes in a block container that contains inlines; the ordering direction of rows in a table; etc. By virtue of determining the stacking direction of line boxes, the writing-mode property also determines whether the line boxes' orientation (and thus the writing mode) is horizontal or vertical. The text-orientation property then determines how text is laid out within the line box.”

Please refer to example 4 in that same section for a visual clarification.

Comment 3 by e...@chromium.org, Jul 31 2017

Components: -Blink>Layout Blink>Forms
Over to form team for triage and to determine what the "correct" behavior is.

Comment 4 by tkent@chromium.org, Jul 31 2017

Mergedinto: 681917
Status: Duplicate (was: Untriaged)

Sign in to add a comment