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

Unified Diff: third_party/WebKit/LayoutTests/fast/images/color-profile-mask-image-svg.html

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix CanvasRenderingContext2D::createPattern crash for #40 Created 4 years, 11 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
Index: third_party/WebKit/LayoutTests/fast/images/color-profile-mask-image-svg.html
diff --git a/third_party/WebKit/LayoutTests/fast/images/color-profile-mask-image-svg.html b/third_party/WebKit/LayoutTests/fast/images/color-profile-mask-image-svg.html
new file mode 100644
index 0000000000000000000000000000000000000000..593c0a67f58ff576cd8b47fa12fdd6d0c924d176
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/images/color-profile-mask-image-svg.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+
+<style>
+ img {
+ -webkit-mask: url(resources/color-profile-mask-image.svg) top left;
+ -webkit-mask-size: 33% 33%;
+ -webkit-mask-repeat: space;
+ width: 380px;
+ }
+</style>
+
+<body>
+ <!-- The blue sector of the images should be at 12 o'clock. -->
+
+ <svg onload="load()" xmlns:xlink="http://www.w3.org/1999/xlink" width="380" height="380">
+ <defs>
+ <mask id="mask" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox">
+ <circle cx=".5" cy=".5" r=".47" fill="white"/>
+ </mask>
+ </defs>
+ <image xlink:href="resources/red-at-12-oclock-with-color-profile.jpg" width="380" height="380" mask="url(#mask)"/>
+ </svg>
+
+ <img src="resources/red-at-12-oclock-with-color-profile.jpg">
+</body>
+
+<script>
+function load() {
+ if (window.testRunner)
+ runAfterLayoutAndPaint(changeColorProfile);
+}
+
+function changeColorProfile() {
+ setTimeout(function() { testRunner.setColorProfile('whacked', done) }, 100);
+}
+
+function done() {
+ setTimeout(function() { testRunner.notifyDone() }, 0);
+}
+
+if (window.internals)
+ internals.settings.setImageColorProfilesEnabled(true);
+
+if (window.testRunner) {
+ testRunner.dumpAsTextWithPixelResults();
+ testRunner.waitUntilDone();
+}
+</script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698