| <!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> |