Skip to content

“Stripes” gradient preset output is missing hint values #119

@ollicle

Description

@ollicle

The stripes sample is rendering solid black.

Generated output:

:root {
  --hdr-gradient: linear-gradient(
    to top right in oklab,
    #fff, #000 0%, #fff 0%, #000 0%, #fff 0%, #000 0%
  );
  --sdr-gradient: linear-gradient(to top right, #fff, #000 0%, #fff 0%, #000 0%, #fff 0%, #000 0%);

  background: var(--hdr-gradient);
}

If I nudge the % values in the UI the values are inserted. e.g.

:root {
  --hdr-gradient: linear-gradient(
    to top right in oklab,
    #fff, 11%, #000 0% 21%, 31%, #fff 0% 41%, 51%, #000 0% 61%, 71%, #fff 0% 81%, 91%, #000 0% 99%
  );
  --sdr-gradient: linear-gradient(to top right, #fff, 11%, #000 0% 21%, 31%, #fff 0% 41%, 51%, #000 0% 61%, 71%, #fff 0% 81%, 91%, #000 0% 99%);

  background: var(--hdr-gradient);

Same in Firefox (146.0b3) and a webkit browser (Orion).

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