Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalidate node style after style property removed #9378

Merged
merged 1 commit into from Jan 27, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -329,6 +329,10 @@ impl CSSStyleDeclarationMethods for CSSStyleDeclaration {
None => elem.remove_inline_style_property(&property),
}

let document = document_from_node(elem);
let node = elem.upcast();
document.content_changed(node, NodeDamage::NodeStyleDamaged);

// Step 6
Ok(value)
}

This file was deleted.

This file was deleted.

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

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.