LibWeb: Add BasicShapeStyleValue to represent CSS basic shapes

See: https://www.w3.org/TR/css-shapes-1/#basic-shape-functions

This patch only implements the `polygon()` basic shape (with the rest
left as FIXMEs).
This commit is contained in:
MacDue 2024-05-25 23:06:47 +01:00 committed by Andreas Kling
commit 5f17d9b34a
Notes: sideshowbarker 2024-07-17 04:49:48 +09:00
6 changed files with 126 additions and 0 deletions

View file

@ -14,6 +14,7 @@
#include <LibWeb/CSS/StyleValues/AngleStyleValue.h>
#include <LibWeb/CSS/StyleValues/BackgroundRepeatStyleValue.h>
#include <LibWeb/CSS/StyleValues/BackgroundSizeStyleValue.h>
#include <LibWeb/CSS/StyleValues/BasicShapeStyleValue.h>
#include <LibWeb/CSS/StyleValues/BorderRadiusStyleValue.h>
#include <LibWeb/CSS/StyleValues/CalculatedStyleValue.h>
#include <LibWeb/CSS/StyleValues/ColorStyleValue.h>