Re: [csswg-drafts] [css-fonts-4] font-display says it's valid in @font-feature-values but it isn't an at-rule (#2973)

I presume that if you don't have any `font-family`, `font-weight`, `font-style`, or `font-stretch` descriptors, then the contents of the `@partial font-face` would be applied to every `@font-face` (thereby letting you set a default `font-display` for every web font in the document). Presumably, adding any of those descriptors would filter the set of `@font-face` blocks the `@partial` applies to. (And the filtering would be done on range intersection, presumably, because you could have `font-weight: 300 800;`)

I think you're right that, if we want something like `@partial`, at-rules will have to opt-in, and when they opt-in, they will have to specify matching rules like what I just described above for `@font-face`.

I'm not sure that the cascading behavior you described above is the best behavior, but I'll discuss it with people on our team who know more about that.

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

Received on Tuesday, 27 November 2018 19:27:55 UTC