browser-compat-data
browser-compat-data copied to clipboard
CSP script/style-src-* - Safari minimum version support?
What type of issue is this?
Missing compatibility data
What information was incorrect, unhelpful, or incomplete?
style-src-attr, style-src-elem, script-src-attr are shown as unsupported in all versions of Safari.
- https://caniuse.com/?search=style-src-attr
- https://caniuse.com/?search=style-src-elem
- https://caniuse.com/?search=script-src-attr
There is evidence to suggest that these became supported in Safari TP 134 back in October 2021. The links provided point to the CSP directives being supported although minimum Safari version is a question mark.
See also the issue #18911 linked below regarding style-src-elem support from Safari 16.1 onwards.
What browsers does this problem apply to, if applicable?
Safari
What did you expect to see?
For versions of Safari including the changes introduced in TP 134, I would expect the 3 CSP features to work.
Did you test this? If so, how?
I have limited access to a Mac. I was able to test this on Epiphany which has a recent version of Webkit (I think) and the 3 features appear to be supported. That said, not sure how the Webkit version number in the Epiphany UA string relates to the Safari version number.
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
See these issues for feature discussions:
- Safari TP134 release note: https://developer.apple.com/documentation/safari-technology-preview-release-notes/stp-release-134 ("Implemented CSP script-src-elem, style-src-elem, script-src-attr and style-src-attr directives")
- Trac changeset: https://trac.webkit.org/changeset/284254/webkit/
- https://github.com/mdn/browser-compat-data/issues/18911 that mentions style-src-elem was introduced in Safari 16.1
- Webkit bug report: https://bugs.webkit.org/show_bug.cgi?id=231751 showing as "RESOLVED FIXED"
Do you have anything more you want to share?
No response
MDN URL
No response
MDN metadata
No response