-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Hi there.
I've analyzed the code. As far as it works well, some additional features would be appreciated.
Due to the fact that my proposals will (in most cases) be breaking changes, I suggest marking them v2.
Here are some suggestions:
- Rule type rework
- here is a css reference https://www.w3schools.com/cssref/css_selectors.php
- Example:
Suppose we have:
p.foo#bar {...}This could be parsed to the struct like
type Rule struct {
Selector string // p
ID string // bar
Class string // foo
}Then we can add String() method to easily restore stuff
This struct should be easily expendable
- Because style values could technically be list (like in tests for fontfamily), the field value should also be a list
@napsy what do you think about that?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels