summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/contain-size-056.html
blob: e8c140adedfb0133ee36433b935e9a064c55810d (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
<!DOCTYPE html>

  <meta charset="UTF-8">

  <title>CSS Containment Test: 'contain: size' applies to caption element</title>

  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
  <link rel="help" href="https://www.w3.org/TR/css-contain-1/#containment-size">
  <link rel="match" href="reference/contain-size-056-ref.html">


  <style>
  table
    {
      width: 400px;
    }

  caption
    {
      border: orange solid 3px;
      color: blue;
      contain: size;
      font-size: 32px;
    }
  </style>

  <p>Test passes if the words "Table caption" are below a thick orange line. Test fails if, instead of a thick orange line, there is an orange rectangle with the words "Table caption" in it.

  <table>
    <caption>Table caption</caption>
  </table>