Roman Dvornov
Roman Dvornov
Good catch 👍 Agree, a newline must not be a part of bad-string-token. It's a bit tricky to fix it, since serialisation is affected as well. However, I almost done...
@pyoor You're right, it should contain a references to properties not types. I fixed the patch in CSSTree. However, the syntax definitions for `` and `` properties was changed. I...
Well, AST nodes has no context, so what you want can't be done without giving a context for a selector/rule... Anyway, truly speaking, I didn't think yet about such a...
I see. Well, you need a stack of rules (or all nodes, depends on your task) for your purposes. `walk()` has no such a feature for now, but you can...
Yes, since `mdn/data` is pinned in css-tree (because it breaks syntaxes time to time). But the problem is that `mdn/data` doesn't published a new version with your changes yet.
@Mouvedia I'm somewhat puzzled. I delved into the history of the keyword and discovered that it became unprefixed in Firefox 19, which was released over a decade ago (February 2013)....
@scripthunter7 Thank you for the PR! I'm supportive of this extension. However, there are a few points to address: 1. If we're introducing a custom tokenizer, it should be consistently...
This was implemented and will be available in next major version soon. > I'm slightly confused because the validator does recognise even the last example with their correct token types...
The substitution of `` with `` in `mdn/data` and CSSTree is a practical solution, eliminating the need for parsing exceptions or rule modifications for this infrequently used syntax. While adding...
I tried to rewrite CSSTree in TypeScript a couple of times. Add typing for List and other utils is quite a trivial problem that does not cause difficulties. However, a...