The :open pseudo-class matches <dialog> and <details> when they are in their open state, and matches <select> and <input> when they are in modes which have a picker and the picker is showing.
There is low interoperability risk due to positive signals and addressed feedback from other browser vendors.
This feature will be used in the UA stylesheet for customizable <select>. The default usage of this API will not make it hard for Chrome to maintain good performance.
This feature can't be polyfiled for select and input elements because there is no other way to perfectly detect whether a picker is supported for these elements and that the picker is showing. For dialog and details elements, :open is redundant with [open] in CSS. This pseudo-class will be added to MDN: https://github.com/mdn/content/issues/37153
None
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
:open could be added to the list of "Force element state" pseudo-classes in the styles sidebar: https://issues.chromium.org/issues/383157184
https://wpt.fyi/results/css/selectors/open-pseudo.html
Shipping on desktop | 133 |
DevTrial on desktop | 123 |
Shipping on Android | 133 |
DevTrial on Android | 123 |
Shipping on WebView | 133 |
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
NoneLGTM2
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/ece62dac-22ce-4113-acfd-fa0ca2aa0c3dn%40chromium.org.
LGTM3
/Daniel
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/b10e8625-cccf-4f01-b943-5dbca2291351%40chromium.org.