Re: [csswg-drafts] [css-fonts] Clarification on behaviour when modifying @font-face rules (#3542)

> * Invalidating the `@font-face` rule by renaming it to something like `@-disabled-font-face`

You should not be able to do this at all via any interface. Parsing will fail at the very least.

> * Changing the `font-family` value in a `@font-face` rule but not updating the `font-family` elsewhere
> * Changing the `src` value in a `@font-face` rule
> * Disabling a stylesheet containing an `@font-face` rule
> * Deleting a stylesheet containing an `@font-face` rule

Ideally, they should work as if they are initially setup that way.

> However, Safari, Chrome and Firefox all continue to render text using the font. Is this the expected behaviour? If so, could somebody point me to the part of the spec that defines it?

Could you paste code here for how you change them? That would probably be easier for others to figure out what is happening.

-- 
GitHub Notification of comment by upsuper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3542#issuecomment-456363395 using your GitHub account

Received on Tuesday, 22 January 2019 11:16:15 UTC