Implement something like CSS value serialization. Fetch actual inline style declarations from owning elements.

This commit is contained in:
Josh Matthews 2014-09-19 13:06:19 -04:00
parent 2e14b653bf
commit 505e1855a3
8 changed files with 375 additions and 55 deletions

View file

@ -0,0 +1,7 @@
<div id="test" style="display: block; background-color: black; background-position: top left;"></div>
<script>
alert(document.getElementById('test').style.display);
alert(document.getElementById('test').style.background);
alert(document.getElementById('test').style.backgroundColor);
alert(document.getElementById('test').style.backgroundPosition);
</script>