Skip to content

Conversation

hamishwillee
Copy link
Contributor

@hamishwillee hamishwillee commented Sep 23, 2025

FF144 added support for CSSStyleProperties in https://bugzilla.mozilla.org/show_bug.cgi?id=1919582 , as updated in #27902

However as explained in https://bugzilla.mozilla.org/show_bug.cgi?id=1919582#c30 the CSSStyleProperties was renamed from a preexisting CSS2Properties. This adds the alternative name to the feature for Firefox. Note that the developer indicates this was from version 2 (checked) but might have been version 1.

FF145 added support for returning this from .style in elements (HTML, SVG, MathML) and also in getComputedStyle() in https://bugzilla.mozilla.org/show_bug.cgi?id=1989925. I have set these to have a subfeature indicating the new return type.

It is not clear if FF returns it from CSSStyleRule.style - I am asking in https://bugzilla.mozilla.org/show_bug.cgi?id=1989925#c4

Chrome hasn't added support for CSSStyleProperties as far as I can tell.

Safari has been marked as supporting CSSStyleProperties in 26 already, but the return methods were not marked. I have set all of them to working in that version though I have not tested it (they should be).

In addition, the spec changed to move the cssFloat attribute from CSSStyleDeclaration to CSSStyleProperties. This won't affect FF which never implemented that, but it does affect Safari. So I've marked it as removed and also now non-standard and deprecated.

Related docs work can be tracked in mdn/content#41133

@github-actions github-actions bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:s [PR only] 7-24 LoC changed labels Sep 23, 2025
Copy link
Contributor

github-actions bot commented Sep 23, 2025

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@github-actions github-actions bot added size:l [PR only] 101-1000 LoC changed and removed size:s [PR only] 7-24 LoC changed labels Sep 26, 2025
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking if this should be true in https://bugzilla.mozilla.org/show_bug.cgi?id=1989925#c4 - but assuming not.

"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": "26"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an assumption - but it is a reasonable assumption.

@hamishwillee hamishwillee marked this pull request as ready for review September 26, 2025 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:l [PR only] 101-1000 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant