Files
ladybird/Tests/LibWeb/Text/expected/css/gradient-position-serialization.txt
Callum Law acc8b90549 LibWeb: Improve gradient position serialization
`EdgeStyleValues` which consist of an offset of a `calc()`s which
resolves to 50% should be considered "centered" for
`SerializationMode::ResolvedValue` for the purpose of omitting the
position value from gradient serialization.
2026-01-02 11:43:10 +01:00

14 lines
724 B
Plaintext

#a { background-image: radial-gradient(red, blue); }
#b { background-image: radial-gradient(red, blue); }
#c { background-image: radial-gradient(red, blue); }
#d { background-image: radial-gradient(red, blue); }
#e { background-image: radial-gradient(at calc(50%) calc(50%), red, blue); }
#f { background-image: radial-gradient(at calc(50% * sign(1em - 1px)) calc(50% * sign(1em - 1px)), red, blue); }
Computed:
#a: radial-gradient(rgb(255, 0, 0), rgb(0, 0, 255))
#b: radial-gradient(rgb(255, 0, 0), rgb(0, 0, 255))
#c: radial-gradient(rgb(255, 0, 0), rgb(0, 0, 255))
#d: radial-gradient(rgb(255, 0, 0), rgb(0, 0, 255))
#e: radial-gradient(rgb(255, 0, 0), rgb(0, 0, 255))
#f: radial-gradient(rgb(255, 0, 0), rgb(0, 0, 255))