From 6805c6464923b9cecf8220eb9cef314ed180fe80 Mon Sep 17 00:00:00 2001 From: Ojan Vafai Date: Thu, 4 Dec 2014 12:15:39 -0800 Subject: [PATCH] Get rid of background-clip:text and PaintBehaviorForceBlackText. http://blog.ericzhang.com/punch-through-text-masks-with-css-and-html5/ shows that you can achieve the similar effects using canvas. This doesn't need to be built into the core engine. It's OK for this to require more than a line of CSS to achieve. Unfortunately, the test included this this patch doesn't actually show that I didn't break anything because background-image is broken. I got the test from https://chromium.googlesource.com/chromium/blink/+/47e0d126e8d459b10176e3a91e47cf62ce0953a5%5E%21/#F4 R=eseidel@chromium.org Review URL: https://codereview.chromium.org/756183004 --- ...ground-opaque-clipped-gradients-expected.txt | 10 ++++++++++ .../background-opaque-clipped-gradients.sky | 17 +++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 engine/src/flutter/tests/clipping/background-opaque-clipped-gradients-expected.txt create mode 100644 engine/src/flutter/tests/clipping/background-opaque-clipped-gradients.sky diff --git a/engine/src/flutter/tests/clipping/background-opaque-clipped-gradients-expected.txt b/engine/src/flutter/tests/clipping/background-opaque-clipped-gradients-expected.txt new file mode 100644 index 0000000000..6ab563f5b6 --- /dev/null +++ b/engine/src/flutter/tests/clipping/background-opaque-clipped-gradients-expected.txt @@ -0,0 +1,10 @@ +layer at (0,0) size 800x600 + RenderView {#document} at (0,0) size 800x600 +layer at (0,0) size 800x238 + RenderBlock {sky} at (0,0) size 800x238 + RenderBlock (anonymous) at (0,0) size 800x38 + RenderText {#text} at (0,0) size 778x38 + text run at (0,0) width 778: "Test passes if the image below shows nested green, blue and yellow squares with a dotted black" + text run at (0,19) width 59: "border." + RenderBlock {div} at (0,38) size 200x200 [border: (25px dotted #000000)] + diff --git a/engine/src/flutter/tests/clipping/background-opaque-clipped-gradients.sky b/engine/src/flutter/tests/clipping/background-opaque-clipped-gradients.sky new file mode 100644 index 0000000000..d14870f2bc --- /dev/null +++ b/engine/src/flutter/tests/clipping/background-opaque-clipped-gradients.sky @@ -0,0 +1,17 @@ + + + + +Test passes if the image below shows nested green, blue and yellow squares with a dotted black border. +
+