w3c/csswg-drafts

[cssom-view] Better define "Web-exposed screen area"

Open

#1 145 ouverte le 30 mars 2017

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)HTML (545 forks)batch import
Help Wantedcssom-view-1topic: multiple globals

Métriques du dépôt

Stars
 (3 546 stars)
Métriques de merge PR
 (Merge moyen 87j 7h) (24 PRs mergées en 30 j)

Description

https://drafts.csswg.org/cssom-view/#web-exposed-screen-area

In the case of using the "viewport", it's not defined which viewport that is. Probably need to say "for a browsing context" or so, and pass in a browsing context everywhere that uses this term.

That browsing context likely should be the top-level browsing context. It would not make much sense for window.open() in an <iframe> to be sized after the <iframe>'s viewport; it should be sized after the top-level browsing context (even if that is cross-origin, I think -- it's already possible to follow a link with target _top and check dimensions you get, so it's not exposing new information across origins).

Guide contributeur