CSS Support

The styled-ppx CSS parser supports CSS Syntax Module Level 3 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.


CSS FeatureLinkSupported
Compositing and Blending Level 1https://www.w3.org/TR/compositing-1βœ…
CSS Backgrounds and Borders Module Level 3https://www.w3.org/TR/css-backgrounds-3🟠
CSS Box Sizing Module Level 3https://www.w3.org/TR/css-box-3🟠
CSS Cascading and Inheritance Level 3https://www.w3.org/TR/css-cascade-3βœ…
CSS Cascading and Inheritance Level 4https://www.w3.org/TR/css-cascade-4πŸ”΄
CSS Color Module Level 3https://www.w3.org/TR/css-color-3βœ…
CSS Color Module Level 4https://www.w3.org/TR/css-color-4🟠
CSS Color Adjustment Module Level 1https://www.w3.org/TR/css-color-adjust-1πŸ”΄
CSS Conditional Rules Level 3https://www.w3.org/TR/css-conditional-3πŸ”΄
CSS Containment Module Level 1https://www.w3.org/TR/css-contain-1βœ…
CSS Containment Module Level 2https://www.w3.org/TR/css-contain-2πŸ”΄
CSS Counter Styles Level 3https://www.w3.org/TR/css-counter-styles-3πŸ”΄
CSS Display Module Level 3https://www.w3.org/TR/css-display-3🟠
CSS Easing Functions Level 1https://www.w3.org/TR/css-easing-1βœ…
CSS Flexible Box Layout Module Level 1https://www.w3.org/TR/css-flexbox-1βœ…
CSS Fonts Module Level 3https://www.w3.org/TR/css-fonts-3🟠
CSS Fonts Module Level 4https://www.w3.org/TR/css-fonts-4🟠
CSS Grid Layout Module Level 1https://www.w3.org/TR/css-grid-1🟠
CSS Grid Layout Module Level 2https://www.w3.org/TR/css-grid-2πŸ”΄
CSS Images Module Level 3https://www.w3.org/TR/css-images-3πŸ”΄
CSS Images Module Level 4https://www.w3.org/TR/css-images-4πŸ”΄
CSS Lists and Counters Module Level 3https://www.w3.org/TR/css-lists-3πŸ”΄
CSS Logical Properties and Values Level 1https://www.w3.org/TR/css-logical-1🟠
CSS Multi-column Layout Module Level 1https://www.w3.org/TR/css-multicol-1🟠
CSS Positioned Layout Module Level 3https://www.w3.org/TR/css-position-3βœ…
CSS Box Sizing Module Level 3https://www.w3.org/TR/css-sizing-3βœ…
CSS Box Sizing Module Level 4https://www.w3.org/TR/css-sizing-4🟠
CSS Style Attributeshttps://www.w3.org/TR/css-style-attrβœ…
CSS Transforms Module Level 1https://www.w3.org/TR/css-transforms-1🟠
CSS Transforms Module Level 2https://www.w3.org/TR/css-transforms-2βœ…
CSS Basic User Interface Module Level 3https://www.w3.org/TR/css-ui-3βœ…
CSS Values and Units 3https://www.w3.org/TR/css-values-3🟠
CSS Custom Properties for Cascading Variables Module Level 1https://www.w3.org/TR/css-variables-1πŸ”΄
CSS Will Change Module Level 1https://www.w3.org/TR/css-will-change-1βœ…
CSS Writing Modes Level 3https://www.w3.org/TR/css-writing-modes-3βœ…
Media Queries Level 3https://www.w3.org/TR/css3-mediaqueries🟠
CSS Namespaces Module Level 3https://www.w3.org/TR/css-namespaces-3🟠
Selectors Level 3https://www.w3.org/TR/selectors-3βœ…
Selectors Level 4https://www.w3.org/TR/selectors-4🟠
CSS Box Alignment Module Level 3https://www.w3.org/TR/css-align-3βœ…
CSS Animations Level 1https://www.w3.org/TR/css-animations-1βœ…
CSS Fragmentation Module Level 3https://www.w3.org/TR/css-break-3βœ…
CSS Font Loading Module Level 3https://www.w3.org/TR/css-font-loading-3πŸ”΄
CSS Masking Module Level 1https://www.w3.org/TR/css-masking-1🟠
CSS Scroll Snap Module Level 1https://www.w3.org/TR/css-scroll-snap-1🟠
CSS Scrollbars Styling Module Level 1https://www.w3.org/TR/css-scrollbars-1πŸ”΄
CSS Shapes Module Level 1https://www.w3.org/TR/css-shapes-1πŸ”΄
CSS Speech Modulehttps://www.w3.org/TR/css-speech-1πŸ”΄
CSS Text Module Level 3https://www.w3.org/TR/css-text-3🟠
CSS Text Decoration Module Level 3https://www.w3.org/TR/css-text-decor-3βœ…
CSS Transitionshttps://www.w3.org/TR/css-transitions-1βœ…
CSS Writing Modes Level 4https://www.w3.org/TR/css-writing-modes-4βœ…
Filter Effects Module Level 1https://www.w3.org/TR/filter-effects-1🟠
Media Queries Level 4https://www.w3.org/TR/mediaqueries-4🟠
This table has been generated manually and it might be outdated.

All references are found in w3.org