2 <marquee direction=
"DOwN">The text should move down.
</marquee>
3 <marquee direction=
"uP">The text should move up.
</marquee>
4 <marquee direction=
"RiGHt">The text should move right.
</marquee>
5 <marquee direction=
"leFT">The text should move left.
</marquee>
6 <script src=
"../../resources/js-test.js"></script>
8 var marquees
= document
.querySelectorAll('marquee');
9 for (i
= 0; i
< marquees
.length
; ++i
) {
10 var marquee
= marquees
[i
];
11 var computedStyle
= getComputedStyle(marquee
);
12 switch (marquee
.getAttribute('direction').toLowerCase()) {
15 shouldBeEqualToString("computedStyle.whiteSpace", "normal");
20 shouldBeEqualToString("computedStyle.whiteSpace", "nowrap");