Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / font-family-trailing-bracket-gunk.html
blob0c43da32eb3c19ca3e4fa4939f6ef984956f20b1
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <span id="testspan" style="font-family: 'Arial [ding dong]', 'Helvetica [Xft]', Courier">foo</span>
9 <script>
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);
21 </script>
22 </body>
23 </html>