summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/other-formats/background-color-176.html
blob: e127d4603433ebecd5fdaab3b60baef5c586ecb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">

<html>

 <head>

 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">

  <title>CSS Test: background-color</title>

  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
  <link rel="author" title="Jukka 'Yucca' Korpela" href="http://www.cs.tut.fi/~jkorpela/personal.html">
  <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/">
  <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background-properties">
  <meta name="flags" content="HTMLonly">
  <meta name="assert" content="Background-color applied to a form should not affect a previous sibling block-level element when it does not have an optional closing tag.">

  <style type="text/css">
  form
  {
  background-color: orange;
  color: white;
  padding: 50px;
  }
  </style>

 </head>

 <body>

  <div>There should be 1 (and only 1) wide orange rectangle across the page</div>

  <p>

  <form action="">
   <div></div>
  </form>

 </body>
</html>