Bug 686581 - Disable theming in SVG images harder. r=longsonr
authorMats Palmgren <matspal@gmail.com>
Mon, 26 Sep 2011 18:29:06 +0200
changeset 78055 368b4a870769ab8b65a880d4337c51a8dc9b047b
parent 78054 42f80b4629c212f4bade981660d879396e9a6a0c
child 78056 48df3b328875d17fb3d3eba9b230bb95e3541a0f
push id387
push userbzbarsky@mozilla.com
push dateTue, 27 Sep 2011 17:43:12 +0000
treeherdermozilla-aurora@ec885a01be07 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslongsonr
bugs686581
milestone9.0a1
Bug 686581 - Disable theming in SVG images harder. r=longsonr
layout/reftests/svg/foreignObject-form-theme.svg
layout/svg/base/src/svg.css
--- a/layout/reftests/svg/foreignObject-form-theme.svg
+++ b/layout/reftests/svg/foreignObject-form-theme.svg
@@ -1,14 +1,14 @@
 <svg xmlns='http://www.w3.org/2000/svg' width='500' height='200'>
   <foreignObject width='500' height='500'>
     <div xmlns='http://www.w3.org/1999/xhtml'>
-      <button>this is a button inside of SVG</button>
+      <button style="-moz-appearance: button !important">this is a button inside of SVG</button>
       <br/>
-      <select>
+      <select style="-moz-appearance: menulist !important">
         <option>This is a menu inside of SVG</option>
         <option>a second menu option</option>
       </select>
     </div>
   </foreignObject>
 </svg>
 
 <!-- Bug 686581 -->
--- a/layout/svg/base/src/svg.css
+++ b/layout/svg/base/src/svg.css
@@ -53,17 +53,17 @@ svg:not(:root), symbol, image, marker, p
 foreignObject {
   margin: 0 ! important;
   padding: 0 ! important;
   border-width: 0 ! important;
 }
 
 @media all and (-moz-is-resource-document) {
  foreignObject *|* {
-   -moz-appearance: none;
+   -moz-appearance: none !important;
  }
 }
 
 *|*::-moz-svg-foreign-content {
   display: block !important;
   position: static !important;
   text-indent: 0;
 }