5 <script src=
"../../resources/js-test.js"></script>
8 <span id=
"testspan" style=
"font-family: 'Arial [ding dong]', 'Helvetica [Xft]', Courier">foo
</span>
11 description("This test checks that we don't strip trailing gunk in brackets from font families.");
13 var spanElement
= document
.getElementById('testspan');
15 var computedStyle
= window
.getComputedStyle(spanElement
);
16 shouldBe("spanElement.innerHTML", "'foo'");
17 shouldBe("computedStyle.getPropertyValue('font-family')", "\"'Arial [ding dong]', 'Helvetica [Xft]', Courier\"");
19 document
.body
.removeChild(spanElement
);