addRule() — astro Function Reference
Architecture documentation for the addRule() function in transition.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 80c6564a_bf5c_0a79_226b_9b6d8ff8c1e3["addRule()"] d7cc381c_9294_21bb_a466_854d22d9bf61["ViewTransitionStyleSheet"] 80c6564a_bf5c_0a79_226b_9b6d8ff8c1e3 -->|defined in| d7cc381c_9294_21bb_a466_854d22d9bf61 066351a7_c283_6d13_ba2b_260df1d0fe47["addModern()"] 066351a7_c283_6d13_ba2b_260df1d0fe47 -->|calls| 80c6564a_bf5c_0a79_226b_9b6d8ff8c1e3 bddee0a0_6f9b_881a_da47_a6afb3379489["addFallback()"] bddee0a0_6f9b_881a_da47_a6afb3379489 -->|calls| 80c6564a_bf5c_0a79_226b_9b6d8ff8c1e3 1920fb61_b9e6_5573_7885_73058c25bccf["addAnimationPair()"] 1920fb61_b9e6_5573_7885_73058c25bccf -->|calls| 80c6564a_bf5c_0a79_226b_9b6d8ff8c1e3 style 80c6564a_bf5c_0a79_226b_9b6d8ff8c1e3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/server/transition.ts lines 155–157
private addRule(target: 'modern' | 'fallback', cssText: string) {
this[target].push(cssText);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does addRule() do?
addRule() is a function in the astro codebase, defined in packages/astro/src/runtime/server/transition.ts.
Where is addRule() defined?
addRule() is defined in packages/astro/src/runtime/server/transition.ts at line 155.
What calls addRule()?
addRule() is called by 3 function(s): addAnimationPair, addFallback, addModern.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free