Skip to content

fix(page): accept numeric width, height and margin in pdf - #3233

Merged
Pavel Feldman (pavelfeldman) merged 1 commit into
microsoft:mainfrom
MohammedAlkindi:fix-43207
Oct 8, 2026
Merged

Pavel Feldman (pavelfeldman) merged 1 commit into
microsoft:mainfrom
MohammedAlkindi:fix-43207

Conversation

@MohammedAlkindi

Copy link
Copy Markdown
Contributor

Summary

  • page.pdf sent numeric width, height and margin values unchanged, and the driver rejected them with expected string, got number. Numbers are now sent as px strings, as the JS client does, so width=500 matches width="500px".

Fixes microsoft/playwright#43207

@pavelfeldman
Pavel Feldman (pavelfeldman) merged commit 1764101 into microsoft:main Oct 8, 2026
29 checks passed
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.

[Bug]: Python page.pdf rejects numeric width, height and margin

2 participants