Skip to content

How :fullscreen CSS pseudo class works in shadow dom? #149

Open
@beaufortfrancois

Description

@beaufortfrancois

After reading the spec, I'm still not sure how CSS pseudo-class :fullscreen works in the context of shadow dom. See example below:

<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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: shadowRelates to shadow trees (as defined in DOM)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions