Skip to content

Commit 52468c9

Browse files
committed
[css-values] Per WG resolution, added vi and vb units. For w3c#113.
1 parent b20c4b7 commit 52468c9

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

css-values/Overview.bs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,10 @@ Relative lengths</h3>
889889
<td>1% of viewport's width
890890
<tr><td>''vh''
891891
<td>1% of viewport's height
892+
<tr><td>''vi''
893+
<td>1% of viewport's size in the root element's <a>inline axis</a>
894+
<tr><td>''vb''
895+
<td>1% of viewport's size in the root element's <a>block axis</a>
892896
<tr><td>''vmin''
893897
<td>1% of viewport's smaller dimension
894898
<tr><td>''vmax''
@@ -1018,6 +1022,16 @@ Viewport-percentage lengths: the ''vw'', ''vh'', ''vmin'', ''vmax'' units</h4>
10181022
<dd>
10191023
Equal to 1% of the height of the initial containing block.
10201024

1025+
<dt><dfn lt=vi>vi unit</dfn>
1026+
<dd>
1027+
Equal to 1% of the size of the initial containing block
1028+
in the direction of the root element's inline axis.
1029+
1030+
<dt><dfn lt=vb>vb unit</dfn>
1031+
<dd>
1032+
Equal to 1% of the size of the initial containing block
1033+
in the direction of the root element's block axis.
1034+
10211035
<dt><dfn id="vmin" lt="vmin">vmin unit</dfn>
10221036
<dd>
10231037
Equal to the smaller of ''vw'' or ''vh''.
@@ -1027,6 +1041,11 @@ Viewport-percentage lengths: the ''vw'', ''vh'', ''vmin'', ''vmax'' units</h4>
10271041
Equal to the larger of ''vw'' or ''vh''.
10281042
</dl>
10291043

1044+
Issue: All units need to be possible to evaluate in a context without any elements or styling;
1045+
for example, ''rem'' in a media query is evaluated
1046+
relative to the document's initial font size.
1047+
How do we get an inline/block direction from the document?
1048+
10301049
<!--
10311050
████████ ██ ██ ██ ████████ ████████ ██████
10321051
██ ██ ██ ██ ██ ██ ██ ██ ██
@@ -2242,6 +2261,7 @@ Changes</h2>
22422261
<li>Added definition of <<ident>> notation to definition of <a>identifiers</a>.
22432262
<li>Added <<length-percentage>> as a shorthand for <<length>> | <<percentage>>,
22442263
along with equivalent productions for angles, numbers, times, and frequencies.
2264+
<li>Added the ''vi'' and ''vb'' units.
22452265
<li>Various clarifications and editorial improvements.
22462266
</ul>
22472267

0 commit comments

Comments
 (0)