Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
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 | <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> |
michael@0 | 6 | <head> |
michael@0 | 7 | |
michael@0 | 8 | <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=294086 --> |
michael@0 | 9 | |
michael@0 | 10 | <title>Test: object should resize when SVG is unloaded</title> |
michael@0 | 11 | |
michael@0 | 12 | <!-- |
michael@0 | 13 | This testcase checks that HTML <object> will resize correctly if it depends |
michael@0 | 14 | on the intrinsic size of some embedded SVG, and then the SVG is replaced by |
michael@0 | 15 | some other content (perhaps as a result of a link in the SVG being |
michael@0 | 16 | clicked). |
michael@0 | 17 | --> |
michael@0 | 18 | |
michael@0 | 19 | <style type="text/css"> |
michael@0 | 20 | |
michael@0 | 21 | html, body { |
michael@0 | 22 | padding: 0; |
michael@0 | 23 | border: 0; |
michael@0 | 24 | margin: 0; |
michael@0 | 25 | width: 100%; |
michael@0 | 26 | height: 100%; |
michael@0 | 27 | background: lime; |
michael@0 | 28 | } |
michael@0 | 29 | |
michael@0 | 30 | object { |
michael@0 | 31 | background: red; |
michael@0 | 32 | position: absolute; |
michael@0 | 33 | left: 0; |
michael@0 | 34 | top: 0; |
michael@0 | 35 | } |
michael@0 | 36 | |
michael@0 | 37 | </style> |
michael@0 | 38 | </head> |
michael@0 | 39 | <body> |
michael@0 | 40 | |
michael@0 | 41 | <div style="width:300px; height:150px; background:red;"></div> |
michael@0 | 42 | |
michael@0 | 43 | <object data="dynamic--object-svg-unloaded-a.svg" type="image/svg+xml"> |
michael@0 | 44 | FAIL |
michael@0 | 45 | </object> |
michael@0 | 46 | |
michael@0 | 47 | </body> |
michael@0 | 48 | </html> |