forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make font inherit for appearance:base-select
This matches what WebKit is prototyping and what we have been discussing in standards. https://github.com/WebKit/WebKit/blob/9b7ebfe8b3ba328a4f1e26a9d8c714bad1fff079/Source/WebCore/css/html.css#L1498-L1542 This patch also changes the behavior of -internal-appearance-auto-base-select(): it now takes into account any appearance:base-select specified on an ancestor <select> element. Fixed: 368325983 Change-Id: Ibe795ff560f8f8e92667da9955850f426c58911d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5883714 Commit-Queue: Joey Arhar <jarhar@chromium.org> Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Auto-Submit: Joey Arhar <jarhar@chromium.org> Cr-Commit-Position: refs/heads/main@{#1376415}
- Loading branch information
1 parent
da1dccc
commit 1042877
Showing
9 changed files
with
83 additions
and
26 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
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
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
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
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
24 changes: 24 additions & 0 deletions
24
...s/forms/the-select-element/customizable-select/select-appearance-font-inheriting-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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<link rel=stylesheet href="resources/customizable-select-styles.css"> | ||
|
||
<div class="customizable-select-button open" popovertarget=popover id=button> | ||
<span class=customizable-select-selectedoption>one</span> | ||
</div> | ||
<div id=popover popover=auto anchor=button class=customizable-select-popover> | ||
<div class="customizable-select-option selected">one</div> | ||
<div class=customizable-select-option>two</div> | ||
</div> | ||
|
||
<style> | ||
* { | ||
font-style: italic !important; | ||
font-weight: bold !important; | ||
font-stretch: expanded !important; | ||
font-size: 13px !important; | ||
font-family: monospace !important; | ||
} | ||
</style> | ||
|
||
<script> | ||
document.getElementById('popover').showPopover(); | ||
</script> |
34 changes: 34 additions & 0 deletions
34
...s/the-select-element/customizable-select/select-appearance-font-inheriting.tentative.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!DOCTYPE html> | ||
<html class=reftest-wait> | ||
<meta name=fuzzy content="maxDifference=0-21;totalPixels=0-8"> | ||
<link rel=author href="mailto:jarhar@chromium.org"> | ||
<link rel=help href="https://github.com/whatwg/html/issues/9799"> | ||
<link rel=match href="select-appearance-font-inheriting-ref.html"> | ||
<script src="/resources/testdriver.js"></script> | ||
<script src="/resources/testdriver-vendor.js"></script> | ||
|
||
<style> | ||
select, select::picker(select) { | ||
appearance: base-select; | ||
} | ||
body { | ||
font-style: italic; | ||
font-weight: bold; | ||
font-stretch: expanded; | ||
font-size: 13px; | ||
font-family: monospace; | ||
} | ||
</style> | ||
|
||
<select> | ||
<option>one</option> | ||
<option>two</option> | ||
</select> | ||
|
||
<script> | ||
(async () => { | ||
await test_driver.bless(); | ||
document.querySelector('select').showPicker(); | ||
document.documentElement.classList.remove('reftest-wait'); | ||
})(); | ||
</script> |
2 changes: 1 addition & 1 deletion
2
...-select-element/customizable-select/select-appearance-picker-select-border.tentative.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
2 changes: 1 addition & 1 deletion
2
...forms/the-select-element/customizable-select/select-popover-exit-animation.tentative.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