-
Notifications
You must be signed in to change notification settings - Fork 84
TextHeightUITests.foregroundColor renders differently on macOS #971
Copy link
Copy link
Closed
Labels
area: renderingDisplayList, render backends, renderer hosts, drawing, and effects.DisplayList, render backends, renderer hosts, drawing, and effects.area: testsTest suites, UI tests, fixtures, snapshots, and test support code.Test suites, UI tests, fixtures, snapshots, and test support code.area: textText, labels, line style, and text rendering APIs.Text, labels, line style, and text rendering APIs.impact: visual-diffVisual mismatch, screenshot diff, or rendering fidelity issue.Visual mismatch, screenshot diff, or rendering fidelity issue.platform: macOSmacOS-specific behavior or support.macOS-specific behavior or support.type: bugSomething is not working correctly.Something is not working correctly.
Description
Activity
Metadata
Metadata
Assignees
Labels
area: renderingDisplayList, render backends, renderer hosts, drawing, and effects.DisplayList, render backends, renderer hosts, drawing, and effects.area: testsTest suites, UI tests, fixtures, snapshots, and test support code.Test suites, UI tests, fixtures, snapshots, and test support code.area: textText, labels, line style, and text rendering APIs.Text, labels, line style, and text rendering APIs.impact: visual-diffVisual mismatch, screenshot diff, or rendering fidelity issue.Visual mismatch, screenshot diff, or rendering fidelity issue.platform: macOSmacOS-specific behavior or support.macOS-specific behavior or support.type: bugSomething is not working correctly.Something is not working correctly.
Summary
TextHeightUITests/foregroundColor()fails its macOS snapshot comparison.The rendered text differs from the SwiftUI reference even though both display lists place the two text items directly adjacent to each other.
Reproduction
The failing view is:
Run
TextHeightUITests/foregroundColor()on macOS and compare the OpenSwiftUI result with the SwiftUI reference.Current behavior
OpenSwiftUI produces a snapshot mismatch for the foreground color example.
Display list comparison
OpenSwiftUI
SwiftUI
Expected behavior
The OpenSwiftUI rendering should match the SwiftUI reference on macOS, allowing
TextHeightUITests/foregroundColor()to pass.