Skip to content

Commit 9db323a

Browse files
1aronclaude
andcommitted
Test(Site): Approve the film CSS and keep its dialog animation name static
The promo dialog's `var()` easing in the `animation` shorthand made the compiler treat the animation name as dynamic and retain every managed keyframe, raising /guide/introduction's inline CSS from 1,940 to 3,397 bytes. The easing now goes in `animation-timing-function`. Record the CSS contract for the film's 3,096-byte block on / and the Introduction in every locale (css-contract-qa-2026-11-09-film.md), and re-record the Introduction translation reviews after the film embed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 5b31e1b commit 9db323a

4 files changed

Lines changed: 8481 additions & 7653 deletions

File tree

‎site/i18n/reviews.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,19 +453,19 @@
453453
},
454454
"guide/introduction/content.mdx": {
455455
"tw": {
456-
"sourceHash": "9aa85dd63a427b92ec48f571a50ed2fb61adf654dc9533f5d01420b9cd53630b",
456+
"sourceHash": "2491b7c4462bfec468700fbe72d7acb8535323412a74b633aef0cb587b5ff33f",
457457
"translationHash": "16daf09cdc148a3b58201d6be15b74c4a7de0e92e7522a79c23142653000878f"
458458
},
459459
"ja": {
460-
"sourceHash": "9aa85dd63a427b92ec48f571a50ed2fb61adf654dc9533f5d01420b9cd53630b",
460+
"sourceHash": "2491b7c4462bfec468700fbe72d7acb8535323412a74b633aef0cb587b5ff33f",
461461
"translationHash": "62ad34ac62c7578e28674699840fb18bb4ac474ad88ff3fe7115ad164efb4616"
462462
},
463463
"ko": {
464-
"sourceHash": "9aa85dd63a427b92ec48f571a50ed2fb61adf654dc9533f5d01420b9cd53630b",
464+
"sourceHash": "2491b7c4462bfec468700fbe72d7acb8535323412a74b633aef0cb587b5ff33f",
465465
"translationHash": "02c0b3a8639f4d6449af84e2ba1199784baed7cd7298eae2c9fc7c2a4dff3fb4"
466466
},
467467
"cn": {
468-
"sourceHash": "9aa85dd63a427b92ec48f571a50ed2fb61adf654dc9533f5d01420b9cd53630b",
468+
"sourceHash": "2491b7c4462bfec468700fbe72d7acb8535323412a74b633aef0cb587b5ff33f",
469469
"translationHash": "016c962a50834651c6c89f5ee8dec94c6dcdace9c5ee77ec961a9627dcc5541e"
470470
}
471471
},

‎site/styles/promo-video.css‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@
136136
}
137137

138138
&[open] {
139-
animation: promo-dialog-in 260ms var(--ui-ease-out, ease) both;
139+
/* A var() in the shorthand could name an animation, which retains every keyframe. */
140+
animation: promo-dialog-in 260ms both;
141+
animation-timing-function: var(--ui-ease-out, ease);
140142
}
141143

142144
& .promo-video {
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Master CSS 2.0 film CSS baseline review
2+
3+
The reviewed build is local `main` after `f3267ac77`–`ec31134a3` (the Master CSS
4+
2.0 film in the hero and the Introduction) and the promo dialog animation change
5+
that keeps its timing function out of the `animation` shorthand. It approves the
6+
CSS those commits add.
7+
8+
## Exact contract and intentional change
9+
10+
The previous snapshot SHA256 is
11+
`bac8e8c4f04a284da493b91bd3fe9d7226f8f9aa695fb78c8c627e9f50f8151f`
12+
(approved by `css-contract-qa-2026-11-09.md`): 389 routes, 53 contracts and
13+
2,172 segments. The new snapshot records 389 routes, 54 contracts and 2,185
14+
segments. No route was added or removed; the project manifest, semantic and
15+
public baselines are equal.
16+
17+
Ten routes change: `/` and `/guide/introduction` in each of the five locales.
18+
Each gains the same 3,096-byte `@layer components{…}` block from
19+
`site/styles/promo-video.css`, imported by `HeroVideo.svelte` and
20+
`PromoVideo.svelte`: the poster, play disc, dialog, close button, hero film disc,
21+
reduced-motion overrides and `@keyframes promo-dialog-in`.
22+
23+
## Attribution
24+
25+
For every route, removing the added segments (and the `@layer components{`
26+
wrapper they leave empty) from the new contract CSS gives the old contract CSS
27+
byte for byte. The other 379 routes are unchanged. No existing selector,
28+
declaration or value changes.
29+
30+
## Keyframes and inline budget
31+
32+
The dialog animation is written as `animation: promo-dialog-in 260ms both` plus
33+
`animation-timing-function: var(--ui-ease-out, ease)`. With the `var()` inside
34+
the shorthand, the compiler treated the animation name as possibly dynamic and
35+
retained every managed keyframe, which raised the inline CSS of
36+
`/guide/introduction` from 1,940 to 3,397 bytes. With the longhand, only
37+
`promo-dialog-in` is added and `bun run --filter site build` passes the
38+
style-delivery budget (389 routes, 46 CSS assets audited) and public asset
39+
verification.

0 commit comments

Comments
 (0)