- From: Domenic Denicola via GitHub <sysbot+gh@w3.org>
- Date: Tue, 29 Mar 2022 15:15:48 +0000
- To: public-css-archive@w3.org
domenic has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-font-loading] document.fonts vs. self.fonts distinction is annoying; consider defining window.fonts == https://andreubotella.com/csswg-auto-build/css-font-loading-3/#font-face-source It is annoying that if you want to write code that works in both a window or worker context, you have to do `(self.fonts || document.fonts).load(...)`. It would be better if you could do `fonts.load(...)`. I propose that `window.fonts` be added as an alias for `document.fonts`, and all the examples be updated to steer people toward `fonts` instead of `document.fonts`. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7178 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 29 March 2022 15:15:56 UTC