but check #35:`You should use two color-stops (expressed in percentage) to make the transition from one color to the following color a hard line for your#legend-gradient. Remember to use your --color# variables.` keeps being caught.
I’ve tried with the second variable, I’ve tried without the second variable, I’ve tried, while testing, named colors, and I’ve tried instead of 6 lines using 3 lines…I still get the error.
I’ve edited your post to improve the readability of the code. When you enter a code block into a forum post, please precede it with three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add the backticks.
That syntax doesn’t look like the syntax in the MDN example.
And when you format your code the three backticks should be on a separate line before and after the code. I edited it for you. I find it easier to just use the </> on the toolbar to format code.