Bug 230947

Summary: [CSS Cascade Layers] Add fonts and keyframes in cascade layer order
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: CSSAssignee: Antti Koivisto <koivisto>
Status: RESOLVED FIXED    
Severity: Normal CC: simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 220779    
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch none

Description Antti Koivisto 2021-09-29 05:27:28 PDT
Make sure font and keyframe rules respect cascade layer ordering.
Comment 1 Antti Koivisto 2021-09-29 05:38:01 PDT
Created attachment 439598 [details]
Patch
Comment 2 Antti Koivisto 2021-09-29 05:46:15 PDT
Created attachment 439599 [details]
Patch
Comment 3 Simon Fraser (smfr) 2021-09-29 07:44:46 PDT
Comment on attachment 439599 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=439599&action=review

> Source/WebCore/style/RuleSet.cpp:349
> +        if (is<StyleRuleFontFace>(*rule) || is<StyleRuleFontPaletteValues>(*rule) || is<StyleRuleKeyframes>(*rule)) {

Would be nice to have a way to collectively refer to these. Are they just all the kinds of @ rules we know about? What happens when we add new ones?
Comment 4 Antti Koivisto 2021-09-29 07:48:58 PDT
> Would be nice to have a way to collectively refer to these. Are they just
> all the kinds of @ rules we know about? What happens when we add new ones?

Yeah, there is definitely room for cleanups and clarifications here.
Comment 5 EWS 2021-09-29 08:23:16 PDT
Committed r283216 (242258@main): <https://commits.webkit.org/242258@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 439599 [details].
Comment 6 Radar WebKit Bug Importer 2021-09-29 08:24:40 PDT
<rdar://problem/83671785>