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

Unified Diff: LayoutTests/css3/filters/empty-element-with-filter.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.html
diff --git a/LayoutTests/css3/filters/empty-element-with-filter.html b/LayoutTests/css3/filters/empty-element-with-filter.html
new file mode 100644
index 0000000000000000000000000000000000000000..24fa546b90c4c89b79b9f65119da7188baf7d4c9
--- /dev/null
+++ b/LayoutTests/css3/filters/empty-element-with-filter.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<style>
+ #turbulent {
+ width: 160px;
+ height: 90px;
+ -webkit-filter: url(#turbulence);
+ filter: url(#turbulence);
+ }
+</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