From 7b881cf0fee7cff3b40b55dec357804e8b974121 Mon Sep 17 00:00:00 2001 From: jfp1992 Date: Mon, 11 Jul 2022 21:13:06 +0100 Subject: [PATCH] docs: fix typo bonding > bounding (#15442) Co-authored-by: Max Schmitt --- docs/src/api/class-elementhandle.md | 2 +- docs/src/api/class-locator.md | 2 +- packages/playwright-core/types/types.d.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/api/class-elementhandle.md b/docs/src/api/class-elementhandle.md index 75dde84924..21683c3d30 100644 --- a/docs/src/api/class-elementhandle.md +++ b/docs/src/api/class-elementhandle.md @@ -117,7 +117,7 @@ await locator.ClickAsync(); This method returns the bounding box of the element, or `null` if the element is not visible. The bounding box is calculated relative to the main frame viewport - which is usually the same as the browser window. -Scrolling affects the returned bonding box, similarly to +Scrolling affects the returned bounding box, similarly to [Element.getBoundingClientRect](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect). That means `x` and/or `y` may be negative. diff --git a/docs/src/api/class-locator.md b/docs/src/api/class-locator.md index 04447bbfe2..896a05f1f7 100644 --- a/docs/src/api/class-locator.md +++ b/docs/src/api/class-locator.md @@ -29,7 +29,7 @@ Returns an array of `node.textContent` values for all matching nodes. This method returns the bounding box of the element, or `null` if the element is not visible. The bounding box is calculated relative to the main frame viewport - which is usually the same as the browser window. -Scrolling affects the returned bonding box, similarly to +Scrolling affects the returned bounding box, similarly to [Element.getBoundingClientRect](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect). That means `x` and/or `y` may be negative. diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts index 2ce572bc7e..aa268130e8 100644 --- a/packages/playwright-core/types/types.d.ts +++ b/packages/playwright-core/types/types.d.ts @@ -8023,7 +8023,7 @@ export interface ElementHandle extends JSHandle { * This method returns the bounding box of the element, or `null` if the element is not visible. The bounding box is * calculated relative to the main frame viewport - which is usually the same as the browser window. * - * Scrolling affects the returned bonding box, similarly to + * Scrolling affects the returned bounding box, similarly to * [Element.getBoundingClientRect](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect). That * means `x` and/or `y` may be negative. * @@ -9115,7 +9115,7 @@ export interface Locator { * This method returns the bounding box of the element, or `null` if the element is not visible. The bounding box is * calculated relative to the main frame viewport - which is usually the same as the browser window. * - * Scrolling affects the returned bonding box, similarly to + * Scrolling affects the returned bounding box, similarly to * [Element.getBoundingClientRect](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect). That * means `x` and/or `y` may be negative. *