Skip to content

Assert computed colors using hex notation #227

@jsha

Description

@jsha

Right now, as far as I can tell, colors have to be asserted like this:

assert-css: ("#impl", {"color": "rgb(197, 197, 197)", "background-color": "rgba(255, 236, 164, 0.06)"})

But if the corresponding CSS specified those colors with hex codes, it's hard to see whether this is correct or not. It should be possible to assert:

assert-css: ("#impl", {"color": "#e1e1e1", "background-color": "#ab20de"})

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