Support Alpha Channel in HWB Color for React Native 0.79.0 #50583
Labels
Needs: Author Feedback
Needs: Repro
This issue could be improved with a clear list of steps to reproduce the issue.
Resolution: Fixed
A PR that fixes this issue has been merged.
Description
React Native 0.79.0 introduced support for the modern HWB color format, aligning with the W3C CSS Color Module Level 4 specification. However, the current implementation lacks support for the alpha channel.
syntax:
hwb(hue whiteness% blackness% / alpha)
.Steps to reproduce
Define a style that uses an HWB color with an alpha channel, e.g.:
Expected Behavior
The backgroundColor property should render the view with the correct HWB color and transparency (e.g.,
hwb(200 30% 20% / 0.5)
as a semi-transparent blue).Actual Behavior
The color is ignored.
React Native Version
0.79.0
Affected Platforms
Runtime - iOS
Output of
npx @react-native-community/cli info
Stacktrace or Logs
Reproducer
//
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: