Re: [csswg-drafts] [css-ui] appearance: base to enable interoperable styling of controls/components (#5998)

In response  to fantasai's comment here: https://github.com/w3c/csswg-drafts/issues/5998#issuecomment-816310082

> DOM modifications that depend on CSS computed values are messy/difficult to implement

I was able to implement the CSS property without making any DOM modifications by adjusting the layout tree in response to the computed style.

> We need to be able to style differently depending on whether the element is basic or not, and an attribute allows for selecting against that.

I was able to change other styles based on appearance here: https://github.com/w3c/csswg-drafts/issues/10028#issuecomment-2047865990

> An attribute is less likely to create the forwards-compatibility problem that rules like `* { appearance: base }` would create if only some form elements supported basic rendering and others didn't.

If this is an issue, then we should implement it as `appearance:base-select` instead of `appearance:base`.

-- 
GitHub Notification of comment by josepharhar
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5998#issuecomment-2086113395 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 30 April 2024 17:24:20 UTC