Skip to content

Commit

Permalink
#180 Text tests - transform inside transform.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfickle committed Dec 20, 2018
1 parent 5eaa2ed commit cb3511a
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<html>
<head>
<style>
@page {
size: 200px 250px;
margin: 10px;
}
body {
margin: 5px;
padding: 40px;
width: 90px;
}
</style>
</head>
<body style="font-family: 'TestFont'; color: black; font-size: 30px;">
<div style="border: 1px solid black; width: 50px; height: 50px;">
ABC
<div style="transform: rotate(45deg); width: 100%; height: 100%; background-color: red;">
DEF
<div style="transform: translateX(30px); width: 100%; height: 100%; background-color: purple;">GHI</div>
JKL
</div>
MNO
</div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -355,4 +355,12 @@ public void testInlineBlockFloat() throws IOException {
public void testInlineBlockAbsolute() throws IOException {
assertTrue(run("inline-block-absolute"));
}

/**
* With static blocks, rotate then translate, page margin, body margin and padding.
*/
@Test
public void testTransformWithinTransform() throws IOException {
assertTrue(run("transform-inside-transform"));
}
}

0 comments on commit cb3511a

Please sign in to comment.