[csswg-drafts] [css-ui] `revert-layer` rolling back to author origin should disable native appearance (#7239)

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

== [css-ui] `revert-layer` rolling back to author origin should disable native appearance ==
https://drafts.csswg.org/css-ui/#appearance-disabling-properties

> Certain properties, when declared in the [Author Origin](https://drafts.csswg.org/css-cascade-5/#cascade-origin-author) or [Animation Origin](https://drafts.csswg.org/css-cascade-5/#cascade-origin-animation), will disable the [native appearance](https://drafts.csswg.org/css-ui/#native-appearance) of certain [widgets](https://drafts.csswg.org/css-ui/#widget). Specifically, if all the declarations of the Author Origin and Animation Origin pertaining to such a widget are cascaded and a [cascaded value](https://drafts.csswg.org/css-cascade-5/#cascaded-value) exists—and is not [`revert`](https://drafts.csswg.org/css-cascade-5/#valdef-all-revert) or [`revert-layer`](https://drafts.csswg.org/css-cascade-5/#valdef-all-revert-layer)—for any [property that disables native appearance for widgets](https://drafts.csswg.org/css-ui/#property-that-disables-native-appearance-for-widgets), then that widget is rendered as a [devolved widget](https://drafts.csswg.org/css-ui/#devolved).

Consider

```css
@layer {
  input { border-style: dotted }
}
@layer {
  input { border-style: revert-layer }
}
```

The cascaded value is `revert-layer`, so it seems the widget is not rendered as a devolved widget? But `revert-layer` is rolling back to `dotted`, which would render as a devolved widget!

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


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

Received on Thursday, 28 April 2022 20:49:30 UTC