Support un-'px'ed styles
- Dominant language
- JavaScript
- Stars
- 284
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
We should support the same CSS style objects as React. For example, we should allow for `{ width: 10}` to be a valid style object.
In general, why don't we utilize `CSSPropertyOperations.createMarkupForStyles` to generate a string of CSS? We could call it after checking for pseudo-selectors and media queries, and performing whatever pre-processing we want to support. I've already implemented this and can merge it in, if you agree.
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no files or tests; start by locating the style-object serialization entry point and compare its handling with React's CSSPropertyOperations.createMarkupForStyles. Done means numeric values such as { width: 10 } serialize as valid CSS while pseudo-selectors, media queries, and existing preprocessing continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100