/third_party/blink/web_tests/external/wpt/css/css-values/vh-support-margin.html

https://github.com/chromium/chromium · HTML · 41 lines · 31 code · 10 blank · 0 comment · 0 complexity · 23d0fbe633881c9acdfe164a5125d26d MD5 · raw file

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>
  6. CSS Values and Units Test:
  7. Viewports units are supported in margin properties
  8. </title>
  9. <meta name="assert" content="
  10. Viewports units are supported in margin properties
  11. " />
  12. <link
  13. rel="author"
  14. title="François REMY"
  15. href="mailto:francois.remy.pub@outlook.com"
  16. / >
  17. <link rel="help" href="http://www.w3.org/TR/css3-values/#viewport-relative-lengths">
  18. <link
  19. rel="match"
  20. href="reference/all-green.html"
  21. />
  22. <style type="text/css">
  23. html, body { margin: 0px; padding: 0px; height: 100%; }
  24. html { background: green; }
  25. #target { background: red; width: 100%; height: 100%; margin-left: -100vw; margin-top: -100vh; }
  26. </style>
  27. </head>
  28. <body>
  29. <div id="target"></div>
  30. </body>
  31. </html>