Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: LayoutTests/fast/css/csstext-of-content-string.html

Issue 16736004: Stylesheet rule.cssText of content property should be quoted when the value is string. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/css/csstext-of-content-string-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <script src="../js/resources/js-test-pre.js"></script>
5 <style id='style'>
6 #A::after { content: 'A'; }
7 #B::after { content: '\'B\''; }
8 #C::after { content: '\'C\''; }
9 #D::after { content: '\'D\'' url(http://example.com/) 'EFG'; }
10 </style>
11 </head>
12 <body>
13 <div id='A'></div>
14 <div id='B'></div>
15 <div id='C'></div>
16 <div id='D'></div>
17 <pre id='console'></pre>
18 </body>
19 <script>
20 description('Tests if a css text of content value is quoted when the value is st ring.');
21
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'; }");
27 </script>
28 <script src="../js/resources/js-test-post.js"></script>
29 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/csstext-of-content-string-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698