ph-css
ph-css copied to clipboard
Supports calculating expression results
For example, calculating the final result using values with CSS variables.
margin-left: var(--text-margin) -> margin-left: 12
The execution part of CSS is not part of ph-css - it's really on providing the data structures to parse and create CSS from scratch. For calculations to be performed additional "browser like" data structures and knowledge would be necessary