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

Unified Diff: tools/dom/scripts/cssProperties.html

Issue 966803004: Generate fast-path CssStyleDeclaration properties from browser info (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add fast path batch setter for known path Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/cssProperties.CSS21.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/cssProperties.html
diff --git a/tools/dom/scripts/cssProperties.html b/tools/dom/scripts/cssProperties.html
new file mode 100644
index 0000000000000000000000000000000000000000..a2d8bc4ed422b92822826f479c4c82788c375c76
--- /dev/null
+++ b/tools/dom/scripts/cssProperties.html
@@ -0,0 +1,25 @@
+<!--
+Run this file in a browser to get the CSSStyleDeclaration properties
+available in that browser
+-->
+<body>
+<script>
+function emit(text) {
+ var e = document.createElement('div');
+ e.innerHTML = text;
+ document.body.appendChild(e);
+}
+emit('# ' + navigator.userAgent);
+var s = document.body.style;
+var a = [];
+for (var p in s) {
+ if (typeof s[p] != 'string') continue;
+ a.push(p);
+}
+a.sort();
+emit('# ' + a.length + ' properties')
+for (var i = 0; i < a.length; i++) {
+ emit(a[i]);
+}
+</script>
+</body>
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/cssProperties.CSS21.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698