From 59ee7c2e6a611f435960ebe313856609c20e3d29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel?= Date: Sun, 17 May 2026 17:12:08 -0400 Subject: [PATCH 1/3] fix(core): resolve CSS @import when inlining stylesheets into bundle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The bundler inlines local CSS files by reading their content and concatenating into a `; - highlight.addEventListener("animationend", () => { - highlight.remove(); - }, { once: true }); - document.body.append(highlight); - }, x2, y); - } - } - } - /** - * Drags an element over the given element or point. - * - * @returns DEPRECATED. When drag interception is enabled, the drag payload is - * returned. - */ - async drag(target) { - await this.scrollIntoViewIfNeeded(); - const page = this.frame.page(); - if (page.isDragInterceptionEnabled()) { - const source2 = await this.clickablePoint(); - if (target instanceof ElementHandle2) { - target = await target.clickablePoint(); - } - return await page.mouse.drag(source2, target); - } - try { - if (!page._isDragging) { - page._isDragging = true; - await this.hover(); - await page.mouse.down(); - } - if (target instanceof ElementHandle2) { - await target.hover(); - } else { - await page.mouse.move(target.x, target.y); - } - } catch (error) { - page._isDragging = false; - throw error; - } - } - /** - * @deprecated Do not use. `dragenter` will automatically be performed during dragging. - */ - async dragEnter(data = { items: [], dragOperationsMask: 1 }) { - const page = this.frame.page(); - await this.scrollIntoViewIfNeeded(); - const target = await this.clickablePoint(); - await page.mouse.dragEnter(target, data); - } - /** - * @deprecated Do not use. `dragover` will automatically be performed during dragging. - */ - async dragOver(data = { items: [], dragOperationsMask: 1 }) { - const page = this.frame.page(); - await this.scrollIntoViewIfNeeded(); - const target = await this.clickablePoint(); - await page.mouse.dragOver(target, data); - } - /** - * @internal - */ - async drop(dataOrElement = { - items: [], - dragOperationsMask: 1 - }) { - const page = this.frame.page(); - if ("items" in dataOrElement) { - await this.scrollIntoViewIfNeeded(); - const destination = await this.clickablePoint(); - await page.mouse.drop(destination, dataOrElement); - } else { - await dataOrElement.drag(this); - page._isDragging = false; - await page.mouse.up(); - } - } - /** - * @deprecated Use `ElementHandle.drop` instead. - */ - async dragAndDrop(target, options) { - const page = this.frame.page(); - assert(page.isDragInterceptionEnabled(), "Drag Interception is not enabled!"); - await this.scrollIntoViewIfNeeded(); - const startPoint = await this.clickablePoint(); - const targetPoint = await target.clickablePoint(); - await page.mouse.dragAndDrop(startPoint, targetPoint, options); - } - /** - * Triggers a `change` and `input` event once all the provided options have been - * selected. If there's no `` has the - * `multiple` attribute, all values are considered, otherwise only the first - * one is taken into account. - */ - async select(...values) { - for (const value of values) { - assert(isString(value), 'Values must be strings. Found value "' + value + '" of type "' + typeof value + '"'); - } - return await this.evaluate((element, vals) => { - const values2 = new Set(vals); - if (!(element instanceof HTMLSelectElement)) { - throw new Error("Element is not a