From f96b1dd43ba808783fd2986711b23a6fd0b812aa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 08:20:39 -0800 Subject: [PATCH] feat(webkit): roll to r1609 (#11824) --- packages/playwright-core/browsers.json | 2 +- .../playwright-core/src/server/webkit/protocol.d.ts | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/packages/playwright-core/browsers.json b/packages/playwright-core/browsers.json index 75fab9a83a..d4eb97624e 100644 --- a/packages/playwright-core/browsers.json +++ b/packages/playwright-core/browsers.json @@ -23,7 +23,7 @@ }, { "name": "webkit", - "revision": "1604", + "revision": "1609", "installByDefault": true, "revisionOverrides": { "mac10.14": "1446" diff --git a/packages/playwright-core/src/server/webkit/protocol.d.ts b/packages/playwright-core/src/server/webkit/protocol.d.ts index bbdfde73ab..0b980bb010 100644 --- a/packages/playwright-core/src/server/webkit/protocol.d.ts +++ b/packages/playwright-core/src/server/webkit/protocol.d.ts @@ -162,7 +162,7 @@ export module Protocol { animationId: AnimationId; } export type requestEffectTargetReturnValue = { - nodeId: DOM.NodeId; + effectTarget: DOM.Styleable; } /** * Resolves JavaScript `WebAnimation` object for given `AnimationId`. @@ -906,7 +906,7 @@ export module Protocol { /** * The layout context type of a node. */ - export type LayoutContextType = "grid"; + export type LayoutContextType = "flex"|"grid"; /** * The mode for how layout context type changes are handled (default: Observed). Observed limits handling to those nodes already known to the frontend by other means (generally, this means the node is a visible item in the Elements tab). All informs the frontend of all layout context type changes and all nodes with a known layout context are sent to the frontend. */ @@ -1172,7 +1172,7 @@ export module Protocol { export type forcePseudoStateReturnValue = { } /** - * Change how layout context type changes are handled for nodes. When the new mode would observe nodes the frontend has not yet received, those nodes will be sent to the frontend immediately. + * Change how layout context type changes are handled for nodes. When the new mode would observe nodes the frontend has not yet recieved, those nodes will be sent to the frontend immediately. */ export type setLayoutContextTypeChangedModeParameters = { /** @@ -2085,6 +2085,13 @@ export module Protocol { */ marginColor?: RGBAColor; } + /** + * An object referencing a node and a pseudo-element, primarily used to identify an animation effect target. + */ + export interface Styleable { + nodeId: NodeId; + pseudoId?: CSS.PseudoId; + } /** * Data to construct File object. */