Primary eng (and PM) emails
Summary
Document#selectedStylesheetSet/preferredStylesheetSet will be removed with no deprecation period. The tracking bug for this change is https://crbug.com/690609.
Motivation
Document#selectedStylesheetSet/preferredStylesheetSet are non-standard IDL attributes that are only implemented by Chrome and WebKit. The standard versions of these attributes (selectedStyleSheetSet/preferredStyleSheetSet) are only implemented in Firefox, and were removed from the spec in 2016.
Interoperability and Compatibility Risk
UseCounter data for each attribute is relatively low, and per https://crbug.com/690609#c27 and https://crbug.com/690609#c28 the number of sites referencing these attributes appears to be in the single digits. Furthermore, none of the sites found appear to even use the attributes, so no sites should be impacted by this change.
Edge: Not supported
Firefox: Not supported (considering removing the previously-standard attributes in https://bugzilla.mozilla.org/show_bug.cgi?id=1260720)
Safari: Supported, unclear feelings on removal
Alternative implementation suggestion for web developers
Document#styleSheets provides some of the same functionality, but will not cover all use cases of selectedStylesheetSet/preferredStylesheetSet.
https://lists.w3.org/Archives/Public/www-style/2013Aug/0640.html details reasoning for removing the standard attributes from the spec, noting that these features do not appear to be popular.
Usage information from UseCounter
DocumentGetPreferredStylesheetSet (~0.16%) DocumentGetSelectedStylesheetSet (~0.16%) DocumentSetSelectedStylesheetSet (~0%)
Entry on the feature dashboard
https://www.chromestatus.com/feature/6452340664041472
Requesting approval to remove too?
Yes, requesting approval to remove immediately.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAARdPYep25pB8PBkUDjkW%3DxT%2BJcQmHN-qptPVS5Qb3G26RmU%3Dg%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGH7WqHxn4gmzNsJfULwd1dRtyTX%3DjkHK1baxMZeQVPEEr3M%2Bg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAARdPYc_YV0gB-AGSD1UcSqyL_UwPeP%3D0VGE9G5epm18E6V8Ww%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKXZydcj7YEs8xzPHpS1AbxGZwL6YhtLN4BBaotdn8h%3DB_TfXQ%40mail.gmail.com.
Does that mean it won't be possible to select alternate stylesheets in Chrome anymore?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAARdPYf3ahRPCYMv_sJeu1reSLKd6M6B%2BUOb%2B_iK1h3%3DCoBX0g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOqqYVFayjrTeTFWrAmzzx8tmRHjtP1nsMj5h3fRK7xh_e9dCg%40mail.gmail.com.