Repository navigation
StyleX: use UTF-16 code-unit order for compiler sorts - #797
Merged
Merged
Conversation
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
hurrymaplelad
force-pushed
the
oj-stylex-utf16-sort
branch
from
November 25, 2026 22:10
01cc11a to
a0a4015
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 lintandmake testpass 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.