Skip to content

[css-ui] Clarify scope of implementation-defined behavior for native appearance (and primitive appearance) #9919

@annevk

Description

@annevk

While discussing web-platform-tests/wpt#44138 via email with @zcorpan he raised this point:

I had a different understanding of the "may disregard some CSS properties" language in the spec. Changing computed styles of other properties based on native/primitive appearance seems like a fundamental change to how the CSS cascade normally works that I think it should be explicitly defined.

As an example, for the switch control the native appearance uses display:inline-grid (though display:block and the like will compute to display:grid). But when you change to the primitive appearance it'll always have display:initial. (When this was discussed during a WHATNOT call that was what the people attending preferred.)

Being able to change properties (as well as some other things) in this way will also be essential for the inevitable appearance:base-bikeshed.

cc @nt1m

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status

Tuesday afternoon

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions