Clipping the background
The generated rule places either linear-gradient() or radial-gradient() in a background property. background-clip: text limits the painted background to the foreground text shapes, and transparent glyph fill allows that clipped background to remain visible. Because the gradient belongs to the element's background painting area, changing its width, display mode, padding, or line breaks can change the visible color distribution.