vh-support-transform-origin-iframe

Viewports units are supported in transform properties (iframe)

WeasyPrint

This browser

Assertion
Viewports units are supported in transform properties (translate)

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3 	<meta charset="utf-8">
 4 	<title>
 5 		CSS Values and Units Test:
 6 		Viewports units are supported in transform properties (iframe)
 7 	</title>
 8 	<meta content="
 9 		Viewports units are supported in transform properties (translate)
10 	" name="assert">
11 
12 	<link href="mailto:fremycompany.developer@yahoo.fr" rel="author" title="François REMY">
13 
14 	<link href="http://www.w3.org/TR/css3-values/#viewport-relative-lengths" rel="help">
15 	<link href="http://www.w3.org/TR/css3-2d-transforms/#css-values" rel="help">
16 
17 	<style type="text/css">
18 
19 			html, body { margin: 0px; padding: 0px; overflow: hidden; }
20 
21 			html { background: green; }
22 			#target, #over-target {
23 				position: absolute; top: 0px; left: 0px;
24 				width: 100px; height: 100px;
25 				transform: scale(0.5);
26 			}
27 
28 			#target {
29 				background: red;
30 				transform-origin: 200px 200px;
31 			}
32 
33 			#over-target {
34 				background: green;
35 				transform-origin: 50vw 50vh;
36 			}
37 
38 	</style>
39 
40 </head>
41 <body>
42 
43 	<div id="target"></div>
44 	<div id="over-target"></div>
45 
46 
47 
48 </body></html>