CSS Support
The styled-ppx CSS parser supports CSS Syntax Module Level 3 (opens in a new tab) almost completely. We ensure that most CSS supported is used day to day and available in most major browsers.
There are a few levels of support in styled-ppx:
- Parser support: The parser understands CSS3.
- Code generation support: Can transform the CSS into CSS bindings.
- Interpolation support: We can interpolate values from outside of CSS creating type-safe holes.
Detailed view of the parsing support
β : Fully supported π : Partially supported π΄: Not supported
If you want to know which properties are supported, you can check our test here: https://github.com/davesnx/styled-ppx/blob/main/packages/ppx/test/css-support (opens in a new tab).
All references are found in w3.org (opens in a new tab)
- (CSS 1.0) Cascading Style Sheets Level 1 (opens in a new tab) β
- (CSS 2.1) Cascading Style Sheets Level 2 Revision 1 Specification (opens in a new tab) β
- (CSS 2.2) Cascading Style Sheets Level 2 Revision 2 Specification (opens in a new tab) β
- (CSS 3.0) CSS Syntax Module Level 3 (opens in a new tab) β