script: Refactor CSSStyleDeclaration and fix some bugs in the way.

This commit is contained in:
Emilio Cobos Álvarez 2017-01-27 01:21:35 +01:00
parent b5c94bad37
commit dd90366775
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 166 additions and 139 deletions

View file

@ -15284,6 +15284,12 @@
"url": "/_mozilla/mozilla/style_no_trailing_space.html"
}
],
"mozilla/style_remove_prop.html": [
{
"path": "mozilla/style_remove_prop.html",
"url": "/_mozilla/mozilla/style_remove_prop.html"
}
],
"mozilla/textcontent.html": [
{
"path": "mozilla/textcontent.html",

View file

@ -0,0 +1,13 @@
<!doctype html>
<meta charset="utf-8">
<title>Removing a property from the style object updates the attributeRemove u</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div style="color: red"></div>
<script>
test(function() {
var div = document.querySelector('div');
div.style.color = "";
assert_equals(div.getAttribute('style'), "");
}, "Removing a property from the style object updates the attribute");
</script>