Skip to content

Add safe-html-pdf and viewport-qa to Utils - #308

Open
saimulft wants to merge 1 commit into
mxschmitt:mainfrom
saimulft:add-safe-html-pdf-and-viewport-qa
Open

saimulft wants to merge 1 commit into
mxschmitt:mainfrom
saimulft:add-safe-html-pdf-and-viewport-qa

Conversation

@saimulft

Copy link
Copy Markdown

Adds two MIT-licensed Playwright tools I maintain:

  • safe-html-pdf: renders untrusted or AI-written HTML to PDF with Playwright, with JavaScript and network off, size and time limits, and a layout lint for overflow and broken images.
  • viewport-qa: loads a page in Chromium through Playwright at widths from 390 to 3840 px and reports horizontal overflow, clipped text, layout shift and low-resolution images.

Both are on npm with typed exports and tests. The entries are in alphabetical order.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant