Skip to content

Commit

Permalink
[css-values] Resolve issue about using vi/vb in MQs by using the init…
Browse files Browse the repository at this point in the history
…ial value of WM, as discussed in #113. Fixes #113.
  • Loading branch information
tabatkins committed Jun 28, 2016
1 parent 0f0e29f commit 0e26fd2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions css-values/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1041,10 +1041,11 @@ Viewport-percentage lengths: the ''vw'', ''vh'', ''vmin'', ''vmax'' units</h4>
Equal to the larger of ''vw'' or ''vh''.
</dl>

Issue: All units need to be possible to evaluate in a context without any elements or styling;
for example, ''rem'' in a media query is evaluated
relative to the document's initial font size.
How do we get an inline/block direction from the document?
In situations where there is no root element
or it hasn't yet been styled
(such as when evaluating <a>media queries</a>),
the ''vi'' and ''vb'' units use the initial value of the 'writing-mode' property
to determine which axis they correspond to.

<!--
████████ ██ ██ ██ ████████ ████████ ██████
Expand Down

0 comments on commit 0e26fd2

Please sign in to comment.