1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/svg-effects-area-zoomed-in.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 1.4 +<?xml version="1.0" encoding="UTF-8"?> 1.5 +<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" reftest-zoom="2"> 1.6 +<head> 1.7 + <title>Test for bug 541270 (SVG Effects area)</title> 1.8 + <style type="text/css"> 1.9 + html, body, div { display: block; width: 100%; height: 100%; border: none; margin: 0; padding: 0; } 1.10 + /* ick, filters can't be display: none or inside of something display:none! */ 1.11 + svg { display: block; height: 0; } 1.12 + </style> 1.13 +</head> 1.14 +<body> 1.15 + <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> 1.16 + <defs> 1.17 + <!-- use a filter that doesn't change anything (since the background 1.18 + is opaque, we can apply a gamma correction to the alpha channel) 1.19 + but is unlikely to be optimized away --> 1.20 + <!-- use sRGB to avoid errors creeping in --> 1.21 + <filter id="notMuch" x="0%" y="0%" width="100%" height="100%" 1.22 + style="color-interpolation-filters: sRGB"> 1.23 + <feComponentTransfer> 1.24 + <feFuncR type="linear" intercept="0" slope="1" /> 1.25 + <feFuncG type="linear" intercept="0" slope="1" /> 1.26 + <feFuncB type="linear" intercept="0" slope="1" /> 1.27 + <feFuncA type="gamma" exponent="0.5" /> 1.28 + </feComponentTransfer> 1.29 + </filter> 1.30 + </defs> 1.31 + </svg> 1.32 + <div style="background: #fc3; filter:url(#notMuch)"><div style="background: #3c6; width: 100px;height:25px" /></div> 1.33 +</body> 1.34 +</html>