Re: [csswg-drafts] [css-fonts-4] font-display: optional without relayout (#4108)

All right, pushed some new text that should make the intent much clearer:

> If the font can be loaded "immediately"
> (such that it's available to be used for the "first paint" of the text),
> the font is used.
> 
> Otherwise, the font is treated
> as if its [=block period=] and [=swap period=] both expired before it finished loading.
> If the font is not used due to this,
> the user agent may choose to abort the font download,
> or download it with a very low priority.
> If the user agent believes it would be useful for the user,
> it may avoid even starting the font download,
> and proceed immediately to using a fallback font.
> 
> An ''optional'' font <strong>must never</strong> 
> cause the layout of the page to "jump" as it loads in.
> A user agent <em>may</em> choose to slightly delay rendering an element using an optional font
> to give it time to load from a possibly-slow local cache,
> but once the text has been painted to the screen with a fallback font instead,
> it must not be rendered with the ''optional'' font for the rest of the page's lifetime.

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

Received on Tuesday, 7 January 2020 00:36:09 UTC