Skip to content

Add support for setting a custom viewport width#344

Merged
martinbooth merged 2 commits into
mainfrom
native/viewport-width
Jul 25, 2025
Merged

Add support for setting a custom viewport width#344
martinbooth merged 2 commits into
mainfrom
native/viewport-width

Conversation

@martinbooth

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Jul 24, 2025

Copy link
Copy Markdown

workflow: benchmarks/size

Comparison of minified (terser) and compressed (brotli) size results, measured in bytes. Smaller is better.

Results Base Patch Ratio
react-strict-dom/dist/dom/index.js
· compressed 2,514 2,514 1.00
· minified 8,691 8,691 1.00
react-strict-dom/dist/dom/runtime.js
· compressed 855 855 1.00
· minified 2,435 2,435 1.00
react-strict-dom/dist/native/index.js
· compressed 16,325 16,701 1.02 +
· minified 61,175 63,810 1.04 +

@github-actions

github-actions Bot commented Jul 24, 2025

Copy link
Copy Markdown

workflow: benchmarks/perf (native)

Comparison of performance test results, measured in operations per second. Larger is better.

Results Base Patch Ratio
css.create
· small 1,125,081 1,153,939 1.03 +
· small with units 420,484 487,014 1.16 !!
· small with variables 649,189 657,231 1.01 +
· several small 310,502 351,168 1.13 !!
· large 203,838 203,985 1.00 +
· large with polyfills 142,385 148,736 1.04 +
· complex 97,883 103,333 1.06 !!
· unsupported 213,353 215,286 1.01 +
css.createTheme
· simple theme 224,258 226,050 1.01 +
· polyfill theme 210,320 210,892 1.00 +
css.props
· small 233,950 227,685 0.97 -
· small with units 193,355 189,690 0.98 -
· small with variables 105,794 100,626 0.95 -
· small with variables of units 75,026 76,082 1.01 +
· large 99,066 95,997 0.97 -
· large with polyfills 37,744 36,936 0.98 -
· complex 23,756 23,342 0.98 -
· unsupported 145,445 141,304 0.97 -
· simple merge 164,601 161,196 0.98 -
· wide merge 17,987 17,799 0.99 -
· deep merge 17,735 17,533 0.99 -
· themed merge 32,016 31,861 1.00 -

@martinbooth martinbooth force-pushed the native/viewport-width branch 6 times, most recently from b146db8 to 507bd9b Compare July 24, 2025 23:28
@martinbooth martinbooth force-pushed the native/viewport-width branch from 507bd9b to 06dfb42 Compare July 24, 2025 23:36
@necolas necolas force-pushed the native/viewport-width branch 4 times, most recently from 7be7e2d to a753cb0 Compare July 25, 2025 05:27
* Add scaling for default 'em' unit polyfill.
* Move scale context provider into context file.
* Expand list of length style properties.
@necolas necolas force-pushed the native/viewport-width branch from a753cb0 to 2e4045a Compare July 25, 2025 05:54

@necolas necolas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I added a commit so will pass over to you for final review. Feel free to modify and merge

@martinbooth martinbooth merged commit da1f2de into main Jul 25, 2025
7 checks passed
@necolas necolas deleted the native/viewport-width branch July 25, 2025 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants