mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement something like CSS value serialization. Fetch actual inline style declarations from owning elements.
This commit is contained in:
parent
2e14b653bf
commit
505e1855a3
8 changed files with 375 additions and 55 deletions
7
tests/html/test_style.html
Normal file
7
tests/html/test_style.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue