[css-writing-modes] Various form elements do not respect vertical writing-mode
Reported by
hjche...@gmail.com,
Jul 28 2017
|
|||
Issue descriptionUserAgent: 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.
,
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.
,
Jul 31 2017
Over to form team for triage and to determine what the "correct" behavior is.
,
Jul 31 2017
|
|||
►
Sign in to add a comment |
|||
Comment 1 by pbomm...@chromium.org
, Jul 28 2017Labels: M-61 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)