Skip to content

Interpolation color space for gradients #109

Closed

Description

@nt1m

** Test List **

  • css/css-images/gradient/gradient-eval-002.html
  • css/css-images/gradient/gradient-eval-003.html
  • css/css-images/gradient/gradient-eval-005.html
  • css/css-images/gradient/gradient-eval-006.html
  • css/css-images/gradient/gradient-eval-007.html
  • css/css-images/gradient/gradient-eval-008.html
  • css/css-images/gradient/gradient-eval-009.html
  • css/css-images/parsing/gradient-interpolation-method-valid.html
  • css/css-images/parsing/gradient-interpolation-method-invalid.html
  • css/css-images/parsing/gradient-interpolation-method-computed.html

** Rationale **

When I originally audited all the CSS Color tests in #20, I did consider adding these (see follow up comments), though it wasn't clear at the time that:

  1. It would be deemed ready to ship by CSSWG
  2. If other browsers needed some kind of fuzzing

Things are more clear now:

  1. Yes, this feature was deemed ready to ship: [css-color-5][css-images-4] Are these features ready to ship? w3c/csswg-drafts#7310 (comment)
  2. Many tests in the test list need to be changed to fail if the syntax isn't supported (by adding a red background underneath for instance). Also, many tests in the directory test color spaces, so I think we shouldn't need fuzzy matching, but if we do turn out to need it, we can always use our existing fuzzy meta tag.

I don't feel super strongly at this point in the year, I'm mostly filing this issue since to me this seemed more of an unintentional omission than intentional one.

WDYT? @emilio @argyleink

Activity

  1. added
    test-change-proposal
    on Aug 13, 2022
  2. foolip commented on Aug 18, 2022

    @foolip
    Member

    @sesse WDYT?

  3. nt1m commented on Aug 18, 2022

    @nt1m
    MemberAuthor

    @emilio @jgraham What do you think?

  4. sesse commented on Aug 19, 2022

    @sesse

    The gradient-eval-* parts seem reasonable to me; they're fairly core functionality in the gradient spec. I don't fully understand the gradient-interpolation-method-* tests offhand, so I can't say much about them.

  5. nt1m commented on Aug 30, 2022

    @nt1m
    MemberAuthor

    @sesse They're about the new syntax that allows specifying the color-space used for interpolation in gradient functions, e.g. linear-gradient(in lch, red, blue) for instance.

  6. svgeesus commented on Sep 7, 2022

    @svgeesus

    I agree with the rationale, and am happy to review a PR which adds a red fail if the syntax is unsupported (just an @supports would work there).

  7. foolip commented on Sep 15, 2022

    @foolip
    Member

    @lilles can you also review you're OK with including these tests in Interop 2022, since you're now reviewing some of the implementation?

  8. lilles commented on Sep 16, 2022

    @lilles
    Member

    Yes.

  9. lilles commented on Sep 16, 2022

    @lilles
    Member
  10. foolip commented on Sep 16, 2022

    @foolip
    Member

    @jgraham can you chase someone for a Gecko position?

  11. emilio commented on Oct 6, 2022

    @emilio

    Yeah, including these seems ok.

  12. jensimmons commented on Oct 15, 2022

    @jensimmons
    Contributor

    It sounds like we are going to add these to Interop 2022. If for some reason we don't, adding for Interop 2023 would be good to do. We haven't filed an issue, however, since it's likely to go into 2022.... but typing out this comment to reserve the possibility of sticking in the 2023 pile for consideration if needed.

  13. moved this to Proposed in Interop 2023on Oct 16, 2022
  14. removed
    test-change-proposal
    on Oct 20, 2022
  15. nt1m commented on Oct 20, 2022

    @nt1m
    MemberAuthor

    Let's make this a proposal for next year.

  16. changed the title [-]Consider including interpolation color space for gradients[/-] [+]Interpolation color space for gradients[/+] on Nov 9, 2022
  17. foolip commented on Nov 11, 2022

    @foolip
    Member

    @nt1m since this isn't a focus area proposal, we should handle it like the flex/grid expansion, would you agree?

  18. nt1m commented on Nov 11, 2022

    @nt1m
    MemberAuthor

    Could go either way, this could perfectly be a new focus area given this is a separate spec (CSS images), but this does also fit into "Color spaces". I have no strong opinion here.

  19. foolip commented on Nov 11, 2022

    @foolip
    Member

    There are 196 existing tests in "Color Spaces and Functions" and the suggestion is to add 10. That means the worst case reduction in score would be from 100% to 95%.

    We have support from representatives of all 3 engines on this thread, so I think we should bring this up in a future meeting to see if we can just label the tests and be done with it. In particular I'd want @jgraham to weigh in then.

  20. foolip commented on Nov 11, 2022

    @foolip
    Member

    In the MDN short survey on CSS & HTML, "CSS color spaces and functions (color(), lab(), gradients, etc.)" was selected by ~25% of survey takers, putting it in the top third of the 20 options. (There is some uncertainty as with any survey data.)

  21. foolip commented on Feb 1, 2023

    @foolip
    Member

    Thank you for proposing interpolation color space for gradients for inclusion in Interop 2023.

    We are pleased to let you know that this proposal was accepted as part of the Color Spaces and Functions focus area. You can follow the progress of this Focus Area on the Interop 2023 dashboard.

    For an overview of our process, see the proposal selection summary. Thank you for contributing to Interop 2023!

    Posted on behalf of the Interop team.

  22. added
    accepted
    on Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedfocus-area-proposal

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions