How does CSS computation for background percentages work? [duplicate]
问题 This question already has an answer here : Using percentage values with background-position on a linear gradient (1 answer) Closed 9 months ago . I'm currently playing around with CSS gradients and position, I kind of manage to do what I want but with lucky guesses but I'd like to understand how this actually all works. For instance, here's the French flag (merci): .serge_testDraw { width: 10rem; height: 10rem; border: 0.2rem solid black; background-image: linear-gradient(to right, blue 0%,