Closed Bug 1989925 Opened 3 months ago Closed 3 months ago

Use CSSStyleProperties in element.style and getComputedStyle

Categories

(Core :: DOM: CSS Object Model, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
145 Branch
Tracking Status
firefox145 --- fixed

People

(Reporter: saschanaz, Assigned: saschanaz)

References

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

No description provided.
Pushed by krosylight@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5158736df945 https://hg.mozilla.org/integration/autoland/rev/3403b3de279d Return CSSStyleProperties from getComputedStyle and .style r=emilio,webidl,firefox-style-system-reviewers,layout-reviewers
Keywords: dev-doc-needed
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch

The spec seems to also expect CSSStyleRule.style to return CSSStyleProperties - was this implemented too?

And do we know if Safari implemented this? (are there tests?)

Flags: needinfo?(krosylight)

(In reply to Hamish Willee from comment #4)

The spec seems to also expect CSSStyleRule.style to return CSSStyleProperties - was this implemented too?

That yes https://searchfox.org/firefox-main/rev/fd531836ca5e48e18a5afc171418bcbcb9d268e2/dom/webidl/CSSStyleRule.webidl#14

And do we know if Safari implemented this?

Yes https://searchfox.org/wubkat/search?q=CSSStylePropertie&path=.idl&case=true&regexp=false

(are there tests?)

WPT IDL harness tests automatically cover this whenever the spec IDL updates.

Flags: needinfo?(krosylight)

FF145 MDN docs work for this can be tracked in https://github.com/mdn/content/issues/41514
Essentially it was all done in FF144 (docs, compat info) so this is just a release note update.

Thanks for all the help on that @saschanaz!

QA Whiteboard: [qa-triage-done-c146/b145]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: