0b1fb9cda5
We can tell all our suported browsers have style.backgroundColor so we can avoid the detection and vendor prefix logic. R=alanknight@google.com Review URL: https://codereview.chromium.org//966803004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44973 260f80e4-7a28-3924-810f-c04153c831b5
26 lines
508 B
HTML
26 lines
508 B
HTML
<!--
|
|
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>
|