From 272b1fd26e634ff1ec1578fc8eda722dd629126c Mon Sep 17 00:00:00 2001 From: fantasai Date: Tue, 15 Oct 2024 01:16:09 -0400 Subject: [PATCH] [css-pseudo-4][css-forms-1] Move ::picker() to css-forms-1 where it belongs #10865 --- css-forms-1/Overview.bs | 45 ++++++++++++++++++++++++++++++++++++++++ css-pseudo-4/Overview.bs | 40 ----------------------------------- 2 files changed, 45 insertions(+), 40 deletions(-) diff --git a/css-forms-1/Overview.bs b/css-forms-1/Overview.bs index 679d605b3df..1ef2789719e 100644 --- a/css-forms-1/Overview.bs +++ b/css-forms-1/Overview.bs @@ -11,6 +11,51 @@ Abstract: This document is currently a loosely-structured set of ideas and inspi Warning: not ready +New Pseudo-Elements {#pseudos} +============================== + +This section defines some pseudo-elements for styling parts of form elements. + +

+Styling form control pickers: the ''::picker()'' pseudo-element

+ + The ::picker() pseudo-element targets the popup picker of form + control elements which have popup pickers, such as the <{select}> element. It + is an [=element-backed pseudo-element=]. + +
+    ::picker() = ::picker( <>+ )
+  
+ + Note: Once all of the controls that might support picker styling have it, + then we might add a (no-argument) ''::picker'' pseudo-element as well. + + The ''::picker()'' pseudo-element only matches when the originating + element supports base appearance and has a popup picker. The + specified <> must also match the unique picker name of the + originating element. For example, the unique picker name for + the <{select}> element is "select". + + Since it is an [=element-backed pseudo-element=], There is no restriction on which + properties apply to the ''::picker()'' pseudo-element. + + In order for the ''::picker()'' pseudo-element to be rendered, it and its + originating element must be rendered with base appearance by + applying ''appearance: base'' to both of them. + +
+<style>
+  select, select::picker(select) {
+    appearance: base;
+  }
+  select::picker(select) {
+    border: 5px solid red;
+    background-color: blue;
+  }
+</style>
+  
+ + Basic Styling Proposals {#ideas} ================================ diff --git a/css-pseudo-4/Overview.bs b/css-pseudo-4/Overview.bs index bb2f1304d66..30657d07dc0 100644 --- a/css-pseudo-4/Overview.bs +++ b/css-pseudo-4/Overview.bs @@ -1683,46 +1683,6 @@ details[open]::details-content { } -

-Styling form control pickers: the ''::picker()'' pseudo-element

- - The ::picker() pseudo-element targets the popup picker of form - control elements which have popup pickers, such as the <{select}> element. It - is an [=element-backed pseudo-element=]. - -
-    ::picker() = ::picker( <>+ )
-  
- - Note: Once all of the controls that might support picker styling have it, - then we might add a (no-argument) ''::picker'' pseudo-element as well. - - The ''::picker()'' pseudo-element only matches when the originating - element supports base appearance and has a popup picker. The - specified <> must also match the unique picker name of the - originating element. For example, the unique picker name for - the <{select}> element is "select". - - Since it is an [=element-backed pseudo-element=], There is no restriction on which - properties apply to the ''::picker()'' pseudo-element. - - In order for the ''::picker()'' pseudo-element to be rendered, it and its - originating element must be rendered with base appearance by - applying ''appearance: base'' to both of them. - -
-<style>
-  select, select::picker(select) {
-    appearance: base;
-  }
-  select::picker(select) {
-    border: 5px solid red;
-    background-color: blue;
-  }
-</style>
-  
- -

Overlapping Pseudo-element Interactions