Skip to content

Transition hints aren't supported #7

@barklund

Description

@barklund

Color stops without a color, a so-called transition hint, are not supported by the parser.

This is a legal gradient:

linear-gradient(red, 10%, blue);

However, it's not supported by your current parser.

It's impossible to express as a "normal" gradient, as it's kind of equivalent to:

linear-gradient(red 0%, color-between-red-and-blue 10%, blue 100%);

But not exactly. It will actually give an exponential color curve between the two values (unless placed exactly in the center), and not two separate linear color curves. It cannot be expressed as a regular gradient.

Read more about coloring the gradient in the spec.

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