-
Notifications
You must be signed in to change notification settings - Fork 679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-ui] Styling of native appearance #10039
Comments
Specifying this more completely does seem to make sense to me, generally. My primary concern would be web compat, if changes to existing behavior are being proposed. If there's a set of properties that is already honored by all browsers, then it makes sense to list those properties. I'm not sure what to do about differences in behavior, though.
Likely propose a list of properties, along with current browser behavior for those properties? |
Is every property that native appearance should support supposed to work on every form control element?
Should the CSS spec just say that each form control element "has an implementation-defined intrinsic width and height" or does it need to be more specific than that? |
That's a good question. I suppose for certain properties it might well depend on the widget type, but I would also assume that for many properties there's a single rule.
I think there's a number of form controls where we can do better than implementation-defined, such as for |
HTML has a number of open issues around defining the native appearance of various widget types (as red boxes in the standard). However, it seems to me that HTML's role in this should be relatively small. For the majority of widgets we essentially need a box with an implementation-defined intrinsic width and height (not aspect ratio), to which a number of CSS properties apply and the remainder of CSS properties end up ignored. And as far as the native appearance goes I think generally any pseudo elements ought not to be applicable (this would automatically follow if they are defined as replaced elements as @emilio pointed out to me).
At the bottom of https://drafts.csswg.org/css-ui/#appearance-switching there is a list of properties that ought to be applicable to widgets with a native appearance.
This list seems incomplete.
writing-mode
,transform
,filter
,transition
,width
,height
, and likely quite a few other properties need to work as well I think. I'm not entirely sure how we can classify CSS properties such that whenever a new property is added it is clear whether it needs to be honored for widgets with a native appearance, but I think eventually we ought to have such a classification as otherwise this continues to be a game of whack-a-mole.I would appreciate feedback as to whether:
Thanks!
cc @mfreed7 @emilio @fantasai
The text was updated successfully, but these errors were encountered: