mirror of
https://github.com/servo/servo.git
synced 2025-08-28 16:48:22 +01:00
script: Refactor CSSStyleDeclaration and fix some bugs in the way.
This commit is contained in:
parent
b5c94bad37
commit
dd90366775
4 changed files with 166 additions and 139 deletions
|
@ -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",
|
||||
|
|
13
tests/wpt/mozilla/tests/mozilla/style_remove_prop.html
Normal file
13
tests/wpt/mozilla/tests/mozilla/style_remove_prop.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue