Skip to content

ElementRef fullscreen in Safari does not include children #36961

@literalpie

Description

@literalpie

🐞 bug report

Affected Package

The issue is _possibly_ caused by package @angular/core

Is this a regression?

I am not aware of previous versions where this was not an issue. The issue exists with or without ivy enabled.

Description

A clear and concise description of the problem...

If you call elementRef.nativeElement.webkitRequestFullscreen on a elementRef DI'd into a component, children are not brought to fullscreen. Only direct text content of the component.

Doing the same with an elementRef taken from the template (<div #myElement></div>) works as expected, and includes all children.

🔬 Minimal Reproduction

Please see this stackblitz for a minimum reproduction. It works as expected in Chrome, but you can see the issue by clicking "component fullscreen" in Safari.

Note that you must view the stackblitz demo in a dedicated window for fullscreen to work.

🔥 Exception or Error

No visible errors

🌍 Your Environment

Angular Version:




@angular/core: 9.1

(see stackblitz for all versions)
Anything else relevant?

Safari 13.1
and:
Safari 13.2 technology preview release 105

I also saw this issue on an iPad device.

macOS Catalina

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions