jotform / css.js

A lightweight, battle tested, fast, CSS parser in JavaScript
https://medium.com/jotform-form-builder/writing-a-css-parser-in-javascript-3ecaa1719a43
MIT License
426 stars 63 forks source link

A test-example that fails with comments #33

Open ernesto-sun opened 3 years ago

ernesto-sun commented 3 years ago

Hello!

Happy and Thanks!! Just wanted to provide an example where parse does not handle the comments, but put them into the 'object.directive' instead.

<style> 
:root 
{
--col-bg:               #ffffff;         /* Background */
--col-fg:               #003344;         /* Foreground */
--col-bg-main:         rgba(255,255,255,0.8);  /* background of content-area */ 
}
</style>