4 <script src=
"../../resources/js-test.js"></script>
6 #A::after { content: 'A'; }
7 #B::after { content: '\'B\''; }
8 #C::after { content: '\'C
\b\''; }
9 #D::after { content: '\'D\'' url(http://example.com/) 'EFG'; }
17 <pre id='console'
></pre>
20 description('Tests if a css text of content value is quoted when the value is string.');
22 var style
= document
.getElementById('style');
23 shouldBeEqualToString("style.sheet.cssRules[0].cssText", "#A::after { content: \"A\"; }");
24 shouldBeEqualToString("style.sheet.cssRules[1].cssText", "#B::after { content: \"'B'\"; }");
25 shouldBeEqualToString("style.sheet.cssRules[2].cssText", "#C::after { content: \"'C\\8 '\"; }");
26 shouldBeEqualToString("style.sheet.cssRules[3].cssText", "#D::after { content: \"'D'\" url(http://example.com/) \"EFG\"; }");