Skip to content

Commit c2ed022

Browse files
authored
Merge pull request #110 from w3c/fix_viewport_link
Move viewport link to visual viewport
2 parents 7a9cfc5 + 16d791a commit c2ed022

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ urlPrefix: https://html.spec.whatwg.org/multipage/webappapis.html; spec: html;
5050
text: width; url: #dom-img-width;
5151
text: height; url: #dom-img-height;
5252
urlPrefix: https://drafts.csswg.org/cssom-view/; spec: CSSOM-VIEW;
53-
type: dfn; text: viewport; url: viewport;
53+
type: dfn; text: visual viewport; url: visual-viewport;
5454
</pre>
5555

5656
Introduction {#sec-intro}
@@ -197,8 +197,8 @@ In order to <dfn export>potentially add a {{LargestContentfulPaint}} entry</dfn>
197197
1. Let |height| be |intersectionRect|'s {{DOMRectReadOnly/height}}.
198198
1. Let |size| be <code>|width| * |height|</code>.
199199
1. Let |root| be |document|'s <a for="Document">browsing context</a>'s <a>top-level browsing context</a>'s <a>active document</a>.
200-
1. Let |rootWidth| be |root|'s <a>viewport</a>'s width, excluding any scrollbars.
201-
1. Let |rootHeight| be |root|'s <a>viewport</a>'s height, excluding any scrollbars.
200+
1. Let |rootWidth| be |root|'s <a>visual viewport</a>'s width, excluding any scrollbars.
201+
1. Let |rootHeight| be |root|'s <a>visual viewport</a>'s height, excluding any scrollbars.
202202
1. If |size| is equal to |rootWidth| times |rootHeight|, return.
203203
1. If |imageRequest| is not null, run the following steps to adjust for image position and upscaling:
204204
1. Let |concreteDimensions| be |imageRequest|'s [=concrete object size=] within |element|.

0 commit comments

Comments
 (0)