---
title: "Implementing Vertical Form Controls"
description: "Safari 17.4 supports vertical writing modes (`writing-mode: vertical-rl` / `vertical-lr`) on button, textarea, progress, meter, input and select elements, part of the Interop 2023 effort for CJK and Mongolian text."
url: "https://swe.quest/articles/implementing-vertical-form-controls-0957876d48409686"
canonical: "https://webkit.org/blog/15190/implementing-vertical-form-controls/"
source: "WebKit"
published: "2024-03-18"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 4
tags: ["browsers","css","frontend"]
---

# Implementing Vertical Form Controls

A post on [WebKit](https://swe.quest/sources/webkit.md), published 2024-03-18, 4 min read, Deep dive. Original: [https://webkit.org/blog/15190/implementing-vertical-form-controls/](https://webkit.org/blog/15190/implementing-vertical-form-controls/)

## Summary

Safari 17.4 supports vertical writing modes (\`writing-mode: vertical-rl\` / \`vertical-lr\`) on button, textarea, progress, meter, input and select elements, part of the Interop 2023 effort for CJK and Mongolian text. Inside WebKit, the user-agent stylesheet moved from physical to logical properties, custom layout code was fixed to compute logical widths, and baseline alignment now uses the central baseline in vertical modes. On macOS, which has no native vertical controls, some system-drawn controls like progress are rotated, while select uses custom fallback painting because its shadows prevent rotation. Custom-painted controls now use logical coordinates, glyph-like checkboxes and radios needed no changes, and popup UIs such as select menus and color pickers remain horizontal.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [CSS](https://swe.quest/tags/css.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- CSS writing-mode ([easy posts on CSS](https://swe.quest/tags/css.md?difficulty=easy))
- CSS logical properties ([easy posts on CSS](https://swe.quest/tags/css.md?difficulty=easy))

## Keywords

WebKit, Safari 17.4, writing-mode, Interop 2023

## Related posts

- [An HTML Switch Control](https://swe.quest/articles/an-html-switch-control-f6ff0673a2bcdfca.md): WebKit · 2024-02-28 · Medium · 3 min read · Browsers, Frontend, Accessibility, CSS
  Safari 17.4 adds a native HTML switch control via \`\<input type=checkbox switch\>\`, which falls back to a plain checkbox in browsers without support.
- [WebKit Features for Safari 27.2](https://swe.quest/articles/webkit-features-for-safari-27-2-f545f4ccec69d87b.md): WebKit · 2026-10-26 · Medium · 5 min read · Browsers, CSS, Frontend, Accessibility
  Safari 27.2 refines Customizable Select with a new \`::field-content\` pseudo-element for styling the displayed selected option without \`\<selectedcontent\>\`, adjusts \`appearance: base-select\` UA styles (flex-based button spacing, inherited \`text-overflow\`, simpler \`::picker-icon\`), and uses \`safe\` alignment so large pickers stay within the viewport.
- [WebKit Features in Safari 17.4](https://swe.quest/articles/webkit-features-in-safari-17-4-28d81cae61957dde.md): WebKit · 2024-03-05 · Medium · 31 min read · Browsers, CSS, Frontend
  Safari 17.4 ships 46 web platform features and 146 bug fixes, alongside completion of WebKit's multi-year rewrite of its inline layout engine.
- [Bringing Back Horizontal Rules in Select Elements](https://swe.quest/articles/bringing-back-horizontal-rules-in-select-elements-517d2598537c7cc4.md): WebKit · 2024-01-25 · Medium · 4 min read · Browsers, Frontend, Accessibility
  Safari 17.0 on macOS again renders \`\<hr\>\` elements placed between \`\<option\>\`s in a \`\<select\>\` as horizontal separator lines.
- [WebKit Features in Safari 16.2](https://swe.quest/articles/webkit-features-in-safari-16-2-97104b4a5912e4d5.md): WebKit · 2022-12-13 · Medium · 4 min read · CSS, Browsers, Frontend
  Safari 16.2 focuses on cross-browser interoperability as part of Interop 2022, with Safari Technology Preview 159 passing 98.5% of the Interop tests.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
