Skip to content

StyleX: use UTF-16 code-unit order for compiler sorts - #797

Merged
raphamorim merged 2 commits into
lovablelabs:mainfrom
hurrymaplelad:oj-stylex-utf16-sort
Nov 25, 2026
Merged

raphamorim merged 2 commits into
lovablelabs:mainfrom
hurrymaplelad:oj-stylex-utf16-sort

Conversation

@hurrymaplelad

@hurrymaplelad hurrymaplelad commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Use UTF-16 code-unit order for StyleX stylesheet tie-breaks, pseudo runs, and theme overrides, matching the proposed JS compiler order. Numeric priorities, pseudo-element boundaries, and default-first behavior are unchanged.

Stylesheet order changes where collation and code-unit order differ. Pseudo and theme override class-name hashes can also change when their hash inputs reorder.

Test plan: both #795 repros fail on main and pass here. make lint and make test pass locally with browser and fixtures required. The changed goldens and focused output match the JS UTF-16 comparator, including the cases in meta/stylex#2066.

Refs #795 and meta/stylex#2065.

@hurrymaplelad
hurrymaplelad marked this pull request as ready for review November 23, 2026 22:24
@hurrymaplelad
hurrymaplelad requested a review from a team as a code owner November 23, 2026 22:24
hurrymaplelad and others added 2 commits November 25, 2026 14:08
Use one order for stylesheet tie-breaks, pseudo runs, and theme overrides. Remove the locale tables and keep priority and special-case ordering intact.

Refs: lovablelabs#795
Refs: meta/stylex#2065
…sed order in the pins, add the changelog entries
@raphamorim
raphamorim merged commit e2796df into lovablelabs:main Nov 25, 2026
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.

2 participants