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

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: Address review comments 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..99532de47f98adc95a94a4bb84516c8efc7faad7
--- /dev/null
+++ b/LayoutTests/css3/filters/empty-element-with-filter-expected.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<style>
+ .turbulent {
+ width: 160px;
+ height: 90px;
+ margin: 10px;
+ -webkit-filter: url(#turbulence);
+ filter: url(#turbulence);
+ }
+
+ .visibleContent {
+ background-color: red;
+ }
+</style>
+<div class="turbulent"></div>
+<div class="turbulent visibleContent"></div>
+
+This test ensures we properly render filters on elements that otherwise have
+no visible content. This test passes if both divs look the same.
+
+<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>
« no previous file with comments | « LayoutTests/css3/filters/empty-element-with-filter.html ('k') | Source/platform/graphics/paint/DisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698