Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ::select-fallback-button #48228

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Sep 17, 2024

This patch removes customizable <select>'s fallback <button> element in
the UA shadowroot by replacing it with the same "InnerElement" <div>
which is used for appearance:auto.

Several supporting changes were made in order to implement this:

  • Also remove ::select-fallback-button-text
  • Add -internal-appearance-auto-base-select() support for the following
    properties:
    • min-block-size
    • min-inline-size
    • padding-block-start
    • padding-block-end
    • padding-inline-start
    • padding-inline-end
    • content in select::after
  • Make <select> focusable again when there is no child <button> element
  • Remove dependency on popover triggering code in HTMLFormControlElement
    now that we aren't always opening the popover with a <button>

This is in response to feedback here:
w3c/csswg-drafts#10717

This also addresses additional feedback I received privately that author
styles applied to the select element itself weren't applying to the
in-page portion of the element.

Change-Id: I0a833b370babe9a8ab937822a3578d839510a8fc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5786670
Reviewed-by: David Baron <dbaron@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1356701}

This patch removes customizable <select>'s fallback <button> element in
the UA shadowroot by replacing it with the same "InnerElement" <div>
which is used for appearance:auto.

Several supporting changes were made in order to implement this:
- Also remove ::select-fallback-button-text
- Add -internal-appearance-auto-base-select() support for the following
  properties:
  - min-block-size
  - min-inline-size
  - padding-block-start
  - padding-block-end
  - padding-inline-start
  - padding-inline-end
  - content in select::after
- Make <select> focusable again when there is no child <button> element
- Remove dependency on popover triggering code in HTMLFormControlElement
  now that we aren't always opening the popover with a <button>

This is in response to feedback here:
w3c/csswg-drafts#10717

This also addresses additional feedback I received privately that author
styles applied to the select element itself weren't applying to the
in-page portion of the element.

Change-Id: I0a833b370babe9a8ab937822a3578d839510a8fc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5786670
Reviewed-by: David Baron <dbaron@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1356701}
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 580c17a into master Sep 17, 2024
11 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-5786670 branch September 17, 2024 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants