layout/reftests/box-properties/width-special-values-cell-fixed.html

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 <!DOCTYPE html>
michael@0 2 <html lang="en-US">
michael@0 3 <head>
michael@0 4 <title>-moz-max-content, -moz-min-content, -moz-fit-content, and -moz-available values of CSS width property, on table cells with table-layout: fixed</title>
michael@0 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
michael@0 6 <meta http-equiv="Content-Style-Type" content="text/css">
michael@0 7 <style type="text/css">
michael@0 8
michael@0 9 body { font-size: 10px; line-height: 1; }
michael@0 10
michael@0 11 td table { table-layout: fixed; width: 200px; }
michael@0 12 td td:first-child {
michael@0 13 border-left: 1px solid;
michael@0 14 padding-left: 2px;
michael@0 15 padding-right: 4px;
michael@0 16 border-right: 8px solid;
michael@0 17
michael@0 18 background: yellow;
michael@0 19 }
michael@0 20
michael@0 21 </style>
michael@0 22 </head>
michael@0 23 <body>
michael@0 24
michael@0 25 <table border><tr>
michael@0 26 <td>
michael@0 27 <!-- width -->
michael@0 28 <table border><tr><td style="width: -moz-max-content">A B</td><td></td></tr></table>
michael@0 29 <table border><tr><td style="width: -moz-min-content">A B</td><td></td></tr></table>
michael@0 30 <table border><tr><td style="width: -moz-fit-content">A B</td><td></td></tr></table>
michael@0 31 <table border><tr><td style="width: -moz-available">A B</td><td></td></tr></table>
michael@0 32
michael@0 33 </td>
michael@0 34 <td>
michael@0 35 <!-- min-width -->
michael@0 36
michael@0 37 <table border><tr><td style="min-width: -moz-max-content">A B</td><td></td></tr></table>
michael@0 38 <table border><tr><td style="min-width: -moz-min-content">A B</td><td></td></tr></table>
michael@0 39 <table border><tr><td style="min-width: -moz-fit-content">A B</td><td></td></tr></table>
michael@0 40 <table border><tr><td style="min-width: -moz-available">A B</td><td></td></tr></table>
michael@0 41
michael@0 42 <table border><tr><td style="width: 1px; min-width: -moz-max-content">A B</td><td></td></tr></table>
michael@0 43 <table border><tr><td style="width: 1px; min-width: -moz-min-content">A B</td><td></td></tr></table>
michael@0 44 <table border><tr><td style="width: 1px; min-width: -moz-fit-content">A B</td><td></td></tr></table>
michael@0 45 <table border><tr><td style="width: 1px; min-width: -moz-available">A B</td><td></td></tr></table>
michael@0 46
michael@0 47 </td>
michael@0 48 <td>
michael@0 49 <!-- max-width -->
michael@0 50
michael@0 51 <table border><tr><td style="max-width: -moz-max-content">A B</td><td></td></tr></table>
michael@0 52 <table border><tr><td style="max-width: -moz-min-content">A B</td><td></td></tr></table>
michael@0 53 <table border><tr><td style="max-width: -moz-fit-content">A B</td><td></td></tr></table>
michael@0 54 <table border><tr><td style="max-width: -moz-available">A B</td><td></td></tr></table>
michael@0 55
michael@0 56 <table border><tr><td style="width: 150px; max-width: -moz-max-content">A B</td><td></td></tr></table>
michael@0 57 <table border><tr><td style="width: 150px; max-width: -moz-min-content">A B</td><td></td></tr></table>
michael@0 58 <table border><tr><td style="width: 150px; max-width: -moz-fit-content">A B</td><td></td></tr></table>
michael@0 59 <table border><tr><td style="width: 150px; max-width: -moz-available">A B</td><td></td></tr></table>
michael@0 60
michael@0 61
michael@0 62 </td>
michael@0 63 </tr></table>
michael@0 64
michael@0 65
michael@0 66 </body>
michael@0 67 </html>

mercurial