Skip to content

Poor level of support for vertical form controls #247

Open

Description

@xfq

This issue is applicable to languages that can be vertically set, especially Mongolian, since it has no horizontal setting. (Linked from: Chinese • Japanese • Mongolian)

In vertically set text, form controls should also be oriented vertically, in order to fit into the flow of the content. The following examples show what you'd expect to see for various types of form in vertically set Chinese.

vertical form controls

For more examples see the following. Note, especially, that the sideways direction differs for Mongolian.

Japanese • Chinese • Mongolian

The same vertical orientation needs to be applied to the display of buttons, progress bars, etc.

The GAP

Unfortunately, this is not supported by all browsers, creating difficulties for use of forms in vertical text (especially traditional Mongolian, where reverting to horizontal is not an option).

css-writing-modes Creates an expectation that forms should be rendered vertically, but doesn't specify details for rendering.

Priority

Handling of vertical text in forms is a major gap.

Tests & results

CJK tests:

Interactive test, When vertically-set CJK text contains a textarea element, the control will also be vertical. A preceding label will appear above the top right corner of the textarea box.

Interactive test, When vertically-set CJK text contains a text input element, the control will be vertical. A preceding label will appear above the box.

Interactive test, When vertically-set CJK text contains a select element, the control will be vertical, and multiple options will extend, vertically-set, towards the left.

Blink, Gecko, and WebKit mostly passes all the above tests except for two small problems:

  1. although the initial select control is vertical, the alternative options box is horizontal, and opens to the right.
  2. the label associated with a textarea control appears above the top left corner of the box, rather than top right.

i18n test suite, Forms: vertical-rl and Forms: vertical-lr

Same results as for the previous tests.

Mongolian tests:

Interactive test, When vertically-set Mongolian text contains a textarea element, the control will also be vertical. A preceding label will appear above the top right corner of the textarea box.

Interactive test, When vertically-set Mongolian text contains a text input element, the control will be vertical. A preceding label will appear above the box.

Interactive test, When vertically-set Mongolian text contains a select element, the control will be vertical, and multiple options will extend, vertically-set, towards the left.

The results of these tests are the same as for the CJK tests, except that the label appears to the correct side of a textarea control (because of the change in text direction).

Button tests:

Interactive test, When vertically-set CJK text contains an HTML button element, the control will also be vertical.

Interactive test, When vertically-set Mongolian text contains an HTML button element, the control will also be vertical.

Blink, Gecko, and WebKit pass the test.

Action taken

Gecko • Blink • Blink 2 • Webkit • Webkit 2

Outcomes

Gecko, Blink and WebKit now all support vertical form controls. However, most tests show problems with alignment of the form controls.

Select element controls look suited to the vertical text flow in their default presentation, but when selecting an option the options are displayed horizontally. This is, of course, particularly problematic for Mongolian.

Activity

  1. added
    gap
    doc:clreq
    i:writing_mode
    on Feb 5, 2020
  2. xfq commented on Feb 5, 2020

    @xfq
    MemberAuthor

    The first comment in this issue contains text that will automatically appear in one or more gap-analysis documents as a subsection with the same title as this issue. Any edits made to that comment will be immediately available in the document. Proposals for changes or discussion of the content can be made in comments below this point.

    Relevant gap analysis documents include:
    Chinese • Japanese • [Korean] • Mongolian

  3. added
    i:interaction
    on Feb 5, 2020
  4. added
    x:clreq
    x:blink
    x:webkit
    x:klreq
    x:mlreq
    on May 11, 2021
  5. added
    x:jpan
    and removed on Jun 9, 2021
  6. r12a commented on Jun 14, 2021

    @r12a
    Contributor

    Updated the description to fit the new template, so that we can progress it through the pipeline. Added some examples.

  7. xfq commented on Aug 28, 2023

    @xfq
    MemberAuthor

    Updated the link to the WebKit bug.

  8. r12a commented on Aug 29, 2023

    @r12a
    Contributor

    Updated the template. Added information about Blink now supporting vertical buttons.

  9. r12a commented on Aug 29, 2023

    @r12a
    Contributor

    Improved the tests & results section, including pointing to real interactive tests.

  10. xfq commented on Jan 25, 2024

    @xfq
    MemberAuthor
  11. xfq commented on Mar 11, 2024

    @xfq
    MemberAuthor
  12. moved this to Browser bug raised in Gap-analysis pipelineon Jun 20, 2024
  13. added
    s:hani
    l:zh
    on Jun 29, 2024
  14. added
    s:jpan
    s:kore
    s:mong
    on Jul 11, 2024
  15. r12a commented on Jul 18, 2024

    @r12a
    Contributor

    Starting in Safari 17.4, vertical form controls are supported: https://webkit.org/blog/15063/webkit-features-in-safari-17-4/

    Adjustments made to the Outcomes section and to test results.

  16. xfq commented on Jun 9, 2026

    @xfq
    MemberAuthor

    Added a few more browser bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    doc:clreqgapi:interactioni:writing_model:zhp:basics:hanis:jpans:kores:mongx:blinkx:clreqx:jpanx:klreqx:mlreqx:webkit

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions