servo/tests/wpt/css-tests/css-transforms-1_dev/xhtml1print/svg-scale-005.xht

26 lines
No EOL
1.3 KiB
HTML

<!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>
<title>CSS Transforms Test: SVG presentation attribute and scale with percent values - not supported</title>
<link href="mailto:rhauck@adobe.com" rel="author" title="Rebecca Hauck" />
<link href="http://www.w3.org/TR/css-transforms-1/#svg-transform" rel="help" />
<link href="http://www.w3.org/TR/css-transforms-1/#two-d-transform-functions" rel="help" />
<link href="http://www.w3.org/TR/css-transforms-1/#funcdef-scale" rel="help" />
<link href="reference/svg-scale-ref.xht" rel="match" />
<meta content="svg" name="flags" />
<meta content="Percent values are not supported. The green rect in the test should not be scaled and the red rect should remain completely covered." name="assert" />
<style type="text/css">
svg {
width: 200px;
height: 200px;
background: green;
}
</style>
</head>
<body>
<p>The test passes if you see a green square and no red.</p>
<svg xmlns="http://www.w3.org/2000/svg">
<rect y="1" width="148" fill="red" x="1" height="148"></rect>
<rect width="150" fill="green" transform="scale(50%)" height="150"></rect>
</svg>
</body></html>