File: background-size-document-root-vrl-004.html

package info (click to toggle)
thunderbird 1%3A78.8.0-1~deb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,910,720 kB
  • sloc: cpp: 5,890,568; javascript: 4,416,354; ansic: 3,051,657; python: 917,001; asm: 304,197; xml: 206,624; sh: 109,232; java: 108,679; makefile: 22,984; perl: 15,867; yacc: 4,565; objc: 3,026; pascal: 1,787; lex: 1,720; ada: 1,681; cs: 879; exp: 505; awk: 485; sql: 452; php: 436; lisp: 432; ruby: 99; sed: 69; csh: 45
file content (51 lines) | stat: -rw-r--r-- 1,840 bytes parent folder | download | duplicates (34)
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
<!DOCTYPE html>

<html>

 <head>

  <meta charset="UTF-8">

  <title>CSS Writing Modes Test: 'background-size: 100%' filling padding-box of document root element</title>

  <link rel="author" title="Koji Ishii" href="mailto:kojiishi@gmail.com">
  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-05-01 -->
  <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#physical-only" title="7.6 Purely Physical Mappings">
  <link rel="match" href="background-size-document-root-vrl-002-ref.xht">

  <meta name="flags" content="image">
  <meta name="assert" content="Test checks that 'background-size: 100% 100%' applied for the html root element will make the background-image fill the padding-box of the document box. Since 'background-color' is 'transparent' and since 'background-repeat' is set to 'no-repeat', then only the padding-box of the document root box should be painted green and such padding-box should start at top-right corner of canvas because 'writing-mode' is set to 'vertical-rl'.">

  <style>
  img
    {
      margin-left: 100px;
    }

  iframe
    {
      border: transparent 0px none;
      height: 100px;
      vertical-align: top;
      width: 200px;
    }

  img#reference-overlapped-red
    {
      bottom: 100px;
      position: relative;
      z-index: -1;
    }
  </style>
 </head>

 <body>

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

  <div><iframe src="support/embedded-doc-for-background-size-root-vrl-004.html">This test requires an user agent with capability to embed an HTML document thanks to the HTML &lt;iframe&gt; element.</iframe></div>

  <div><img id="reference-overlapped-red" src="support/100x100-red.png" alt="Image download support must be enabled"></div>

 </body>
</html>