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

Side by Side Diff: LayoutTests/fast/inspector-support/style.html

Issue 14619018: As discussed in blink-dev mailing list remove getPropertyShorthand and isImplicit from the Web expo… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 </script> 6 </script>
7 <style> 7 <style>
8 div { background: purple; margin: 1em; color: white; font: 24px 'Lucida Grande'; } 8 div { background: purple; margin: 1em; color: white; font: 24px 'Lucida Grande'; }
9 </style> 9 </style>
10 </head> 10 </head>
11 <body> 11 <body>
12 Note that background is buggy right now! 12 Note that background is buggy right now!
13 <div id="foo">Test</div> 13 <div id="foo">Test</div>
14 <script> 14 <script>
15 var ruleList = document.defaultView.getMatchedCSSRules(document.getElementById(' foo'), ''); 15 var ruleList = document.defaultView.getMatchedCSSRules(document.getElementById(' foo'), '');
16 var decl = ruleList[0].style; 16 var decl = ruleList[0].style;
17 for (var i = 0; i < decl.length; i++) { 17 for (var i = 0; i < decl.length; i++) {
18 var shorthand = decl.getPropertyShorthand(decl[i]); 18 document.write(decl[i] + ": " + decl.getPropertyValue(decl[i]));
19 document.write(decl[i] + ": " + decl.getPropertyValue(decl[i])); 19 document.write( "<br>");
20 if (shorthand) {
21 document.write(" (original property was " + shorthand
22 + (decl.isPropertyImplicit(decl[i]) ? " and property was implicitly s et.)" : ")"));
23 }
24 document.write( "<br>");
25 } 20 }
26 </script> 21 </script>
27 </body> 22 </body>
28 </html> 23 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/overflow-property-expected.txt ('k') | LayoutTests/fast/inspector-support/style-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698