NEW 266888
`select`, `option` and `optgroup` element (as listbox) should have correct cursor and white-space
https://bugs.webkit.org/show_bug.cgi?id=266888
Summary `select`, `option` and `optgroup` element (as listbox) should have correct cu...
Ahmad Saleem
Reported 2023-12-26 09:15:24 PST
Hi Team, While looking into WPT failures specifically below test, I noticed that we fail few tests: WPT Test Case: https://wpt.fyi/results/html/rendering/widgets/the-select-element/select-as-listbox-default-styles.tentative.html?label=master&label=experimental&aligned= I noticed that we fail few cursor and white-space related tests: While doing some changes in 'html.css' (UA Stylesheet), I was manage to make them progress: optgroup { white-space: normal; cursor: auto; } option { cursor: auto; white-space: normal; } ^ In option, we are undoing previous Blink import, where we added 'white-space: nowrap'. select { cursor: auto; } __ NOTE - these are changes above, which are just I done locally and it might not be right way to fix the bug (due to list-box - might have to introduce new internal selector similar to 'table' change), but just wanted to raise so we can get input and track it. ___ It progress following: PASS <option>3 (in <select multiple=""><optgroup label="2">) - cursor PASS <option>3 (in <select multiple=""><optgroup label="2">) - white-space PASS <optgroup label="2"><option>3 (in <select multiple="">) - cursor PASS <option>1 (in <select multiple="">) - cursor PASS <option>1 (in <select multiple="">) - white-space ___ Thanks!
Attachments
Tim Nguyen (:ntim)
Comment 1 2023-12-26 12:59:03 PST
option and optgroup have some special renderering, so applying those properties won't do anything. They should be refactored to use normal CSS rendering for this to work.
Ahmad Saleem
Comment 2 2023-12-26 13:00:20 PST
(In reply to Tim Nguyen (:ntim) from comment #1) > option and optgroup have some special renderering, so applying those > properties won't do anything. They should be refactored to use normal CSS > rendering for this to work. Yes - known 'BrowserCompat' issue. I tried in the past to merge Blink patch to bring such functionality, but was not successful. I might give it another try. Should we hold-off, till we fix above or do away with this change any way?
Radar WebKit Bug Importer
Comment 3 2024-01-02 09:16:15 PST
Note You need to log in before you can comment on or make changes to this bug.