mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add a test for CSSStyleDeclaration.setPropertyPriority
This commit is contained in:
parent
1033886409
commit
e2984349ed
3 changed files with 34 additions and 0 deletions
|
@ -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",
|
||||
|
|
9
tests/wpt/mozilla/tests/css/setpropertypriority.html
Normal file
9
tests/wpt/mozilla/tests/css/setpropertypriority.html
Normal 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>
|
1
tests/wpt/mozilla/tests/css/setpropertypriority_ref.html
Normal file
1
tests/wpt/mozilla/tests/css/setpropertypriority_ref.html
Normal file
|
@ -0,0 +1 @@
|
|||
<p style="color: green">This text should be green.
|
Loading…
Add table
Add a link
Reference in a new issue