Open zcorpan opened 3 years ago
This issue corresponds to the inline issues in the spec's rendering section saying
Need to define the expected primitive appearance.
or
Need to detail the expected native appearance and primitive appearance.
Filed an issue for the Selectors spec to consider adding a pseudo-class for select
as a list box: https://github.com/w3c/csswg-drafts/issues/7422
Follow-up from #7839.
Define the expected rendering for the native appearance and the primitive appearance for:
button
,input type=button/reset/submit
input type=text/tel/url/email/search/password
+ pseudo-elementsinput type=date/month/week/time/datetime-local
+ pseudo-elementsinput type=number
+ pseudo-elementsinput type=range
+ pseudo-elementsinput type=color
+ pseudo-elementsinput type=checkbox/radio
+ pseudo-elementsinput type=file
+ pseudo-elementsmeter
+ pseudo-elementsprogress
+ pseudo-elementsselect
as a listbox +optgroup
+option
select
as a drop-down box + pseudo-elementstextarea
Also, define the expected rendering for:
select
as a drop-down box in the devolved state orappearance: menulist-button
I think various pseudo-elements that browsers support are necessary to specify the native appearance, but right now only a few are standardized.
The relevant pseudo-classes and pseudo-elements I see in Chromium's html.css are:
(Are
::webkit-media-slider-container
and::webkit-media-slider-thumb
used in the<video controls>
shadow tree?)The
::-internal-*
ones are not exposed to author CSS and so don't need to be standardized (but expected rendering can still be defined in prose). I think all of the others can be used by web developers.Gecko's forms.css:
::file-selector-button
and::placeholder
are defined in https://drafts.csswg.org/css-pseudo/:placeholder-shown
and:autofill
are defined in HTML.Gecko also has a
-moz-default-appearance
property, but I believe it's not exposed to author CSS.(Open issues for css-pseudo: https://github.com/w3c/csswg-drafts/issues?q=is%3Aopen+label%3Acss-pseudo-4%2Ccss-pseudo-5 )
cc @whatwg/css @whatwg/forms