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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bugs/323656-6-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +  <head>
     1.7 +    <title>Test inheritance into captions</title>
     1.8 +    <style>
     1.9 +      /**
    1.10 +       * The idea is that "color" inherits by default while "border-color" does
    1.11 +       * not.  So if the former is red and the latter is green on a parent, and
    1.12 +       * the child's border-color is set to "inherit", it'll be green only if
    1.13 +       * the child is inheriting from the parent.  If not, it'll either be
    1.14 +       * whatever the border-color is on what it's inheriting from, which will
    1.15 +       * be red if what it's inheriting from has the default (currentColor)
    1.16 +       * border-color).
    1.17 +       */
    1.18 +      
    1.19 +      /* 't' for "test" */
    1.20 +      * { color: red; border: 0px hidden red; background: transparent }
    1.21 +      .t, .t2 { border-color: green }
    1.22 +      .t > :first-child
    1.23 +        { border-color: green; border-style: solid; border-width: 10px }
    1.24 +      .t2 > :first-child
    1.25 +        { border-style: solid; border-width: 10px }
    1.26 +      .t2 > .test 
    1.27 +        { border-color: green }
    1.28 +    </style>
    1.29 +  </head>
    1.30 +  <body>
    1.31 +    <table class="t"><caption></caption></table>
    1.32 +
    1.33 +    <table class="t2 d2"><caption class="test"></caption></table>
    1.34 +
    1.35 +    <table class="t d"><caption></caption></table>
    1.36 +    <table class="t d"><caption></caption></table>
    1.37 +    <table class="t d"><caption></caption></table>
    1.38 +
    1.39 +    <table class="t2 d d2"><caption class="test"></caption></table>
    1.40 +    <table class="t2 d d2"><caption class="test"></caption></table>
    1.41 +    <table class="t2 d d2"><caption class="test"></caption></table>
    1.42 +    </body>
    1.43 +</html>

mercurial