feat(iOS): background-size, position and repeat styles#52283
Closed
intergalacticspacehighway wants to merge 9 commits intofacebook:mainfrom
Closed
feat(iOS): background-size, position and repeat styles#52283intergalacticspacehighway wants to merge 9 commits intofacebook:mainfrom
intergalacticspacehighway wants to merge 9 commits intofacebook:mainfrom
Conversation
ios build fix ios nits ios nits nit ios naming null checks
Contributor
|
@jorge-cab has imported this pull request. If you are a Meta employee, you can view this in D82993888. |
Contributor
|
Hmm position seems a bit funky. I'm still reviewing the rest of this PR but this difference popped out to me. There's a chance I'm doing something weird with my styles so do keep me honest |
2b8b230 to
9813634
Compare
Contributor
Author
|
Fixed here! Thanks for reviewing and catching the bug 🙏 |
8733d7d to
e87e851
Compare
Contributor
Author
|
The prebuild CI failure seems like a network issue. It failed at the upload header step. |
meta-codesync Bot
pushed a commit
that referenced
this pull request
Oct 24, 2025
Summary: This PR adds support for background size, position and repeat styles. It follows the [CSS](https://www.w3.org/TR/css-backgrounds-3/#backgrounds) spec. Currently we default to `background-origin: padding-box` and `background-clip : border-box` to match the web's behavior. We can introduce these styles later. I have split the PR intro three parts for review. This PR includes JS parsing and style propagation to native changes. I wanted to introduce one style at a time, but CSS spec is such that size, position and repeat are intertwined. ## Changelog: [GENERAL][ADDED] - Background size, position and repeat styles. <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: #52284 Test Plan: Merge the [iOS](#52283) and [android](#52282) PR into this, this PR includes `BackgroundImageExample`. I have also added testcases for parsing syntax in JS. https://github.com/user-attachments/assets/b7192fdf-52ba-4eb0-a1be-d47c72d87e92 Reviewed By: joevilches Differential Revision: D82973282 Pulled By: jorge-cab fbshipit-source-id: a94e33962c6708be963e1cac049da50d4764da64
|
@jorge-cab merged this pull request in d8c2f1c. |
Collaborator
|
This pull request was successfully merged by @intergalacticspacehighway in d8c2f1c When will my fix make it into a release? | How to file a pick request? |
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.


Summary:
This PR adds support for background size, position and repeat styles. It follows the CSS spec. Currently we default to
background-origin: padding-boxandbackground-clip : border-boxto match the web's behavior. We can introduce these styles later. I have split the PR intro three parts for review. This PR includes iOS only changes. I wanted to introduce one style at a time, but CSS spec is such that size, position and repeat are intertwined.Changelog:
[IOS][ADDED] - Background size, position and repeat styles.
Test Plan:
Merge the JS PR, run
pod installand test RNTester example, it includesBackgroundImageExample. I have also added testcases for syntax parsing in JS.Screen.Recording.2025-06-26.at.10.47.17.AM.mp4