1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-05 17:27:35 +00:00
serenity/Base/res/html
Sam Atkins 7c91fda088 LibWeb: Allow multiple text-decoration-lines
The spec grammar for `text-decoration-line` is:

`none | [ underline || overline || line-through || blink ]`

Which means that it's either `none`, or any combination of the other
values. This patch makes that parse for `text-decoration-line` and
`text-decoration`, stores the results as a Vector, and adjusts
`paint_text_decoration()` to run as a loop over all the values that are
provided.

As noted, storing a Vector of values is a bit wasteful, as they could be
stored as flags in a single `u8`. But I was getting too confused trying
to do that in a nice way.
2022-04-14 21:54:10 +02:00
..
misc LibWeb: Allow multiple text-decoration-lines 2022-04-14 21:54:10 +02:00
error.html LibWeb+Base: Use AK::SourceGenerator for error pages 2021-04-22 00:00:59 +02:00