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

Unified Diff: LayoutTests/css3/filters/empty-element-with-filter-expected.html

Issue 924533006: Don't remove empty display item pairs that draw content (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/css3/filters/empty-element-with-filter-expected.html
diff --git a/LayoutTests/css3/filters/empty-element-with-filter-expected.html b/LayoutTests/css3/filters/empty-element-with-filter-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..552dc7e788d8761f1ed4afb15a79e7cf218863a4
--- /dev/null
+++ b/LayoutTests/css3/filters/empty-element-with-filter-expected.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<style>
+ #turbulent {
+ width: 160px;
+ height: 90px;
+ -webkit-filter: url(#turbulence);
+ filter: url(#turbulence);
+
+ /* Make the div have visible content without the filter. */
Stephen Chennney 2015/02/19 16:13:27 This comment confused me, but that's because the t
ajuma 2015/02/19 17:36:51 Done.
+ background-color: red;
+ }
+</style>
+<div id="turbulent"></div>
+
+This test ensures we properly render filters on elements that otherwise have
+no visible content.
+
+<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" version="1.1">
+ <defs>
+ <filter id="turbulence" color-interpolation-filters="sRGB">
+ <feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="2"/>
+ </filter>
+ </defs>
+</svg>

Powered by Google App Engine
This is Rietveld 408576698