Skip to content

Commit

Permalink
Require ::picker(select) appearance:base-select opt-in
Browse files Browse the repository at this point in the history
This patch requires that not only appearance:base-select be applied to
<select> to make the popup be a popover, but also for
appearance:base-select to be applied to select::picker(select). This is
being discussed here: w3c/csswg-drafts#10440

Change-Id: Ib089a9f8a4c0bea30d2f4fb9da1df185f4272db0
  • Loading branch information
josepharhar authored and chromium-wpt-export-bot committed Sep 4, 2024
1 parent ab72b1d commit bfa8deb
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>

<select style="appearance:base-select">
<style>
select, select::picker(select) {
appearance: base-select;
}
</style>

<select>
<option></option>
</select>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<script src="/resources/testdriver-vendor.js"></script>

<style>
select {
select, select::picker(select) {
appearance: base-select;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<script src="/resources/testdriver-actions.js"></script>

<style>
select {
select, select::picker(select) {
appearance: base-select;
}
</style>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<script src="/resources/testdriver-actions.js"></script>

<style>
select {
select, select::picker(select) {
appearance: base-select;
}
</style>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@
color: SelectedItemText;
background-color: SelectedItem;
}
select, select::picker(select) {
appearance: base-select;
}
</style>
<div id=selecteditem>SelectedItem test colors</div>

<select style="appearance:base-select">
<select>
<option class=one>one</option>
<option class=two>two</option>
<option class=three disabled>disabled</option>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>

<style>
select, select::picker(select) {
appearance: base-select;
}
</style>

<form>
<select style="appearance:base-select">
<select>
<button>
<selectedoption></selectedoption>
</button>
Expand Down

0 comments on commit bfa8deb

Please sign in to comment.