Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
michael@0 | 2 | <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" reftest-zoom="0.6"> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>Test for bug 541270 (SVG Effects area)</title> |
michael@0 | 5 | <style type="text/css"> |
michael@0 | 6 | html, body, div { display: block; width: 100%; height: 100%; border: none; margin: 0; padding: 0; } |
michael@0 | 7 | /* ick, filters can't be display: none or inside of something display:none! */ |
michael@0 | 8 | svg { display: block; height: 0; } |
michael@0 | 9 | </style> |
michael@0 | 10 | </head> |
michael@0 | 11 | <body> |
michael@0 | 12 | <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> |
michael@0 | 13 | <defs> |
michael@0 | 14 | <!-- use a filter that doesn't change anything (since the background |
michael@0 | 15 | is opaque, we can apply a gamma correction to the alpha channel) |
michael@0 | 16 | but is unlikely to be optimized away --> |
michael@0 | 17 | <!-- use sRGB to avoid errors creeping in --> |
michael@0 | 18 | <filter id="notMuch" x="0%" y="0%" width="100%" height="100%" |
michael@0 | 19 | style="color-interpolation-filters: sRGB"> |
michael@0 | 20 | <feComponentTransfer> |
michael@0 | 21 | <feFuncR type="linear" intercept="0" slope="1" /> |
michael@0 | 22 | <feFuncG type="linear" intercept="0" slope="1" /> |
michael@0 | 23 | <feFuncB type="linear" intercept="0" slope="1" /> |
michael@0 | 24 | <feFuncA type="gamma" exponent="0.5" /> |
michael@0 | 25 | </feComponentTransfer> |
michael@0 | 26 | </filter> |
michael@0 | 27 | </defs> |
michael@0 | 28 | </svg> |
michael@0 | 29 | <div style="background: #fc3; filter:url(#notMuch)"><div style="background: #3c6; width: 100px;height:25px" /></div> |
michael@0 | 30 | </body> |
michael@0 | 31 | </html> |