You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b6509b1
Browse filesBrowse the repository at this point in the historyBrowse files
fix(Popover): the touch growth shows its content from its first frame (#10757)
fix(Popover): the touch growth shows its content from its first frame
Chromium skips drawing a layer at exactly opacity 0 as its animation
starts. Under a finger, Popover's growth faded in from 0, so Chromium
rasterized the popover again once the fade made it visible, and the
first frames showed it without its content.
The growth now fades in from opacity 0.001, a quarter of one step of an
8-bit channel: Chromium draws its first frame, and no pixel changes. The
floor is defined once, in motion/opacityFloor.ts, for compositor
entrances that fade in from transparent. The start values keep opacity
0, so Reduce Motion, which replaces the growth with a cross-fade, still
fades in from transparent.
A new proof reads the compositor's record of each frame it presents: the
growth shows its content from its first frames, also with a tap outside
while it grows. component:Popover records the floor as PR5.
[fix] Under a finger, Popover's growth shows its content from its first frame. The growth starts at opacity 0.001 rather than 0: Chromium skips drawing a layer at exactly 0, so the first frames of a growth from 0 showed the popover without its content. No 8-bit pixel differs from transparent at 0.001.
@@ -267,6 +268,10 @@ table owns their semantic effect.
267
268
touch growth and shrink do no Layout or Paint per frame. Known platform cost:
268
269
in Chromium, a page with its own `requestAnimationFrame` loop makes an
269
270
anchored, animating layer lay out and paint every frame.
271
+
-**PR5 — The touch growth's first frames.** Under a finger, the growth starts
272
+
at opacity 0.001 rather than 0, since Chromium skips drawing a layer at
273
+
exactly 0. The first frame then shows its content, and no 8-bit pixel differs
274
+
from transparent.
270
275
271
276
## Accessibility contract
272
277
@@ -373,6 +378,7 @@ consumers that need distinct theme reachability provide and document an owned
373
378
| FR8 |`Popover.test.tsx` surface-padding suite | Default rung, `0`, an explicit rung, a direct hook composition with and without a rung | A default other than step 3, a rung landing on a box inside the surface, or the hook painting a rung it was not given fails the suite. |`audit:Popover/theming`|
374
379
| FR9 |`spec:AST-094` verification for FR31 and FR35 | Under a finger: open, close, a touch during growth; a mouse | A Popover that does not grow from and shrink into its trigger, a changed dismissal, or a changed mouse path fails. |`audit:Popover/behavior`|
375
380
| PR4 |`spec:AST-094` verification for FR5 | The touch growth and shrink in a Chromium trace, on a page with no other frame work | A Layout or a Paint during either motion on such a page |`audit:Popover/resources`|
381
+
| PR5 |`PopoverTouchMotion.interaction.browser.spec.ts` "the growth shows its content from its first frames", from the compositor's record of each frame it presents (Chromium) | A tap that opens the popover; a tap outside while it grows | A growth whose first opacity keyframe is 0 presents a frame without the popover's content among its first five |`audit:Popover/resources`|
376
382
| FR5 |`Popover.test.tsx` scheduling and observer-lifecycle suites | Closed, opened, repeated signals, cleanup | Constructing observers while closed or measuring more than once per pending frame fails lifecycle assertions. |`audit:Popover/resources`|
377
383
| FR6, FR7 and theming anatomy |`Popover.test.tsx`, `Popover.doc.mjs`, `usePopover.doc.mjs`, `astryx theme targets Popover --json`, and `scripts/check-knowledge.mjs`| One real surface with canonical `popover` plus composed-component refinements | A fake anatomy part, missing canonical output, or an active target without a real owner fails review or validation. |`audit:Popover/theming`|
378
384
| AR5 |`Popover.stories.tsx` manual-AT fixture and PR #5373 test record | Read-only dialog manual-AT fixture; no recorded NVDA/VoiceOver announcement result | A fixture without recorded AT/browser observations cannot be cited as announcement proof. |`audit:Popover/at-evidence`|
Copy file name to clipboardExpand all lines: packages/core/src/motion/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@ roles through `resolveMotion`.
48
48
|`progress.ts`| A spring's progress, one curve mapped from another (companions, clamped ranges), the velocity that continues a motion. |
49
49
|`presentation.ts`| Where each moving element is drawn relative to where the engine hit-tests it, reported by the animator while translate runs; read by the gesture host at touch-down. |
50
50
|`reducedMotionPlan.ts`| The animator's Reduce Motion planner: what one call becomes, a cross-fade whose travel lands while transparent or at once. |
51
+
|`opacityFloor.ts`| The lowest opacity a compositor entrance fades in from: Chromium skips drawing a layer at exactly 0 as its animation starts. |
51
52
|`__tests__/animator.interaction.browser.spec.ts`| Browser proofs on the interaction harness (Chromium and WebKit): busy main thread, end state through a block, no Layout / Paint, seeked curves, a dialog's backdrop. |
52
53
53
54
Component-specific values (a sheet's detents, a switch's geometry, a context
0 commit comments