mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Fix #7268 - getComputedStyle should take Element
, not HTMLElement
This commit is contained in:
parent
70b9922eb0
commit
b7d25159d3
7 changed files with 40 additions and 13 deletions
|
@ -29089,7 +29089,14 @@
|
|||
]
|
||||
},
|
||||
"local_changes": {
|
||||
"deleted": [],
|
||||
"deleted": [
|
||||
"shadow-dom/shadow-trees/hosting-multiple-shadow-trees-002.html",
|
||||
"shadow-dom/shadow-trees/hosting-multiple-shadow-trees-006.html",
|
||||
"shadow-dom/shadow-trees/hosting-multiple-shadow-trees-004.html",
|
||||
"shadow-dom/shadow-trees/hosting-multiple-shadow-trees-003.html",
|
||||
"2dcontext/transformations/canvas_transformations_reset_001.htm",
|
||||
"shadow-dom/shadow-trees/hosting-multiple-shadow-trees-005.html"
|
||||
],
|
||||
"items": {},
|
||||
"reftest_nodes": {}
|
||||
},
|
||||
|
|
|
@ -485,6 +485,12 @@
|
|||
"url": "/_mozilla/mozilla/element_className.html"
|
||||
}
|
||||
],
|
||||
"mozilla/element_getcomputedstyle.html": [
|
||||
{
|
||||
"path": "mozilla/element_getcomputedstyle.html",
|
||||
"url": "/_mozilla/mozilla/element_getcomputedstyle.html"
|
||||
}
|
||||
],
|
||||
"mozilla/element_matches.html": [
|
||||
{
|
||||
"path": "mozilla/element_matches.html",
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
// Issue #7268 - getComputedStyle should work on non-HTML elements, too
|
||||
test(function() {
|
||||
var el = document.createElementNS("http://example.com", "a");
|
||||
document.body.appendChild(el);
|
||||
var style = window.getComputedStyle(el);
|
||||
|
||||
assert_equals(style.opacity, "1");
|
||||
}, "getComputedStyle should work on non-HTML elements");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue