From 0c8d2cf4e075d6b12258fc9293a547316720ae4a Mon Sep 17 00:00:00 2001 From: Playwright Service <89237858+playwrightmachine@users.noreply.github.com> Date: Wed, 23 Nov 2022 09:54:47 -0800 Subject: [PATCH] feat(webkit): roll to r1744 (#19006) --- packages/playwright-core/browsers.json | 2 +- .../src/server/webkit/protocol.d.ts | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/packages/playwright-core/browsers.json b/packages/playwright-core/browsers.json index 88be31678b..93e053b8bc 100644 --- a/packages/playwright-core/browsers.json +++ b/packages/playwright-core/browsers.json @@ -33,7 +33,7 @@ }, { "name": "webkit", - "revision": "1736", + "revision": "1744", "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 f68a31be94..9d933b5552 100644 --- a/packages/playwright-core/src/server/webkit/protocol.d.ts +++ b/packages/playwright-core/src/server/webkit/protocol.d.ts @@ -860,6 +860,10 @@ export module Protocol { * Source of the media query: "media-rule" if specified by a @media rule, "media-import-rule" if specified by an @import rule, "media-link-node" if specified by a "media" attribute in a linked style sheet's LINK tag, "media-style-node" if specified by a "media" attribute in an inline style sheet's STYLE tag, "supports-rule" if specified by an @supports rule, "layer-rule" if specified by an @layer rule, "container-rule" if specified by an @container rule. */ type: "media-rule"|"media-import-rule"|"media-link-node"|"media-style-node"|"supports-rule"|"layer-rule"|"layer-import-rule"|"container-rule"; + /** + * The CSS rule identifier for the `@rule` (absent for non-editable grouping rules). In CSSOM terms, this is the parent rule of either the previous Grouping for a CSSRule, or of a CSSRule itself. + */ + ruleId?: CSSRuleId; /** * Query text if specified by a @media, @supports, or @container rule. Layer name (or not present for anonymous layers) for @layer rules. */ @@ -868,6 +872,10 @@ export module Protocol { * URL of the document containing the CSS grouping. */ sourceURL?: string; + /** + * @-rule's header text range in the enclosing stylesheet (if available). This is from the first non-whitespace character after the @ declarartion to the last non-whitespace character before an opening curly bracket or semicolon. + */ + range?: SourceRange; } /** * A representation of WebCore::Font. Conceptually this is backed by either a font file on disk or from the network. @@ -1118,6 +1126,19 @@ export module Protocol { */ rule: CSSRule; } + /** + * Modifies an @rule grouping's header text. + */ + export type setGroupingHeaderTextParameters = { + ruleId: CSSRuleId; + headerText: string; + } + export type setGroupingHeaderTextReturnValue = { + /** + * The resulting grouping after the header text modification. + */ + grouping: Grouping; + } /** * Creates a new special "inspector" stylesheet in the frame with given frameId. */ @@ -9062,6 +9083,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the "CSS.setStyleSheetText": CSS.setStyleSheetTextParameters; "CSS.setStyleText": CSS.setStyleTextParameters; "CSS.setRuleSelector": CSS.setRuleSelectorParameters; + "CSS.setGroupingHeaderText": CSS.setGroupingHeaderTextParameters; "CSS.createStyleSheet": CSS.createStyleSheetParameters; "CSS.addRule": CSS.addRuleParameters; "CSS.getSupportedCSSProperties": CSS.getSupportedCSSPropertiesParameters; @@ -9370,6 +9392,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the "CSS.setStyleSheetText": CSS.setStyleSheetTextReturnValue; "CSS.setStyleText": CSS.setStyleTextReturnValue; "CSS.setRuleSelector": CSS.setRuleSelectorReturnValue; + "CSS.setGroupingHeaderText": CSS.setGroupingHeaderTextReturnValue; "CSS.createStyleSheet": CSS.createStyleSheetReturnValue; "CSS.addRule": CSS.addRuleReturnValue; "CSS.getSupportedCSSProperties": CSS.getSupportedCSSPropertiesReturnValue;