You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
getComputedStyle should take Element, not HTMLElement. #7268
A-content/cssInteracting with CSS from web content (parsing, serializing, introspection)C-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.I-wrongAn incorrect behaviour is observed.
components/script/dom/webidls/Window.webidl (use the commented-out line, keep the [NewObject] annotation)
components/script/dom/window.rs (update the GetComputedStyle implementation)
components/script/dom/cssstyledeclaration.rs (change the owner field to JS<Element> and fallout, including removing PrivateCSSStyleDeclarationHelpers)
I suspect there's no test yet. You'll have to write one that creates a non-HTML element (such as with document.createElementNS("http://www.example.com/", "a")), pass it to window.getComputedStyle() and check that it works. Add the file under tests/wpt/mozilla/tests/css/, and then run ./mach test-wpt _mozilla/css --manifest-update to update the manifest. There's documentation at http://testthewebforward.org/docs/ to help with writing the test.
A-content/cssInteracting with CSS from web content (parsing, serializing, introspection)C-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.I-wrongAn incorrect behaviour is observed.
Activity
Fix servo#7268 - getComputedStyle should take `Element`, not `HTMLEle…
frewsxcv commentedon Aug 19, 2015
Marking as assigned. @mdibaiee is working on this
Fix servo#7268 - getComputedStyle should take `Element`, not `HTMLEle…
Fix servo#7268 - getComputedStyle should take `Element`, not `HTMLEle…
Auto merge of #7288 - mdibaiee:computedstyle-element, r=Ms2ger
Auto merge of #7288 - mdibaiee:computedstyle-element, r=Ms2ger