Add a test for CSSStyleDeclaration.setPropertyPriority

This commit is contained in:
Simon Sapin 2015-07-29 17:32:10 +02:00
parent 1033886409
commit e2984349ed
3 changed files with 34 additions and 0 deletions

View file

@ -75,6 +75,18 @@
"url": "/_mozilla/css/class-namespaces.html" "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": [ "mozilla/canvas/drawimage_html_image_1.html": [
{ {
"path": "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" "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": [ "mozilla/canvas/drawimage_html_image_1.html": [
{ {
"path": "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.