An open API service indexing awesome lists of open source software.

https://github.com/aftercss/aftercss

🌟 [WIP] Parser for CSS3.
https://github.com/aftercss/aftercss

css css3 parser

Last synced: 2 months ago
JSON representation

🌟 [WIP] Parser for CSS3.

Awesome Lists containing this project

README

          

# after-css

[![Build Status](https://travis-ci.com/aftercss/aftercss.svg?branch=better-parser)](https://travis-ci.com/aftercss/aftercss)
[![codecov](https://codecov.io/gh/aftercss/aftercss/branch/better-parser/graph/badge.svg)](https://codecov.io/gh/aftercss/aftercss)

---

implement of [CSS3](https://www.w3.org/TR/css-syntax-3/) in TypeScript.

## test-framework

```javascript
class TokenFixture extends BaseFixture{
async build(taskName){
this.srcDir// acess to src dir
await this.readSrcFile(filename);
// User do their work.
await this.writeActualFile(filename, content);
}
}
describe('test',function(){
const fixture = new TokenFixture(__dirname);
fixture.runTask(async item=>{
it(item.name,item=>fixture.build(item));
});
})
// 在每个runtask之后要处理一下actualfile和expectfile比较的问题,根据比较结果决定当前用例是否通过。
```