Skip to content

Commit

Permalink
#180 Text tests - transform absolute block and transform float block …
Browse files Browse the repository at this point in the history
…across multiple pages.
  • Loading branch information
danfickle committed Dec 20, 2018
1 parent cb3511a commit 563be42
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<html>
<head>
<style>
@page {
size: 200px 200px;
margin: 40px;
}
body, html {
margin: 0;
}
</style>
</head>
<body style="font-family: 'TestFont'; color: black; font-size: 30px;">
<div style="border: 1px solid black; width: 50px; height: 50px;">
1234
<div style="position: absolute; transform: rotate(45deg); width: 50px; height: 50px; background-color: red; border: 5px solid purple; padding: 10px; margin: 10px; left: 20px; top: 10px;">ABCD</div>
EFGH
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<html>
<head>
<style>
@page {
size: 200px 200px;
margin: 40px;
}
body, html {
margin: 0;
}
</style>
</head>
<body style="font-family: 'TestFont'; color: black; font-size: 30px;">
<div style="border: 1px solid black; width: 50px; height: 50px;">
123
<div style="float: right; transform: rotate(45deg); width: 30px; height: 50px; background-color: red; border: 5px solid purple; padding: 10px; margin: 10px;">7890123456</div>
456
</div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -363,4 +363,21 @@ public void testInlineBlockAbsolute() throws IOException {
public void testTransformWithinTransform() throws IOException {
assertTrue(run("transform-inside-transform"));
}

/**
* With an absolute block, rotate, large page margin, small block margin, small padding, small border.
*/
@Test
public void testTransformAbsolute() throws IOException {
assertTrue(run("transform-absolute"));
}

/**
* With a floated static block, rotate, large page margin, small block margin, small padding, small border.
* Also tests transform across multiple vertical pages.
*/
@Test
public void testTransformFloat() throws IOException {
assertTrue(run("transform-float"));
}
}

0 comments on commit 563be42

Please sign in to comment.