summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-values/viewport-unit-011.html
blob: 055f3d1fd2d716a68d857738493815c8772bef06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>

  <meta charset="UTF-8">

  <title>CSS Values and Units Test: vh unit and vw unit (basic)</title>

  <!--
  Original test is:

  https://chromium.googlesource.com/chromium/src/+/c825d655f6aaf73484f9d56e9012793f5b9668cc/third_party/WebKit/LayoutTests/css3/calc/viewport-unit.html
  -->

  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
  <link rel="help" href="https://www.w3.org/TR/css3-values/#viewport-relative-lengths">
  <link rel="match" href="reference/viewport-unit-011-ref.html">

<style>
body {
    margin: 0;
    height: 100vh;
}
div {
    width: calc(50vw + 10%);
    height: calc(50vh + 10%);
    background-color: green;
}
</style>
<div>
</div>