-
Notifications
You must be signed in to change notification settings - Fork 84
Description
Could we consider decoupling <style>
and style="..."
usage in style-src 'unsafe-inline'
CSP setup?
The rationale is that as far as I am aware style="..."
has no modern security issues in CSP supporting browsers; where as given selector support <style>
could be manipulated to check for data on the page and load images.
For example there are various teams wanting to implement CSS parsers to get around the style="..."
support issue, where as <style>
seems mostly easy to move to a secure setup. So for example Ember team is willing to take the property in and set it as JavaScript attributes after parsing to mitigate the warning.
There could also be room to discuss if granularity for SVG <style>
tags could be separate too I guess?
@mozfreddyb mentioned that he would like to see scoped styles granularity also which probably makes sense too.
/cc @mikewest