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

Unified Diff: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-linear-gradient.html

Issue 244693003: [CSS Shapes] Add parsing support for gradients (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Increase threshold Created 6 years, 8 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: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-linear-gradient.html
diff --git a/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-linear-gradient.html b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-linear-gradient.html
new file mode 100644
index 0000000000000000000000000000000000000000..d37b55a8e2b8b527cf395bc3c25563e458f0fa95
--- /dev/null
+++ b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-linear-gradient.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+#image-shape {
+ float: left;
+ shape-outside: linear-gradient(to right, rgba(0, 0, 255, 1), rgba(0, 0, 255, 0));
+ shape-image-threshold: 0.75; /* use a bigger threshold than WK test because of Skia gradient rendering difference. */
+ width: 100px;
+ height: 100px;
+}
+
+#content {
+ font: 50px/1 Ahem, sans-serif;
+ width: 600px;
+ color: green;
+}
+</style>
+<div id="content">
+ <div id="image-shape"></div>
+ X<br>X<br>X
+</div>
+</body>
+</html>
+

Powered by Google App Engine
This is Rietveld 408576698