Skip to content

Commit 5b77fd6

Browse files
vjeuxcixzhang
authored andcommitted
docs(interaction-harness): sampleCurve's pseudoElement note names the call that exists on main
astracat found that the note cited `animatorFor(element, {pseudoElement})`, an animator option that arrives with #8242 and isn't on main. It now names `element.animate(keyframes, {pseudoElement})`, the call the self-test uses.
1 parent de2d1b6 commit 5b77fd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎internal/interaction-harness/src/curves.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ export interface CurveSample {
936936
* `pseudoElement` samples the element's `::before` or `::after` instead:
937937
* its presented values, labelled by its own animations (those whose effect
938938
* targets the element with that pseudo-element), as a component that animates
939-
* a pseudo-element (`animatorFor(element, {pseudoElement})`) draws it.
939+
* a pseudo-element (`element.animate(keyframes, {pseudoElement})`) draws it.
940940
*/
941941
export async function sampleCurve(
942942
locator: Locator,

0 commit comments

Comments
 (0)