HTML <select> elements with "multiple" and/or "size" attribute should use a native popup on mobile form-factors

Bug #1233842 reported by Chris Coulson
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Oxide
Triaged
Medium
Chris Coulson

Bug Description

Currently in Oxide, the popups for HTML <select> elements are delegated to the embedder, which can use native styled popups (as with Chrome on OS X and Android). However, <select> elements with the "multiple" or "size" attribute are handled entirely in Blink without using any popups. This is desirable for desktop form factors (Chrome on OS X does it like this), but we would like to be able to delegate these to an embedder supplied popup on mobile form-factors (like Chrome and Firefox on Android both do).

It looks like we need to provide our own additional CSS in third_party/WebKit/Source/core/css/ to set "-webkit-appearance: menulist" on <select> elements with the "multiple" and/or "size" attribute set. We also need to override WebCore::RenderTheme::delegatesMenuListRendering() to return true, and override WebCore::RenderTheme::extraDefaultStyleSheet() to use our CSS on mobile form-factors.

Changed in oxide:
importance: Undecided → Medium
status: New → Triaged
assignee: nobody → Chris Coulson (chrisccoulson)
summary: - HTML <select> elements with "multiple" attribute should use a native
- popup on mobile form-factors
+ HTML <select> elements with "multiple" and/or "size" attribute should
+ use a native popup on mobile form-factors
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.