Skip to content

Wire native CSS parsing for aspectRatio#55683

Closed
NickGerleman wants to merge 1 commit intofacebook:mainfrom
NickGerleman:export-D94052732
Closed

Wire native CSS parsing for aspectRatio#55683
NickGerleman wants to merge 1 commit intofacebook:mainfrom
NickGerleman:export-D94052732

Conversation

@NickGerleman
Copy link
Copy Markdown
Contributor

Summary:
Gate processAspectRatio behind enableNativeCSSParsing(). When the flag is on, CSS ratio strings like "16/9" and number strings are parsed natively using the existing CSS ratio parser instead of being preprocessed in JS. The parsing is done in fromRawValue(... FloatOptional &) — string values are only sent for aspectRatio; other FloatOptional yoga props never receive strings from JS.

Changelog: [Internal]

Differential Revision: D94052732

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 23, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Feb 23, 2026

@NickGerleman has exported this pull request. If you are a Meta employee, you can view the originating Diff in D94052732.

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Feb 23, 2026
Summary:

Gate `processAspectRatio` behind `enableNativeCSSParsing()`. When the flag is on, CSS ratio strings like `"16/9"` and number strings are parsed natively using the existing CSS ratio parser instead of being preprocessed in JS. The parsing is done in `fromRawValue(... FloatOptional &)` — string values are only sent for aspectRatio; other FloatOptional yoga props never receive strings from JS.

Changelog: [Internal]

Differential Revision: D94052732
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Feb 23, 2026
Summary:

Gate `processAspectRatio` behind `enableNativeCSSParsing()`. When the flag is on, CSS ratio strings like `"16/9"` and number strings are parsed natively using the existing CSS ratio parser instead of being preprocessed in JS. The parsing is done in `fromRawValue(... FloatOptional &)` — string values are only sent for aspectRatio; other FloatOptional yoga props never receive strings from JS.

Changelog: [Internal]

Differential Revision: D94052732
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Feb 25, 2026
Summary:
Pull Request resolved: facebook#55683

Gate `processAspectRatio` behind `enableNativeCSSParsing()`. When the flag is on, CSS ratio strings like `"16/9"` and number strings are parsed natively using the existing CSS ratio parser instead of being preprocessed in JS. The parsing is done in `fromRawValue(... FloatOptional &)` — string values are only sent for aspectRatio; other FloatOptional yoga props never receive strings from JS.

Changelog: [Internal]

Differential Revision: D94052732
Summary:

Gate `processAspectRatio` behind `enableNativeCSSParsing()`. When the flag is on, CSS ratio strings like `"16/9"` and number strings are parsed natively using the existing CSS ratio parser instead of being preprocessed in JS. The parsing is done in `fromRawValue(... FloatOptional &)` — string values are only sent for aspectRatio; other FloatOptional yoga props never receive strings from JS.

Changelog: [Internal]

Reviewed By: jorge-cab

Differential Revision: D94052732
@meta-codesync meta-codesync Bot closed this in df5d42e Feb 26, 2026
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 26, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Feb 26, 2026

This pull request has been merged in df5d42e.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @NickGerleman in df5d42e

When will my fix make it into a release? | How to file a pick request?

zoontek pushed a commit to zoontek/react-native that referenced this pull request Mar 9, 2026
Summary:
Pull Request resolved: facebook#55683

Gate `processAspectRatio` behind `enableNativeCSSParsing()`. When the flag is on, CSS ratio strings like `"16/9"` and number strings are parsed natively using the existing CSS ratio parser instead of being preprocessed in JS. The parsing is done in `fromRawValue(... FloatOptional &)` — string values are only sent for aspectRatio; other FloatOptional yoga props never receive strings from JS.

Changelog: [Internal]

Reviewed By: jorge-cab

Differential Revision: D94052732

fbshipit-source-id: 8f6d29c90c69b4da3dc43d007653c3db833cb959
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants