Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
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: red; border: 0px hidden red; background: transparent }
18 .t { border-color: green }
19 .t > :first-child
20 { border-color: inherit; border-style: solid; border-width: 10px }
21 </style>
22 <script>
23 function makeDiv() {
24 return document.createElement("div");
25 }
27 window.onload = function() {
28 var lst = document.getElementsByClassName("d");
29 for (var i = 0; i < lst.length; ++i) {
30 lst[i].appendChild(makeDiv());
31 }
32 }
33 </script>
34 </head>
35 <body>
36 <table><tr><td class="t"><div></div></td></tr></table>
37 <div style="display: table" class="t"><div></div></div>
38 <div style="display: table-row-group" class="t"><div></div></div>
39 <div style="display: table-row" class="t"><div></div></div>
40 <div style="display: table-cell" class="t"><div></div></div>
41 <div><span><div style="display: table" class="t"><div></div></div></span></div>
42 <div><span><div style="display: table-row-group" class="t"><div></div></div></span></div>
43 <div><span><div style="display: table-row" class="t"><div></div></div></span></div>
44 <div><span><div style="display: table-cell" class="t"><div></div></div></span></div>
46 <table><tr><td class="t d"></td></tr></table>
47 <div style="display: table" class="t d"></div>
48 <div style="display: table-row-group" class="t d"></div>
49 <div style="display: table-row" class="t d"></div>
50 <div style="display: table-cell" class="t d"></div>
51 <div><span><div style="display: table" class="t d"></div></span></div>
52 <div><span><div style="display: table-row-group" class="t d"></div></span></div>
53 <div><span><div style="display: table-row" class="t d"></div></span></div>
54 <div><span><div style="display: table-cell" class="t d"></div></span></div>
55 </body>
56 </html>