5 of 6 standards met
Summary Fixes #872. Percentage /// on flex items resolved against the grandparent's owner size instead of the parent container's inner size. This is because received (the node's parent, i.e. the flex item's grandparent) rather than (the node's own inner content area, i.e. the flex item's actual parent) at three call sites: in in in The fix is gated behind a new errata flag , so consumers using or errata (e.g. React Native) automatically preserve the old behavior. Default () now produces correct W3C-conformant results. This is a successor to #1015, which identified the correct fix but was not merged because it needed to be gated behind an errata flag (which didn't exist at the time). Test plan Added gentest fixtures for nested and (Chrome-verified: child = 5px = 50% of parent's 10px, not 20px = 50% of grandparent's 40px) Added hand-written errata tests verifying: Default behavior produces correct result (5px) errata preserves old behavior (20px) errata includes the new flag Cross-axis (column direction with ) works correctly Disabled test () where Yoga now diverges from Chrome (same pattern as existing ) All 832 tests pass (786 pass, 46 skip), 0 failures passes for all 75 generated files
Repository: facebook/yoga. Description: Yoga is an embeddable layout engine targeting web standards. Stars: 18721, Forks: 1517. Primary language: C++. Languages: C++ (46.4%), Java (25%), TypeScript (23.1%), HTML (2.6%), JavaScript (1%). License: MIT. Homepage: https://yogalayout.dev/ Latest release: v3.2.1 (1y ago). Open PRs: 43, open issues: 102. Last activity: 2d ago. Community health: 75%. Top contributors: NickGerleman, vjeux, davidaurelio, joevilches, SidharthGuglani-zz, priteshrnandgaonkar, woehrl01, splhack, passy, d16r and others.
Last 12 weeks ยท 15 commits