mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Improve color serialization by retaining author-specified keywords.
This commit is contained in:
parent
6f8a9b6d46
commit
755ebd6528
4 changed files with 45 additions and 10 deletions
|
@ -1,10 +1,10 @@
|
|||
<div id="test" style="display: block; background-color: black; background-position: top left;">test text!</div>
|
||||
<div id="test" style="display: block; background-color: black; background-position: top left; font-style: italic">test text!</div>
|
||||
<script>
|
||||
var id = document.getElementById('test');
|
||||
/*alert(id.style.display);
|
||||
id.style.display = 'none';
|
||||
alert(id.style.display);*/
|
||||
|
||||
alert(id.style.fontStyle + ' ' + id.style['font-style']);
|
||||
id.style.background = "black";
|
||||
alert(document.getElementById('test').style.background);
|
||||
alert(document.getElementById('test').style.backgroundColor);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue