File: clearance-calculations-vrl-008.xht

package info (click to toggle)
firefox 145.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,653,344 kB
  • sloc: cpp: 7,594,932; javascript: 6,459,612; ansic: 3,752,905; python: 1,403,433; xml: 629,811; asm: 438,677; java: 186,421; sh: 67,287; makefile: 19,169; objc: 13,086; perl: 12,982; yacc: 4,583; cs: 3,846; pascal: 3,448; lex: 1,720; ruby: 1,003; exp: 762; php: 436; lisp: 258; awk: 247; sql: 66; sed: 54; csh: 10
file content (76 lines) | stat: -rw-r--r-- 2,200 bytes parent folder | download | duplicates (33)
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
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

 <head>

  <title>CSS Writing Modes Test: clearance calculations</title>

  <!--
  This test is the verticalized version of
  http://test.csswg.org/suites/css2.1/latest/html4/clear-clearance-calculation-004.htm
  -->

  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
  <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
  <link rel="match" href="clearance-calculations-vrl-008-ref.xht" />

  <meta content="image" name="flags" />
  <meta content="In this test, the right border edge of div#clearing-left must be on the left side of div#floated-left, i.e., 50px further on its left-hand side. That means that the margin-left of div#preceding-sibling must not collapse with the right margin of the div#clearing-left and clearance must be added such that clearance + margin-right of div#clearing-left = 50px, i.e., clearance = 50px - margin-right of div#clearing-left; therefore clearance is equal to 50px - 75px = - 25px." name="assert" />

  <style type="text/css"><![CDATA[
  html
    {
      height: 116px;
      writing-mode: vertical-rl;
    }

  div#preceding-sibling
    {
      margin-left: 25px;
      width: 25px;
    }

  div#floated-left
    {
      float: left;
      width: 50px;
    }

  div#clearing-left
    {
      background-color: green;
      clear: left;
      margin-left: 8px;
      margin-right: 75px;
      width: 100px;
    }

  div#reference-overlapped-red
    {
      background-color: red;
      height: 100px;
      position: absolute;
      right: 108px;
      top: 8px;
      width: 100px;
      z-index: -1;
    }
  ]]></style>

 </head>

 <body>

  <div id="preceding-sibling"></div>

  <div id="floated-left"></div>

  <div id="clearing-left"></div>

  <div><img src="support/pass-cdts-clearance-calculations.png" width="474" height="17" alt="Image download support must be enabled" /></div>

  <div id="reference-overlapped-red"></div>

 </body>
</html>