Invalidate node style after style property removed

This commit is contained in:
Paul Rouget 2016-01-19 06:54:36 +01:00
parent 6a38d55cea
commit 6d7dc0b905
6 changed files with 43 additions and 6 deletions

View file

@ -3948,6 +3948,18 @@
"url": "/_mozilla/css/quotes_simple_a.html"
}
],
"css/removeproperty.html": [
{
"path": "css/removeproperty.html",
"references": [
[
"/_mozilla/css/removeproperty_ref.html",
"=="
]
],
"url": "/_mozilla/css/removeproperty.html"
}
],
"css/restyle_hints_attr.html": [
{
"path": "css/restyle_hints_attr.html",
@ -10016,6 +10028,18 @@
"url": "/_mozilla/css/quotes_simple_a.html"
}
],
"css/removeproperty.html": [
{
"path": "css/removeproperty.html",
"references": [
[
"/_mozilla/css/removeproperty_ref.html",
"=="
]
],
"url": "/_mozilla/css/removeproperty.html"
}
],
"css/restyle_hints_attr.html": [
{
"path": "css/restyle_hints_attr.html",

View file

@ -0,0 +1,13 @@
<link rel=match href=removeproperty_ref.html>
<body>
<div style="width:10px;height:10px;background:red;border:2px solid blue;color:green;">test</div>
<script>
window.onload = function() {
var div = document.querySelector("div");
div.style.removeProperty("background");
div.style.color = "";
}
</script>
</body>

View file

@ -0,0 +1,2 @@
<div style="width:10px;height:10px;border:2px solid blue;">test</div>