1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/pseudo-classes-01.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +<!-- 1.5 + Any copyright is dedicated to the Public Domain. 1.6 + http://creativecommons.org/publicdomain/zero/1.0/ 1.7 +--> 1.8 +<svg xmlns="http://www.w3.org/2000/svg" version="1.1" 1.9 + xmlns:xlink="http://www.w3.org/1999/xlink"> 1.10 + 1.11 + <title>Testcase for the :first-child, :link, :visited and :lang pseudo-classes</title> 1.12 + 1.13 + <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=268135 --> 1.14 + 1.15 + <style type="text/css"> 1.16 + <![CDATA[ 1.17 + 1.18 +rect:first-child { fill: lime; } 1.19 +a:link > rect { fill: lime; } 1.20 +a:visited > rect { fill: lime; } 1.21 +rect:lang(it) { fill: lime; } 1.22 + 1.23 + ]]> 1.24 + </style> 1.25 + 1.26 + <!-- test :first-child --> 1.27 + <g> 1.28 + <rect x="0" width="25%" height="100%" fill="red"/> 1.29 + </g> 1.30 + 1.31 + <!-- test :link --> 1.32 + <a xlink:href="do-not-visit-me.xxx" onclick="evt.preventDefault()"> 1.33 + <first-child xmlns=""/> 1.34 + <rect x="25%" width="25%" height="100%" fill="red"/> 1.35 + </a> 1.36 + 1.37 + <!-- test :visited --> 1.38 + <a xlink:href=""> 1.39 + <first-child xmlns=""/> 1.40 + <rect x="50%" width="25%" height="100%" fill="red"/> 1.41 + </a> 1.42 + 1.43 + <!-- test :lang --> 1.44 + <rect xml:lang="it" x="75%" width="25%" height="100%" fill="red"/> 1.45 + 1.46 +</svg>