Overflow implementation in Fabric as per Parity to Paper #15338
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.

Description
Type of Change
Why
The overflow CSS property was not implemented in the Fabric Composition architecture. Paper XAML architecture has supported overflow, but Fabric was missing this functionality entirely. This PR closing the feature gap between the two architectures where views with overflow hidden do not clip their children in Fabric apps, while they work correctly in Paper apps. This change brings Fabric to parity with Paper by implementing the missing overflow property support.
What
Added overflow clipping support to the Fabric architecture by implementing clipping logic in CompositionViewComponentView.cpp in two key locations:
The implementation checks if the overflow property is set to hidden using the yoga style overflow value. When overflow is hidden, it creates an InsetClip with zero insets on all sides to clip content to the visual bounds. For visible or scroll overflow values, it clears the clip by setting it to nullptr. This matches the existing Paper implementation approach which uses RectangleGeometry for clipping in XAML.
Screenshots
##paper overflow



##fabric without overflow
##fabric with overflow
Testing
Tested with RNTester View overflow examples by navigating to View component and scrolling to the Overflow section. Verified that the middle box labeled hidden with overflow hidden property now properly clips overflowing child content, matching Paper behavior exactly. The boxes with overflow undefined and overflow visible correctly allow content to extend beyond their bounds.
Ran both playground.sln (Paper) and playground-composition.sln (Fabric) to verify identical behavior between the two architectures.
Changelog
Should this change be included in the release notes: yes
Implemented overflow property support for Fabric architecture. Views with overflow hidden now properly clip their children to the container bounds, achieving parity with Paper architecture.
Microsoft Reviewers: Open in CodeFlow