layout/reftests/bugs/323656-2-ref.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

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 fieldsets and legends</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 <fieldset class="t"><div></div></fieldset>
michael@0 25 <fieldset><legend class="t"><span></span></legend></fieldset>
michael@0 26 <fieldset class="t"><div></div></fieldset>
michael@0 27 <fieldset><legend class="t"><span></span></legend></fieldset>
michael@0 28 </body>
michael@0 29 </html>

mercurial