CSS two-location color stop logic example?

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
JAB Creations
Hobby Astronomer
Hobby Astronomer
Posts: 24
Joined: 2021-03-08, 10:52

CSS two-location color stop logic example?

Post by JAB Creations » 2025-04-14, 15:31

Pale Moon 3.7 release notes:
https://www.palemoon.org/releasenotes.shtml
Implemented CSS two-location color stop logic. This allows for two-location color stops (`color x% y%`) in gradients, which is shorthand for `color x%, color y%` where both colors are equal.
Okay great, but I can't find any examples. What would be an example gradient that will now work in 3.7 but not 3.6 please?

User avatar
Gemmaugr
Lunatic
Lunatic
Posts: 381
Joined: 2025-02-03, 07:55

Re: CSS two-location color stop logic example?

Post by Gemmaugr » 2025-04-14, 15:50


User avatar
JAB Creations
Hobby Astronomer
Hobby Astronomer
Posts: 24
Joined: 2021-03-08, 10:52

Re: CSS two-location color stop logic example?

Post by JAB Creations » 2025-04-14, 16:01

Thank you.

https://bugzilla.mozilla.org/show_bug.cgi?id=1352643

Code: Select all

CSS.supports('background', 'linear-gradient(45deg, #f06 25%, yellow 25% 50%, #f06 50% 75%, yellow 75%)');