Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Test inheritance through fieldsets and legends</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 <fieldset class="t"><div></div></fieldset>
25 <fieldset><legend class="t"><span></span></legend></fieldset>
26 <fieldset class="t"><div></div></fieldset>
27 <fieldset><legend class="t"><span></span></legend></fieldset>
28 </body>
29 </html>