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 into captions</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: red; border: 0px hidden red; background: transparent } |
michael@0 | 18 | .t, .t2 { border-color: green } |
michael@0 | 19 | .t > :first-child |
michael@0 | 20 | { border-color: green; border-style: solid; border-width: 10px } |
michael@0 | 21 | .t2 > :first-child |
michael@0 | 22 | { border-style: solid; border-width: 10px } |
michael@0 | 23 | .t2 > .test |
michael@0 | 24 | { border-color: green } |
michael@0 | 25 | </style> |
michael@0 | 26 | </head> |
michael@0 | 27 | <body> |
michael@0 | 28 | <table class="t"><caption></caption></table> |
michael@0 | 29 | |
michael@0 | 30 | <table class="t2 d2"><caption class="test"></caption></table> |
michael@0 | 31 | |
michael@0 | 32 | <table class="t d"><caption></caption></table> |
michael@0 | 33 | <table class="t d"><caption></caption></table> |
michael@0 | 34 | <table class="t d"><caption></caption></table> |
michael@0 | 35 | |
michael@0 | 36 | <table class="t2 d d2"><caption class="test"></caption></table> |
michael@0 | 37 | <table class="t2 d d2"><caption class="test"></caption></table> |
michael@0 | 38 | <table class="t2 d d2"><caption class="test"></caption></table> |
michael@0 | 39 | </body> |
michael@0 | 40 | </html> |