4 <title>Test inheritance through fieldsets and legends
</title>
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)
17 * { color: red; border:
0px hidden red; background: transparent }
18 .t { border-color: green }
20 { border-color: inherit; border-style: solid; border-width:
10px }
24 return document
.createElement(str
);
27 window
.onload = function() {
28 document
.getElementById("f").appendChild(make("div"));
29 document
.getElementById("l").appendChild(make("span"));
34 <fieldset class=
"t"><div></div></fieldset>
35 <fieldset><legend class=
"t"><span></span></legend></fieldset>
36 <fieldset class=
"t" id=
"f"></fieldset>
37 <fieldset><legend class=
"t" id=
"l"></legend></fieldset>