Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Test inheritance through various table anonymous boxes</title>
5 <style>
6 /**
7 * The idea is that "color" inherits by default while "border-color" does
8 * not. So if the former is red and the latter is green on a parent, and
9 * the child's border-color is set to "inherit", it'll be green only if
10 * the child is inheriting from the parent. If not, it'll either be
11 * whatever the border-color is on what it's inheriting from, which will
12 * be red if what it's inheriting from has the default (currentColor)
13 * border-color).
14 */
16 /* 't' for "test" */
17 * { color: green; border: 0px hidden green; background: transparent }
18 .t { border-color: green }
19 .t > :first-child
20 { border-color: green; border-style: solid; border-width: 10px }
21 </style>
22 </head>
23 <body>
24 <table><tr><td class="t"><div></div></td></tr></table>
25 <div style="display: table" class="t"><div></div></div>
26 <div style="display: table-row-group" class="t"><div></div></div>
27 <div style="display: table-row" class="t"><div></div></div>
28 <div style="display: table-cell" class="t"><div></div></div>
29 <div><span><div style="display: table" class="t"><div></div></div></span></div>
30 <div><span><div style="display: table-row-group" class="t"><div></div></div></span></div>
31 <div><span><div style="display: table-row" class="t"><div></div></div></span></div>
32 <div><span><div style="display: table-cell" class="t"><div></div></div></span></div>
34 <table><tr><td class="t"><div></div></td></tr></table>
35 <div style="display: table" class="t"><div></div></div>
36 <div style="display: table-row-group" class="t"><div></div></div>
37 <div style="display: table-row" class="t"><div></div></div>
38 <div style="display: table-cell" class="t"><div></div></div>
39 <div><span><div style="display: table" class="t"><div></div></div></span></div>
40 <div><span><div style="display: table-row-group" class="t"><div></div></div></span></div>
41 <div><span><div style="display: table-row" class="t"><div></div></div></span></div>
42 <div><span><div style="display: table-cell" class="t"><div></div></div></span></div>
43 </body>
44 </html>