layout/reftests/svg/sizing/object--auto-auto--px-0.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

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">
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: width:auto; height:auto; width="70px" height="0"</title>
michael@0 11
michael@0 12 <!--
michael@0 13 This testcase checks that the <object> element uses the intrinsic width and
michael@0 14 height of the embedded SVG. Since the intrinsic width is 70px and the
michael@0 15 intrinsic height is zero, you should see a 1px blue border around a
michael@0 16 rectangle 70px wide by 0px high when viewing this file. You should not see
michael@0 17 any red.
michael@0 18 -->
michael@0 19
michael@0 20 <style type="text/css">
michael@0 21
michael@0 22 html, body {
michael@0 23 padding: 0;
michael@0 24 border: 0;
michael@0 25 margin: 0;
michael@0 26 }
michael@0 27
michael@0 28 object {
michael@0 29 padding: 0;
michael@0 30 border: 1px solid blue;
michael@0 31 margin: 50px;
michael@0 32 background: red;
michael@0 33 }
michael@0 34
michael@0 35 </style>
michael@0 36 </head>
michael@0 37 <body>
michael@0 38 <object data="object--auto-auto--px-0.svg" type="image/svg+xml">
michael@0 39 FAIL
michael@0 40 </object>
michael@0 41 </body>
michael@0 42 </html>

mercurial