[csswg-drafts] [css-position] overlay property UA sheet is not enough. (#11194)

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

== [css-position] overlay property UA sheet is not enough. ==
The UA sheet approach in [here](https://drafts.csswg.org/css-position-4/#overlay) means that authors can control top layer rendering in pseudo-elements, see:

```
<!doctype html>
<style>
  div::before {
    content: "";
    overlay: auto;
    position: absolute;
    inset: 0;
    background: red;
  }
</style>
<div></div>
<script>
  alert(getComputedStyle(document.querySelector("div"), "::before").overlay);
</script>
```

Which alerts `auto` in Chrome.

I believe this is non-intentional.

cc @tabatkins @flackr @lilles

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


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

Received on Wednesday, 13 November 2024 12:17:31 UTC