Auto merge of #6741 - servo:fix-setpropertypriority, r=pcwalton

Fix CSSStyleDeclaration::setPropertyPriority and some refactoring

r? @Ms2ger

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6741)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-08-01 15:00:06 -06:00
commit c6b043582b
8 changed files with 197 additions and 116 deletions

View file

@ -75,6 +75,18 @@
"url": "/_mozilla/css/class-namespaces.html"
}
],
"css/setpropertypriority.html": [
{
"path": "css/setpropertypriority.html",
"references": [
[
"/_mozilla/css/setpropertypriority_ref.html",
"=="
]
],
"url": "/_mozilla/css/setpropertypriority.html"
}
],
"mozilla/canvas/drawimage_html_image_1.html": [
{
"path": "mozilla/canvas/drawimage_html_image_1.html",
@ -800,6 +812,18 @@
"url": "/_mozilla/css/class-namespaces.html"
}
],
"css/setpropertypriority.html": [
{
"path": "css/setpropertypriority.html",
"references": [
[
"/_mozilla/css/setpropertypriority_ref.html",
"=="
]
],
"url": "/_mozilla/css/setpropertypriority.html"
}
],
"mozilla/canvas/drawimage_html_image_1.html": [
{
"path": "mozilla/canvas/drawimage_html_image_1.html",

View file

@ -0,0 +1,9 @@
<link rel=match href=setpropertypriority_ref.html>
<body>
<p id="hello" style="color: green">This text should be green.</p>
<style>
#hello { color: red !important }
</style>
<script>
document.getElementById("hello").style.setPropertyPriority("color", "important");
</script>

View file

@ -0,0 +1 @@
<p style="color: green">This text should be green.