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