mozilla / standards-positions

https://mozilla.github.io/standards-positions/
Mozilla Public License 2.0
653 stars 72 forks source link

Scripting media feature #765

Closed CanadaHonk closed 1 month ago

CanadaHonk commented 1 year ago

Request for Mozilla Position on an Emerging Web Specification

Other information

Mostly done and accepted patch: https://phabricator.services.mozilla.com/D172995 More as a formality for intents :)

zcorpan commented 1 year ago

I had the same reaction as @emilio in https://github.com/w3c/csswg-drafts/issues/8621 about initial-only thinking it shouldn't apply for "printed pages" (in a browser); the print media exists already.

Developers work around the lack of this by running a script that adds a class name to the root element. A media feature seems nicer.

Aboutinitial-only... In principle the page can find out if script only works during page load by setting an interval that calls home, and if it stops then the page can assume that scripting no longer works (but the page can't adapt anymore). So initial-only allows pages to adapt.

I think this seems useful and doesn't expose introduce new information from a privacy perspective. I suggest positive.