You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -81,47 +86,45 @@ Issue: Various issues about this specification and related specifications
81
86
are listed in <a href="https://www.w3.org/Graphics/SVG/WG/wiki/Proposals/Investigation_of_APIs_for_Level_of_detail#The_issues_on_existing_APIs">this report</a>.
82
87
</div>
83
88
84
-
<h2 id="the-viewport">
85
-
The viewport</h2>
89
+
<h2 id="terminology">Terminology</h2>
86
90
87
-
In CSS 2.1 a <a href="https://www.w3.org/TR/CSS21/visuren.html#viewport">viewport</a>
88
-
is a feature of a user agent for [=continuous media=] and used to
91
+
In CSS 2.1 a [=viewport=] is a feature of a user agent for [=continuous media=] and used to
89
92
establish the initial containing block for [=continuous media=].
90
93
For [=paged media=], the initial containing block is based on the page area.
91
94
The page area can be set through ''@page'' rules.
92
95
93
-
This specification introduces a way of overriding the size of the viewport
96
+
This specification introduces a way of overriding the size of the [=viewport=]
94
97
provided by the user agent (UA). Because of this, we need to define
95
98
[=initial viewport=], [=layout viewport=] and [=visual viewport=].
96
99
97
100
<dl>
98
-
<dt><dfn>initial viewport</dfn></dt>
101
+
<dt><dfn export>initial viewport</dfn></dt>
99
102
<dd>
100
103
This refers to the viewport before any UA or author styles have
101
-
overridden the viewport given by the window or viewing area of the UA.
104
+
overridden the [=viewport=] given by the window or viewing area of the UA.
102
105
103
106
Note: The [=initial viewport=] size will change with the size of the
104
107
window or viewing area.</dd>
105
-
<dt><dfn>layout viewport</dfn></dt>
108
+
<dt><dfn export>layout viewport</dfn></dt>
106
109
<dd>
107
110
This is the viewport you get after processing the viewport
108
111
<code><meta></code> tag.
109
112
</dd>
110
-
<dt><dfn>visual viewport</dfn></dt>
113
+
<dt><dfn export>visual viewport</dfn></dt>
111
114
<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>.
115
+
This is the portion of the [=layout viewport=] that is currently visible,
116
+
obtained by result of applying scale transform to it. This transform is
117
+
applied to the [=canvas=] of the [=layout viewport=] and does not affect
118
+
its internal coordinate space. The magnitude of the scale transform is
119
+
known as the [=visual viewport=]'s <dfn export>scale factor</dfn>.
117
120
118
121
Note: The [=visual viewport=] can be smaller than the [=layout viewport=].
119
122
</dd>
120
123
</dl>
121
124
122
125
Note: The scale transform of the [=visual viewport=] is often referred to as
123
126
"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)
127
+
[=reference pixel=] and changes the size of the [=layout viewport=] (inversally)
125
128
proportionally so that it does not cause reflow of the page's contents.
126
129
127
130
When the [=layout viewport=] cannot fit inside the window or
@@ -130,6 +133,73 @@ larger than the [=initial viewport=] or the zoom factor
130
133
causes only parts of the [=layout viewport=] to be visible,
131
134
the UA should offer a scrolling or panning mechanism.
132
135
136
+
Note: The [=visual viewport=]'s [=scrolling area=] is the [=layout viewport=].
0 commit comments