summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/table-cell-background-local-003.html
blob: e2662bec1fa75049c07cbc07c24449e37c4c56a7 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>

  <meta charset="UTF-8">

  <title>CSS Backgrounds and Borders Test: table cell background-image with local attachment</title>

  <!--

  Created: December 8th 2023

  Last modified: December 8th 2023

  -->

  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
  <link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#background-attachment">
  <link rel="help" href="https://www.w3.org/TR/css-overflow-3/#overflow-control">
  <link rel="match" href="reference/table-cell-background-local-003-ref.html">

  <style>
  td
    {
      height: 100px;
      padding: 0px;
      vertical-align: top;
      width: 100px;
    }

  td#middle-cell
    {
      background: url("support/500x500-red-with-green-center.png") local;
      overflow: auto;
    }

  div#outer
    {
      height: 0px;
      width: 0px;
    }

  div#inner
    {
      height: 300px;
      width: 300px;
    }
  </style>

 <body onload="document.getElementById('middle-cell').scrollTop = 200; document.getElementById('middle-cell').scrollLeft = 200;">

  <p>Test passes if there is a filled green square and <strong>no red</strong>.

  <table>

    <tr><td><td><td>

    <tr>
      <td>
      <td id="middle-cell">
        <div id="outer">
          <div id="inner"></div>
        </div>
      <td>

    <tr><td><td><td>

  </table>