diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /layout/reftests/text-overflow/bidi-simple-scrolled.html | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/text-overflow/bidi-simple-scrolled.html')
-rw-r--r-- | layout/reftests/text-overflow/bidi-simple-scrolled.html | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/layout/reftests/text-overflow/bidi-simple-scrolled.html b/layout/reftests/text-overflow/bidi-simple-scrolled.html new file mode 100644 index 0000000000..489535ab83 --- /dev/null +++ b/layout/reftests/text-overflow/bidi-simple-scrolled.html @@ -0,0 +1,98 @@ +<!DOCTYPE HTML> +<!-- + Any copyright is dedicated to the Public Domain. + http://creativecommons.org/licenses/publicdomain/ + + Test: Simple bidi cases, scrolled a bit from the start position +--> +<html class="reftest-wait"><head> +<title>text-overflow: simple mixed-bidi cases, scrolled a bit from the start position</title> +<style type="text/css"> +@font-face { + font-family: DejaVuSansMono; + src: url(../fonts/DejaVuSansMono.woff); +} +html,body { + color:black; background-color:white; font-size:16px; padding:0; margin:0; font-family:DejaVuSansMono; +} +.test { + overflow:auto; + text-overflow:ellipsis ellipsis; + white-space:nowrap; + width: 4.4em; + margin-bottom:1em; + position:relative; + line-height:2em; +} + +.hidden { + overflow:hidden; + width: 4.7em; +} + +.rlo { + unicode-bidi: bidi-override; direction: rtl; +} +.lro { + unicode-bidi: bidi-override; direction: ltr; +} +.rtl { + direction:rtl; +} +.ltr { + direction:ltr; +} + +</style> +<script> +function scrolldivs() { + var divs = document.getElementsByTagName('div'); + for (i = 0; i < divs.length; ++i) { + if (window.getComputedStyle(divs[i]).direction == 'ltr') + divs[i].scrollLeft = 8; + else + divs[i].scrollLeft = -8; + } + document.documentElement.removeAttribute('class'); +} +</script> + +</head><body onload="scrolldivs()"> + +<!-- LTR block --> + +<div class="test ltr">AxxxB <span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span></div> + +<div class="test ltr"><span class="rlo">Hell World</span>AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span></div> + +<div class="test ltr"><span class="rlo">Hell World</span></div> + + +<!-- RTL block --> +<div class="test rtl">AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">Hello orld</span></div> + +<div class="test rtl"><span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">Hello orld</span></div> + +<div class="test rtl"><span class="rlo">Hello orld</span></div> + + +<div class="test rtl hidden">AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span></div> + +<div class="test rtl hidden"><span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span></div> + +<div class="test rtl hidden"><span class="rlo">HelloWorld</span></div> + +<!-- LTR block --> + + +<div class="test ltr hidden">AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span></div> + +<div class="test ltr hidden"><span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span>AxxxxB<span class="rlo">HelloWorld</span></div> + +<div class="test ltr hidden"><span class="rlo">HelloWorld</span></div> + +<span style="position:absolute; top:0; left:6em; height:6em; overflow:hidden;"> +<div class="test rtl"><br><br><span class="rlo">HelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorld</span></div> +</span> + +</body></html> |