Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[macOS] Fix appearance of text inputs with a datalist in vertical wri…
…ting mode https://bugs.webkit.org/show_bug.cgi?id=264351 rdar://118066878 Reviewed by Tim Horton. There are currently two issues with text inputs + <datalist> in vertical writing mode: 1. Dropdown indicator is positioned incorrectly – the indicator is still vertically centered. 2. Dropdown menu is extremely narrow – the menu uses the width rather than the inline size. Fix (1) by re-writing painting code to use logical coordinates. Fix (2) by using the larger of element width and height to size the menu. * Source/WebCore/platform/graphics/mac/controls/ControlMac.mm: (WebCore::ControlMac::drawListButton): * Source/WebKit/UIProcess/mac/WebDataListSuggestionsDropdownMac.mm: (-[WKDataListSuggestionsController dropdownRectForElementRect:]): Canonical link: https://commits.webkit.org/270356@main
- Loading branch information