mirror of
https://github.com/servo/servo.git
synced 2025-09-04 12:08:21 +01:00
layout: Implement 2D CSS transforms per CSS-TRANSFORMS § 5, 6, 7, and 8.
This commit is contained in:
parent
7bd6cb0091
commit
d10627a2b3
14 changed files with 964 additions and 35 deletions
49
tests/ref/transform_simple_a.html
Normal file
49
tests/ref/transform_simple_a.html
Normal file
|
@ -0,0 +1,49 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- Tests that basic CSS transforms work. -->
|
||||
<style>
|
||||
section {
|
||||
position: absolute;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
top: 25px;
|
||||
left: 50px;
|
||||
transform: rotate(90deg) scale(1, 2);
|
||||
}
|
||||
div {
|
||||
position: absolute;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
}
|
||||
#a {
|
||||
background: cyan;
|
||||
}
|
||||
#b {
|
||||
background: magenta;
|
||||
}
|
||||
#c {
|
||||
background: yellow;
|
||||
}
|
||||
#d {
|
||||
background: black;
|
||||
}
|
||||
#a, #b {
|
||||
top: 0;
|
||||
}
|
||||
#c, #d {
|
||||
top: 25px;
|
||||
}
|
||||
#a, #c {
|
||||
left: 0;
|
||||
}
|
||||
#b, #d {
|
||||
left: 25px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section><div id=a></div><div id=b></div><div id=c></div><div id=d></div></section>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue