mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
30 lines
1.2 KiB
HTML
30 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Transforms Test: SVG presentation attribute transform-origin with length values - 50px 50px</title>
|
|
<link href="mailto:dschulze@adobe.com" rel="author" title="Dirk Schulze">
|
|
<link href="http://www.w3.org/TR/css-transforms-1/#transform-origin-property" rel="help">
|
|
<link href="reference/svg-origin-length-ref.htm" rel="match">
|
|
<meta content="svg" name="flags">
|
|
<meta content="The transform-origin should translate the origin by (50px,50px) temporarily." name="assert">
|
|
<style type="text/css">
|
|
svg {
|
|
width: 200px;
|
|
height: 200px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>The test passes if there is a vertical fuchsia stripe to the left of an orange stripe. You should see no red.</p>
|
|
<svg>
|
|
<!-- Fill with Gradient to avoid false positive. -->
|
|
<defs>
|
|
<linearGradient x2="0%" y2="100%" id="grad">
|
|
<stop stop-color="orange" offset="50%"></stop>
|
|
<stop stop-color="fuchsia" offset="50%"></stop>
|
|
</linearGradient>
|
|
</defs>
|
|
<rect y="1" width="98" fill="red" x="1" height="98"></rect>
|
|
<rect width="100" fill="url(#grad)" transform-origin="50px 50px" transform="rotate(90deg)" height="100"></rect>
|
|
</svg>
|
|
|
|
</body></html> |