File: single-value-ref.html

package info (click to toggle)
thunderbird 1%3A115.16.0esr-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,476,252 kB
  • sloc: cpp: 6,972,150; javascript: 5,209,211; ansic: 3,507,222; python: 1,137,609; asm: 432,531; xml: 205,149; java: 175,761; sh: 116,485; makefile: 22,152; perl: 13,971; objc: 12,561; yacc: 4,583; pascal: 2,840; lex: 1,720; ruby: 1,075; exp: 762; sql: 666; awk: 580; php: 436; lisp: 430; sed: 70; csh: 10
file content (106 lines) | stat: -rw-r--r-- 4,856 bytes parent folder | download | duplicates (29)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE HTML>
<!--
    Any copyright is dedicated to the Public Domain.
    http://creativecommons.org/licenses/publicdomain/

    Test: text-overflow: <single value>, scrolled and non-scrolled tests, (bug 684266)
-->
<html class="reftest-wait"><head>
<title>text-overflow: &lt;single value&gt;, scrolled and non-scrolled tests, (bug 684266)</title>
<style type="text/css">
@font-face {
  font-family: DejaVuSansMono;
  src: url(../fonts/DejaVuSansMono.woff),url(DejaVuSansMono.woff);
}
html,body {
    color:black; background-color:white; font-size:16px; padding:0; margin:0; font-family:DejaVuSansMono;
}

body {padding:10px 40px;}

div {
  width:100px;
  white-space:nowrap;
}
.hidden {overflow:hidden}
.auto {overflow:auto}
.autolong {overflow:auto; width:100%;}
.scroll {overflow:scroll}

.ltr { direction:ltr; unicode-bidi: bidi-override; }
.rtl { direction:rtl; unicode-bidi: bidi-override; }

.ltr.p { text-indent: -5px; padding-left: 40px; } /* overflow into padding, but not outside the padding edge */
.rtl.p { text-indent: -5px; padding-right: 40px; } /* overflow into padding, but not outside the padding edge */

.s { text-indent: -5px; } /* overflow start edge outside the padding edge */

div.ltr {
  text-overflow: clip ellipsis;
}
div.rtl {
  text-overflow: ellipsis clip;
}

</style>

<script>
function scrolldivs() {
 var divs = document.getElementsByTagName('div');
  for (i = 0; i < divs.length; ++i) {
    var elm = divs[i];
    if (elm.hasAttribute('scroll')) {
      if (window.getComputedStyle(elm).direction == 'ltr')
        elm.scrollLeft = 8;
      else
        elm.scrollLeft = -8;
    }
  }
  document.documentElement.removeAttribute('class');
}
window.addEventListener("MozReftestInvalidate", scrolldivs);
</script>
</head>
<body>

    <div class="ltr start p hidden">A long line that does not break (overflow:hidden)</div>
    <div class="ltr start p auto">A long line that does not break (overflow:auto)</div>
    <div class="ltr start p autolong">A long line that does not break (overflow:auto)</div>
    <div class="ltr start p scroll">A long line that does not break (overflow:scroll)</div>
    <div class="ltr start s hidden">A long line that does not break (overflow:hidden)</div>
    <div class="ltr start s auto">A long line that does not break (overflow:auto)</div>
    <div class="ltr start s autolong">A long line that does not break (overflow:auto)</div>
    <div class="ltr start s scroll">A long line that does not break (overflow:scroll)</div>

    <div scroll class="ltr start p hidden">A long line that does not break (overflow:hidden)</div>
    <div scroll class="ltr start p auto">A long line that does not break (overflow:auto)</div>
    <div scroll class="ltr start p autolong">A long line that does not break (overflow:auto)</div>
    <div scroll class="ltr start p scroll">A long line that does not break (overflow:scroll)</div>
    <div scroll class="ltr start s hidden">A long line that does not break (overflow:hidden)</div>
    <div scroll class="ltr start s auto">A long line that does not break (overflow:auto)</div>
    <div scroll class="ltr start s autolong">A long line that does not break (overflow:auto)</div>
    <div scroll class="ltr start s scroll">A long line that does not break (overflow:scroll)</div>

<div class="rtl" style="float:right">
    <div class="rtl start p hidden">A long line that does not break (overflow:hidden)</div>
    <div class="rtl start p auto">A long line that does not break (overflow:auto)</div>
    <div class="rtl start p autolong">A long line that does not break (overflow:auto)</div>
    <div class="rtl start p scroll">A long line that does not break (overflow:scroll)</div>
    <div class="rtl start s hidden">A long line that does not break (overflow:hidden)</div>
    <div class="rtl start s auto">A long line that does not break (overflow:auto)</div>
    <div class="rtl start s autolong">A long line that does not break (overflow:auto)</div>
    <div class="rtl start s scroll">A long line that does not break (overflow:scroll)</div>

    <div scroll class="rtl start p hidden">A long line that does not break (overflow:hidden)</div>
    <div scroll class="rtl start p auto">A long line that does not break (overflow:auto)</div>
    <div scroll class="rtl start p autolong">A long line that does not break (overflow:auto)</div>
    <div scroll class="rtl start p scroll">A long line that does not break (overflow:scroll)</div>
    <div scroll class="rtl start s hidden">A long line that does not break (overflow:hidden)</div>
    <div scroll class="rtl start s auto">A long line that does not break (overflow:auto)</div>
    <div scroll class="rtl start s autolong">A long line that does not break (overflow:auto)</div>
    <div scroll class="rtl start s scroll">A long line that does not break (overflow:scroll)</div>
</div>


</body>
</hml>