LibWeb: Restrict CSS gap properties to values allowed by the spec

Gap values are now represented by Variant<LengthPercentage, NormalGap>.
NormalGap is just an empty struct to represent the `normal` keyword.

This fixes a long-standing issue where we were incorrectly storing gaps
as CSS::Size, which led to us allowing a bunch of invalid gap values.
This commit is contained in:
Andreas Kling
2024-11-09 17:38:09 +01:00
committed by Andreas Kling
parent 2a741f81c7
commit 107b20e84d
Notes: github-actions[bot] 2024-11-09 18:23:29 +00:00
17 changed files with 157 additions and 120 deletions

View File

@@ -96,7 +96,7 @@ clear: none
clip: auto
clip-path: none
column-count: auto
column-gap: auto
column-gap: normal
column-span: none
column-width: auto
content: normal
@@ -172,7 +172,7 @@ position: static
r: 0px
right: auto
rotate: none
row-gap: auto
row-gap: normal
rx: auto
ry: auto
scrollbar-gutter: auto