Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-transforms/transform-origin-name-003.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): transform-origin: top</title>
<link rel="author" title="Keith Schwarz" href="mailto:keith@keithschwarz.com">
<link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name">
<meta name="assert" content='This tests that 'transform-origin:
top' is the same as 'transform-origin: 50% 0%'.'>
<link rel="match" href="transform-origin-name-ref-2.html">
<link rel="mismatch" href="transform-origin-name-notref.html">
<style>
div {
margin: 300px 0 0 300px;
width: 100px;
height: 200px;
background: #202040;
transform: rotate(45deg);
transform-origin: top;
}
</style>
</head>
<body>
<div></div>
</body>
</html>