cssinjs / cssinjs/istf-spec

Optimization: use single array

Open
#19 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
250
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Should we go for single array? As consequence we will only be able to express this:

1. [MARKER]
2. [MARKER, value]

Right now it seems to work nicely.

```js
[
[RULE_START, 1],
[SELECTOR, 'body'],
[PROPERTY, 'color'],
[VALUE, 'red'],
[RULE_END]
]
```

will become

```js
[
RULE_START, 1,
SELECTOR, 'body',
PROPERTY, 'color',
VALUE, 'red',
RULE_END
]
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.