forked from mirrors/gecko-dev
Automatic update from web-platform-tests added 2 css-values tests and 1 reference file -- Merge pull request #15106 from TalbotG/Values3-GT-PR13 added 2 css-values tests and 1 reference file -- wpt-commits: 7d2a224e58a005ec3696a0826cc60a1ad8ad1e05, 95ca9136eb182dbfc4fafe14eccf7891dbdb82bf wpt-pr: 15106
29 lines
No EOL
735 B
HTML
29 lines
No EOL
735 B
HTML
<!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> |