| Code-Review | +1 |
if (auto* select = DynamicTo<HTMLSelectElement>(element)) {Can you add a DCHECK that the feature flag is enabled here?
return MatchesUAShadowElement(element,...and here?
assert_equals(select.scrollTop, 0,I wonder if it's a problem that this no longer works reliably?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if (auto* select = DynamicTo<HTMLSelectElement>(element)) {Can you add a DCHECK that the feature flag is enabled here?
Done
return MatchesUAShadowElement(element,Joey Arhar...and here?
Done
assert_equals(select.scrollTop, 0,I wonder if it's a problem that this no longer works reliably?
Not having access to the scroller is a consequence of nesting input in select, since the scroller is now an element in the ua shadowroot. alternative you could remove the scrolling styles from the new pseudo element and add a div which can scroll, but the isOptionVisible thing seemed like a good idea for this test to me.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Exportable changes to web-platform-tests were detected in this CL and a pull request in the upstream repo has been made: https://github.com/web-platform-tests/wpt/pull/60849.
When this CL lands, the bot will automatically merge the PR on GitHub if the required GitHub checks pass; otherwise, ecosystem-infra@ team will triage the failures and may contact you.
WPT Export docs:
https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md#Automatic-export-process
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Move scroller to listbox for <input> in <select>
This change is fully guarded behind the FilterableSelect flag, which is
currently disabled by default.
Context: https://github.com/openui/open-ui/issues/1441
There are other alternatives to address this issue, but I think that
making the listbox which wraps the option a scroller instead of putting
position:sticky on the input for example is the best.
In order to implement this in a way that is still developer
controllable, this patch adds an element-backed pseudo-element which
authors can target called ::select-listbox which now gets the scrollable
styles.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
The WPT PR for this CL has been merged upstream! https://github.com/web-platform-tests/wpt/pull/60849
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |