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).
Enjoy,
    - Alan


test-inh-explicit.htm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
 <head>
  <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; }
  </style>
  <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">
 </head>
 <body>

  <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>

 </body>
</html>
Received on Tuesday, 15 March 2005 04:11:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 September 2010 17:51:54 GMT