html icon indicating copy to clipboard operation
html copied to clipboard

Define base appearance for list box select elements

Open josepharhar opened this issue 5 months ago • 3 comments

This PR defines base appearance for select elements which are being rendered as a list box, as opposed to the prior customizable select PR which defined base appearance for drop down select elements.

Fixes https://github.com/whatwg/html/issues/11477

  • [x] At least two implementers are interested (and none opposed):
    • Chrome
    • Gecko
    • Standards positions:
      • https://github.com/WebKit/standards-positions/issues/559
      • https://github.com/mozilla/standards-positions/issues/1304
  • [x] Tests are written and can be reviewed and commented upon at:
    • https://wpt.fyi/results/html/semantics/forms/the-select-element/customizable-select-in-page
  • [x] Implementation bugs are filed:
    • Chromium: https://issues.chromium.org/issues/357649033
    • Gecko: https://bugzilla.mozilla.org/show_bug.cgi?id=2005585
    • WebKit: https://bugs.webkit.org/show_bug.cgi?id=304004
  • [x] Corresponding HTML AAM & ARIA in HTML issues & PRs: Not needed because the existing mappings are sufficient.
  • [x] MDN issue is filed: https://github.com/mdn/content/issues/42358
  • [x] The top of this comment includes a clear commit message to use.

(See WHATWG Working Mode: Changes for more details.)


/form-elements.html ( diff ) /rendering.html ( diff )

josepharhar avatar Oct 07 '25 00:10 josepharhar

I filed https://github.com/whatwg/html/issues/11804 , I can review this again when that is fixed.

I would suggest adding tests in this area that check which UA styles are applied, see e.g. https://github.com/web-platform-tests/wpt/blob/master/html/rendering/widgets/the-select-element/select-as-listbox-default-styles.tentative.html

zcorpan avatar Oct 17 '25 08:10 zcorpan

I filed #11804 , I can review this again when that is fixed.

Thanks, I started a fix: https://github.com/whatwg/html/pull/11805

I would suggest adding tests in this area that check which UA styles are applied, see e.g. https://github.com/web-platform-tests/wpt/blob/master/html/rendering/widgets/the-select-element/select-as-listbox-default-styles.tentative.html

Here is a test I'm working on: https://chromium-review.googlesource.com/c/chromium/src/+/6276680

josepharhar avatar Oct 17 '25 15:10 josepharhar

Now that https://github.com/whatwg/html/issues/11804 has been fixed and I have rebased this PR, and we got a resolution in the sizing issue, and we have a positive standards position from mozilla, this PR is ready for review.

josepharhar avatar Dec 11 '25 18:12 josepharhar

Some of the linked tests are tentative, is there a PR to make them not tentative?

zcorpan avatar Dec 15 '25 19:12 zcorpan

Some of the linked tests are tentative, is there a PR to make them not tentative?

I added a chromium patch to make them non-tentative, which will generate a WPT PR later

josepharhar avatar Dec 15 '25 21:12 josepharhar