Skip to content

Commit c04e6c4

Browse files
author
Rune Lillesveen
committed
[css-device-adapt] Fix auto references for <viewport-length>
1 parent 387bd2f commit c04e6c4

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

css-device-adapt/Overview.bs

+15-18
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ initial containing block</a> where
239239

240240
and the values have the following meanings:
241241

242-
<dl dfn-type=value dfn-for="<viewport-length>">
242+
<dl dfn-type=value dfn-for="viewport-length">
243243
<dt><dfn>auto</dfn></dt>
244244
<dd>
245245
The used value is calculated from the other descriptors'
@@ -547,7 +547,7 @@ the procedure. They are initially resolved to their computed values.
547547

548548
<dfn><code>width</code></dfn> and <dfn><code>height</code></dfn> refer
549549
to the resolved viewport size and not the shorthand descriptors. They
550-
are both initially ''<viewport-length>/auto''.
550+
are both initially ''viewport-length/auto''.
551551

552552
<code>MIN/MAX</code> computations where one of the arguments is
553553
''zoom/auto'' resolve to the other argument. For instance, <code>MIN(0.25,
@@ -607,7 +607,7 @@ the <code>[min-zoom, max-zoom]</code> range</h4>
607607
</ol>
608608

609609
<h4 id="resolve-px" class="no-num no-toc">
610-
Resolve non-''<viewport-length>/auto'' lengths to pixel lengths</h4>
610+
Resolve non-''viewport-length/auto'' lengths to pixel lengths</h4>
611611

612612
<ol id="ol3">
613613
<li>
@@ -626,14 +626,14 @@ descriptors</h4>
626626
<li>
627627
If <code lt="min-width!!resolved">min-width</code> or
628628
<code lt="max-width!!resolved">max-width</code> is not
629-
''<viewport-length>/auto'', set <code>width = MAX(min-width, MIN(max-width,
629+
''viewport-length/auto'', set <code>width = MAX(min-width, MIN(max-width,
630630
initial-width))</code>
631631
</li>
632632

633633
<li>
634634
If <code lt="min-height!!resolved">min-height</code> or
635635
<code lt="max-height!!resolved">max-height</code> is not
636-
''<viewport-length>/auto'', set <code>height = MAX(min-height, MIN(max-height,
636+
''viewport-length/auto'', set <code>height = MAX(min-height, MIN(max-height,
637637
initial-height))</code>
638638
</li>
639639
</ol>
@@ -645,12 +645,12 @@ Resolve <code lt="width!!resolved">width</code> value</h4>
645645
<li>
646646
If <code lt="width!!resolved">width</code> and
647647
<code lt="height!!resolved">height</code> are both
648-
''<viewport-length>/auto'', set <code>width = initial-width</code>
648+
''viewport-length/auto'', set <code>width = initial-width</code>
649649
</li>
650650

651651
<li>
652652
If <code lt="width!!resolved">width</code> is
653-
''<viewport-length>/auto'', set <code>width = height * (initial-width /
653+
''viewport-length/auto'', set <code>width = height * (initial-width /
654654
initial-height)</code>, or <code>width = initial-width</code>
655655
if <code class="index"
656656
lt="height!!initial">initial-height</code> is 0.
@@ -662,7 +662,7 @@ Resolve <code lt="height!!resolved">height</code> value</h4>
662662

663663
<ol id="ol8">
664664
<li>
665-
If <code lt="height!!resolved">height</code> is ''<viewport-length>/auto'',
665+
If <code lt="height!!resolved">height</code> is ''viewport-length/auto'',
666666
set <code>height = width * (initial-height /
667667
initial-width)</code>, or <code>height = initial-height</code>
668668
if <code class="index"
@@ -1051,29 +1051,27 @@ is a valid value.
10511051

10521052
Let <code>extend-zoom = MIN(zoom, max-zoom)</code>
10531053

1054-
For non-'<code class="css" lt="auto!!zoom">auto</code>'
1055-
<code>extend-zoom</code>, let:
1054+
For non-''zoom/auto'' <code>extend-zoom</code>, let:
10561055

10571056
<pre>
10581057
extend-width = initial-width / extend-zoom
10591058
extend-height = initial-height / extend-zoom
10601059
</pre>
10611060

1062-
Then, resolve for '<code class="css" lt="extend-to-zoom">extend-to-zoom</code>' as follows:
1061+
Then, resolve for ''extend-to-zoom'' as follows:
10631062

10641063
<ul>
1065-
<li>If <code>extend-zoom</code> is
1066-
'<code class="css" lt="auto!!zoom">auto</code>':
1064+
<li>If <code>extend-zoom</code> is ''zoom/auto'':
10671065
<ol>
10681066
<li>
10691067
If <code lt="max-width!!resolved">max-width</code> is
10701068
'<code class="css">extend-to-zoom</code>', set
1071-
<code>max-width = ''<viewport-length>/auto''</code>
1069+
<code>max-width = ''viewport-length/auto''</code>
10721070
</li>
10731071
<li>
10741072
If <code lt="max-height!!resolved">max-height</code> is
10751073
'<code class="css">extend-to-zoom</code>', set
1076-
<code>max-height = ''<viewport-length>/auto''</code>
1074+
<code>max-height = ''viewport-length/auto''</code>
10771075
</li>
10781076
<li>
10791077
If <code lt="min-width!!resolved">min-width</code> is
@@ -1089,8 +1087,7 @@ Then, resolve for '<code class="css" lt="extend-to-zoom">extend-to-zoom</code>'
10891087
</li>
10901088

10911089
<li>
1092-
If <code>extend-zoom</code> is
1093-
non-'<code class="css" lt="auto!!zoom">auto</code>':
1090+
If <code>extend-zoom</code> is non-''zoom/auto'':
10941091
<ol>
10951092
<li>
10961093
If <code lt="max-width!!resolved">max-width</code> is
@@ -1362,7 +1359,7 @@ Large screen UA styles</h3>
13621359
For browsers with an initial viewport size large enough to fit common
13631360
websites without breaking the layout, or which can easily to resized
13641361
to do so, the recommendation is to have <em>no</em> UA styles. That
1365-
means that it will have all descriptors initially set to ''<viewport-length>/auto'', and
1362+
means that it will have all descriptors initially set to ''viewport-length/auto'', and
13661363
behave as it would have without support for viewport descriptors.
13671364

13681365
For browsers which support changing orientation, and the portrait mode

0 commit comments

Comments
 (0)