-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace base-select svg with disclosure-open
This was suggested here: w3c/csswg-drafts#10380 (comment) This patch also adds min-inline-size and min-block-size to ::select-fallback-button because changing the icon caused the total size of the button to decrease which revealed the lack of min sizing which is already tested by select-accessibility-minimum-target-size.tentative.html The UA select:open rules caused a performance regression for large <select>s because it caused a style recalc immediately after opening the appearance:auto picker which in re-serializes all of the data for the popup and sends it to the popup, which is very slow for large selects. I addressed this by starting to match :open before creating the popup in MenuListSelectType::ShowPopup. Bug: 1511354 Change-Id: Id7b3b0aa6c9c79299240a7212023f849f3703fb0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5660759 Commit-Queue: Joey Arhar <[email protected]> Reviewed-by: David Baron <[email protected]> Cr-Commit-Position: refs/heads/main@{#1347324}
- Loading branch information
1 parent
2767f5f
commit 7e9640a
Showing
4 changed files
with
17 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
html/semantics/forms/the-select-element/stylable-select/resources/stylable-select-utils.js
This file was deleted.
Oops, something went wrong.
12 changes: 4 additions & 8 deletions
12
html/semantics/forms/the-select-element/stylable-select/select-icon-color-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
<!DOCTYPE html> | ||
<link rel=stylesheet href="resources/stylable-select-styles.css"> | ||
<script src="resources/stylable-select-utils.js"></script> | ||
|
||
<style> | ||
.stylable-select-button-icon svg { | ||
stroke: red !important; | ||
.stylable-select-selectedoption::after { | ||
padding-inline-start: 0.5em; | ||
content: counter(fake-counter-name, disclosure-closed); | ||
color: red; | ||
} | ||
</style> | ||
|
||
<div class=stylable-select-container> | ||
<button class=stylable-select-button popovertarget=popover id=button> | ||
<span class=stylable-select-selectedoption>option</span> | ||
<div class=stylable-select-button-icon></div> | ||
</button> | ||
</div> | ||
|
||
<script> | ||
populateFallbackButtonIcon(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters