Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Unified Diff: LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background.html

Issue 223673003: Improve computation of ctmScale{X,Y} in NativeImageSkia::drawPattern (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop trailing WS. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background.html
diff --git a/LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background.html b/LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background.html
new file mode 100644
index 0000000000000000000000000000000000000000..f922ab57798f7d2bedcdeb3475e894c56c257289
--- /dev/null
+++ b/LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<title>Tiled and scaled background with 'transform: scale(1, -1)'</title>
+<style>
+div {
+ width: 100px;
+ height: 100px;
+}
+#subject {
+ background-size: 95px 100px;
+ -webkit-transform: scale(1, -1);
+ transform: scale(1, -1);
+}
+</style>
+<div id=back>
+ <div id=subject></div>
+</div>
+<script>
+function stripedImage(c1, c2) {
+ var c = document.createElement('canvas');
+ c.width = c.height = 100;
+ var ctx = c.getContext('2d');
+ ctx.fillStyle = c1;
+ ctx.fillRect(0, 0, 100, 50);
+ ctx.fillStyle = c2;
+ ctx.fillRect(0, 50, 100, 50);
+ return c.toDataURL('image/png');
+}
+document.getElementById('back').style.background = 'url(' + stripedImage('#080', '#f00') + ')';
+document.getElementById('subject').style.backgroundImage = 'url(' + stripedImage('#080', 'transparent') + ')';
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698