mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
Update CSS tests to revision b9c63d615a65c4d96f26969bcd504d4e1c3cdab8
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
||||
<meta charset="utf-8" />
|
||||
<title>
|
||||
CSS Values and Units Test:
|
||||
Viewports units are supported in transform properties (iframe)
|
||||
</title>
|
||||
<meta content="
|
||||
Viewports units are supported in transform properties (translate)
|
||||
" name="assert" />
|
||||
|
||||
<link href="mailto:fremycompany.developer@yahoo.fr" rel="author" title="François REMY" />
|
||||
|
||||
<link href="http://www.w3.org/TR/css3-values/#viewport-relative-lengths" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-2d-transforms/#css-values" rel="help" />
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
html, body { margin: 0px; padding: 0px; overflow: hidden; }
|
||||
|
||||
html { background: green; }
|
||||
#target, #over-target {
|
||||
position: absolute; top: 0px; left: 0px;
|
||||
width: 100px; height: 100px;
|
||||
}
|
||||
|
||||
#target {
|
||||
background: red;
|
||||
transform: translate(200px, 200px);
|
||||
}
|
||||
|
||||
#over-target {
|
||||
background: green;
|
||||
transform: translate(50vw, 50vh);
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="target"></div>
|
||||
<div id="over-target"></div>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
Reference in New Issue
Block a user