Skip to content

Commit 784562b

Browse files
committed
fixes form controls
1 parent ac8fc1d commit 784562b

107 files changed

Lines changed: 28609 additions & 7222 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Main entry point. Traverses the DOM tree under `root`, builds a stacking context
197197
| `zoom` | `number` | `1` | Scale factor applied to all extracted coordinates. Useful when the source DOM is rendered at a different zoom level |
198198
| `imageScale` | `number` | `1` | Scale factor for rasterizing embedded images. Higher values (e.g. `2`) produce sharper images when zooming in on the exported file. Max pixel dimension is capped at 4096 |
199199
| `svgToVector` | `boolean` | `false` | When true, embedded SVG images (in `<img>` tags and CSS `background-image`) are always converted to vector IR nodes (polygon, polyline, text) instead of being rasterized to bitmap image nodes. This produces resolution-independent output but may not accurately render SVGs that use fill-rule:evenodd with complex multi-subpath paths. |
200-
| `convertFormControls` | `boolean` | `false` | When true, native form controls are converted into synthetic IR nodes that preserve visible values and states across writers. Supported controls include checkbox, radio, text-like inputs (including date/time variants), textarea, select, and progress. |
200+
| `convertFormControls` | `boolean` | `false` | When true, native form controls are converted into synthetic IR nodes that preserve visible values and states across writers. Supported controls include checkbox, radio, range, file, text-like inputs (including date/time variants), textarea, select, progress, and meter. |
201201
| `includePseudoElements` | `boolean` | `true` | When true, `::before` and `::after` pseudo-elements with generated content are extracted into the IR as polygon and text nodes. Be careful, this option modifies original DOM cause it need to create real elements for them in DOM. CSS `counter()`, `counters()`, `attr()`, `open-quote`/`close-quote`, and string literals are resolved. Best results with Firefox (native `getBoxQuads` on pseudo replacement elements). |
202202

203203

0 commit comments

Comments
 (0)