[whatwg/fullscreen] How :fullscreen CSS pseudo class works in shadow dom? (#149)

After reading the [spec](https://fullscreen.spec.whatwg.org/#:fullscreen-pseudo-class), I'm still not sure how CSS pseudo-class `:fullscreen` works in the context of shadow dom. See example below:

```html
<style>
  :fullscreen { color: blue }
</style>
<my-web-component>
  #shadow-root
    <style>
      :fullscreen { color: green }
    </style>
    <video></video>
</my-web-component>
```

What happens after `await video.requestFullscreen()`?
- Is `<video>` element color green?
- Is `<my-web-component>` element color blue?

Note that I wasn't able to find web platform tests for this.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fullscreen/issues/149

Received on Wednesday, 20 March 2019 13:43:28 UTC