Skip to content

Commit 3edb9dc

Browse files
committed
[css-values-4] Improve highest-level description for viewport units.
1 parent a06d613 commit 3edb9dc

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

css-values-4/Overview.bs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,7 +1743,10 @@ Viewport-percentage Lengths: the ''*vw'', ''*vh'', ''*vi'', ''*vb'', ''*vmin'',
17431743
as an implementation reference for now.
17441744

17451745
The <dfn export>viewport-percentage lengths</dfn> are relative to the size of the
1746-
<a href="https://www.w3.org/TR/CSS21/visudet.html#containing-block-details">initial containing block</a>.
1746+
<a href="https://www.w3.org/TR/CSS21/visudet.html#containing-block-details">initial containing block</a>--
1747+
which is itself based on the size of either
1748+
the viewport (for [=continuous media=])
1749+
or the [=page area=] (for [=paged media=]).
17471750
When the height or width of the initial containing block is changed,
17481751
they are scaled accordingly.
17491752

@@ -1859,11 +1862,6 @@ The Large, Small, and Dynamic Viewport Sizes</h5>
18591862
(and therefore have no effect on any of the [=viewport-percentage lengths=];
18601863
typically on-screen keyboards will fit into this category.
18611864

1862-
For [=paged media=], the exact definition of the viewport-percentage lengths
1863-
is deferred to [[!CSS3PAGE]].
1864-
However, in the typical case of all pages being the same size,
1865-
they are sized relative to the [=initial containing block=].
1866-
18671865
In all cases, scrollbars are assumed not to exist.
18681866
<span class='note'>Note however that the [=initial containing block=]'s size
18691867
<em>is</em> affected by the presence of scrollbars on the viewport.</span>

0 commit comments

Comments
 (0)