emmetio / css-parser Goto Github PK
View Code? Open in Web Editor NEWCSS/LESS/SCSS fast and minimalistic parser
License: MIT License
CSS/LESS/SCSS fast and minimalistic parser
License: MIT License
In the below case, the node for the rule gets 1 child which is of type property with name
as margin\n padding
and value
as 10px
.foo {
margin
padding: 10px;
}
In the below case, the node for the rule gets 1 child which is of type property with name
as margin
and value
as padding: 10px
.foo {
margin:
padding: 10px;
}
Downstream issue in VS Code: microsoft/vscode#51867
See Using Liquid in Sass files
I tried to parse the below content by adding it to one of the test cases at https://github.com/emmetio/css-parser/blob/master/test/parse.js
.foo {
font-size: 10px;
color: {{ settings.was_price_color }};
}
When encountering the {{
, it fails at https://github.com/emmetio/css-parser/blob/master/index.js#L75 as the tokens
array is empty
In the below example, there are 2 nodes in the parsed model.
First is of type rule
which is right
Second is of type property
with name
as nav
which is clearly wrong.
.foo {
margin: 1px;
}
nav
I am assuming that there cannot be properties outside of a rule.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.