Skip to content

v2 proposals #11

@gucio321

Description

@gucio321

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:

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions