[csswg-drafts] [css-ui][css-cascade] revert-layer and appearance (#7252)

frivoal has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-ui][css-cascade] revert-layer and appearance ==
In https://github.com/w3c/csswg-drafts/pull/7224#discussion_r854328277, @Loirooriol said:

> 
> What about
> 
> ```css
> @layer {
>   .widget { border-left-style: solid }
> }
> @layer {
>   .widget { border-left-style: revert-layer }
> }
> ```
> 
> The cascaded value is `revert-layer`, but the native appearance should be disabled anyways since the specified value will be `border-left-style: solid`.

That's a very good point. From an implementation point of view, is it practical to examine the cascade, and pop cascaded `revert-layer` until you get to a cascade value that's neither `revert` nor `revert-layer`, so that you can see if that value is an author stylesheet or in the ua stylesheet?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7252 using your GitHub account


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

Received on Thursday, 5 May 2022 07:29:24 UTC