Skip to content

Commit 0e26fd2

Browse files
committed
[css-values] Resolve issue about using vi/vb in MQs by using the initial value of WM, as discussed in #113. Fixes #113.
1 parent 0f0e29f commit 0e26fd2

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

css-values/Overview.bs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,10 +1041,11 @@ Viewport-percentage lengths: the ''vw'', ''vh'', ''vmin'', ''vmax'' units</h4>
10411041
Equal to the larger of ''vw'' or ''vh''.
10421042
</dl>
10431043

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?
1044+
In situations where there is no root element
1045+
or it hasn't yet been styled
1046+
(such as when evaluating <a>media queries</a>),
1047+
the ''vi'' and ''vb'' units use the initial value of the 'writing-mode' property
1048+
to determine which axis they correspond to.
10481049

10491050
<!--
10501051
████████ ██ ██ ██ ████████ ████████ ██████

0 commit comments

Comments
 (0)