W3C home > Mailing lists > Public > public-css-testsuite@w3.org > March 2005

inherit test case

From: Alan Harder <Alan.Harder@Sun.COM>
Date: Sun, 13 Mar 2005 11:24:59 -0800
Message-Id: <200503131923.j2DJNW401280@moshpit.red.iplanet.com>
To: <public-css-testsuite@w3.org>

Here is a test case that exposes yet another deficiency of IE.
I grant all copyright,etc of this test to w3c if you wish to use it or
an improved version of it (if you need something more formal let me know).
    - Alan


  <title>CSS 2.1 Test Suite: Explicit Inheritance</title>
  <style type="text/css">
   .a { border: 0 solid lime; }
   .b { border-width: thin; border-style: inherit; border-color: inherit; }
   .c { padding: 10px 0; background-color: red; }
   .d { padding: inherit; background-color: lime; }
  <link title="6.2 Inheritance" href="http://www.w3.org/TR/CSS21/cascade.html#inheritance" rel="help">
  <link title="8.4 Padding properties" href="http://www.w3.org/TR/CSS21/box.html#padding-properties" rel="help">
  <link title="8.5 Border properties" href="http://www.w3.org/TR/CSS21/box.html#border-properties" rel="help">

  <p class="a"> This sentence should have no border, except for <span class="b">this part
   which has a green border</span> but not here. </p>

  <p> The green background for <span class="c"><span class="d">this part
   </span></span> should extend above and below, with no red area showing. </p>

Received on Tuesday, 15 March 2005 04:11:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 19:58:11 UTC