Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-values-4] initial work on vhc unit proposal text. Resolves #4329 #5108

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions css-values-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,9 @@ Relative Lengths</h3>
<tr><td>''vw''
<td>1% of viewport's width
<tr><td>''vh''
<td>1% of viewport's height
<td>1% of viewport's height when user agent chrome is minimized
<tr><td>''vhc''
<td>1% of viewport's height when user agent chrome is maximized
<tr><td>''vmin''
<td>1% of viewport's smaller dimension
<tr><td>''vmax''
Expand Down Expand Up @@ -1178,7 +1180,13 @@ Viewport-percentage Lengths: the ''vw'', ''vh'', ''vmin'', ''vmax'' units</h4>

<dt><dfn id="vh" lt="vh">vh unit</dfn>
<dd>
Equal to 1% of the height of the initial containing block.
When user agent chrome does not change size, it is equal to 1% of the height of the initial containing block.
When user agent chrome does change size, it is equal to 1% of the height of the initial containing block with the user agent chrome at its smallest size.

<dt><dfn id="vhc" lt="vhc">vhc unit</dfn>
<dd>
When user agent chrome does not change size, it is equal to 1% of the height of the initial containing block.
When user agent chrome does change size, it is equal to 1% of the height of the initial containing block with the user agent chrome at its largest size.

<dt><dfn id="vmin" lt="vmin">vmin unit</dfn>
<dd>
Expand All @@ -1188,6 +1196,10 @@ Viewport-percentage Lengths: the ''vw'', ''vh'', ''vmin'', ''vmax'' units</h4>
<dd>
Equal to the larger of ''vw'' or ''vh''.
</dl>

Note: The vh and vhc units are the same size when the user agent chrome does not change size
(for example, desktop user agents generally do not change chrome size, so vh and vhc will be the same in these situations).
For user agent whose chrome does change size, vhc is the smaller of the two units.

<wpt>
css/css-regions/interactivity/resizing/regions-resizing-003.html
Expand Down