@@ -91,24 +91,38 @@ For [=paged media=], the initial containing block is based on the page area.
9191The page area can be set through ''@page'' rules.
9292
9393This specification introduces a way of overriding the size of the viewport
94- provided by the user agent (UA). Because of this, we need to introduce the
95- difference between the [=initial viewport=] and the [=layout viewport=] .
94+ provided by the user agent (UA). Because of this, we need to define
95+ [=initial viewport=] , [=layout viewport=] and [=visual viewport=] .
9696
9797<dl>
9898 <dt> <dfn>initial viewport</dfn> </dt>
9999 <dd>
100100 This refers to the viewport before any UA or author styles have
101101 overridden the viewport given by the window or viewing area of the UA.
102- Note that the [=initial viewport=] size will change with the
103- size of the window or viewing area.</dd>
102+
103+ Note: The [=initial viewport=] size will change with the size of the
104+ window or viewing area.</dd>
104105 <dt> <dfn>layout viewport</dfn> </dt>
105106 <dd>
106107 This is the viewport you get after processing the viewport
107108 <code> <meta></code> tag.
108109 </dd>
110+ <dt> <dfn>visual viewport</dfn> </dt>
111+ <dd>
112+ This is the portion of the layout viewport that is currently visible,
113+ obtained by result of applying scale transform to its layout viewport.
114+ This transform is applied to the <a>canvas</a> of the <a>layout viewport</a>
115+ and does not affect its internal coordinate space. The magnitude of the
116+ scale transform is known as the <a>visual viewport</a> 's <dfn export>scale factor</dfn> .
117+
118+ Note: The [=visual viewport=] can be smaller than the [=layout viewport=] .
119+ </dd>
109120</dl>
110121
111- ISSUE: Define visual viewport.
122+ Note: The scale transform of the [=visual viewport=] is often referred to as
123+ "pinch-zoom". Conceptually, this transform changes the size of the CSS
124+ <a>reference pixel</a> and changes the size of the layout viewport (inversally)
125+ proportionally so that it does not cause reflow of the page's contents.
112126
113127When the [=layout viewport=] cannot fit inside the window or
114128viewing area, either because the [=layout viewport=] is
0 commit comments