- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Wed, 14 Jan 2026 17:17:16 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-font-loading-3] What is the behavior of adding a FontFace to documents.fonts in another document?`, and agreed to the following: * `RESOLVED: Adding a FontFace to a document other than the one it was created throws an exception` <details><summary>The full IRC log of that discussion</summary> <kbabbitt> smfr: this is an issue with font loading api<br> <kbabbitt> ... possible to make a new FontFace object, add to document.fonts, then also add to a different document<br> <kbabbitt> ... spec doesn't say anything about cross document additions<br> <kbabbitt> ... which is weird because font can live in 2 docs at the same time<br> <kbabbitt> ... impl wise it's tricky because font loading mechanism under the hood needs to live in 2 documents<br> <kbabbitt> ... behavior across browsers is font doesn't work across documents<br> <emilio> q+<br> <TabAtkins> +1 to Simon's proposal, throwing an error when adding cross-document<br> <kbabbitt> ... proposal is to disallow this and throw a wrong document exception if you try to add font to different document from where it was created<br> <kbabbitt> +1<br> <noamr> q+<br> <Rossen6> ack emilio<br> <kbabbitt> emilio: agree this seems fine, failing with an exception seems better<br> <kbabbitt> ... filed a related issue on this a while ago<br> <kbabbitt> ... my only question is, if you want doc the font-face was created on, ... if you create a font face, don't add it anywhere, then add it to a different document<br> <kbabbitt> ... I can see that happening<br> <kbabbitt> smfr: I think you track the document the font face was created in, and if you add in a different one, throw an exception<br> <kbabbitt> emilio: assuming it's compatible seems fine<br> <kbabbitt> ... would be curious if you find issues with this, it's due to case where author didn't try to share but just created in one doc and added to another<br> <kbabbitt> ... sounds good to define as proposing, if we need to relax for web compat we can<br> <Rossen6> ack noamr<br> <kbabbitt> noamr: with web compat, we ve had cases in the past where a silent exception turned into a real exception and made sites feel more broken due to JS throwing<br> <kbabbitt> smfr: reasonable concern, don't think we'll know until we try shipping<br> <kbabbitt> Rossen6: mostly hearing consensus<br> <TabAtkins> yes, I think that's the right wording<br> <kbabbitt> PROPOSED: Adding a FontFace to a document other than the one it was created throws an exception<br> <kbabbitt> RESOLVED: Adding a FontFace to a document other than the one it was created throws an exception<br> <TabAtkins> (ugh, gonna have to once again figure out which of the three "document" concepts I need to talk about)<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13251#issuecomment-3750655627 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 14 January 2026 17:17:17 UTC