layout/reftests/svg/pseudo-classes-01.svg

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

michael@0 1 <!--
michael@0 2 Any copyright is dedicated to the Public Domain.
michael@0 3 http://creativecommons.org/publicdomain/zero/1.0/
michael@0 4 -->
michael@0 5 <svg xmlns="http://www.w3.org/2000/svg" version="1.1"
michael@0 6 xmlns:xlink="http://www.w3.org/1999/xlink">
michael@0 7
michael@0 8 <title>Testcase for the :first-child, :link, :visited and :lang pseudo-classes</title>
michael@0 9
michael@0 10 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=268135 -->
michael@0 11
michael@0 12 <style type="text/css">
michael@0 13 <![CDATA[
michael@0 14
michael@0 15 rect:first-child { fill: lime; }
michael@0 16 a:link > rect { fill: lime; }
michael@0 17 a:visited > rect { fill: lime; }
michael@0 18 rect:lang(it) { fill: lime; }
michael@0 19
michael@0 20 ]]>
michael@0 21 </style>
michael@0 22
michael@0 23 <!-- test :first-child -->
michael@0 24 <g>
michael@0 25 <rect x="0" width="25%" height="100%" fill="red"/>
michael@0 26 </g>
michael@0 27
michael@0 28 <!-- test :link -->
michael@0 29 <a xlink:href="do-not-visit-me.xxx" onclick="evt.preventDefault()">
michael@0 30 <first-child xmlns=""/>
michael@0 31 <rect x="25%" width="25%" height="100%" fill="red"/>
michael@0 32 </a>
michael@0 33
michael@0 34 <!-- test :visited -->
michael@0 35 <a xlink:href="">
michael@0 36 <first-child xmlns=""/>
michael@0 37 <rect x="50%" width="25%" height="100%" fill="red"/>
michael@0 38 </a>
michael@0 39
michael@0 40 <!-- test :lang -->
michael@0 41 <rect xml:lang="it" x="75%" width="25%" height="100%" fill="red"/>
michael@0 42
michael@0 43 </svg>

mercurial