1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:57:35 +00:00

LibWeb: Add support for pseudo-class functions that take an ident param

This is prep work for `:dir()`, though other pseudo-classes may well use
it in the future too.
This commit is contained in:
Sam Atkins 2023-08-12 18:11:50 +01:00 committed by Andreas Kling
parent 9522f761a3
commit 5b125811f1
4 changed files with 33 additions and 0 deletions

View file

@ -12,6 +12,7 @@
#include <AK/String.h>
#include <AK/Vector.h>
#include <LibWeb/CSS/PseudoClass.h>
#include <LibWeb/CSS/ValueID.h>
namespace Web::CSS {
@ -96,6 +97,9 @@ public:
// Used for :lang(en-gb,dk)
Vector<FlyString> languages {};
// Used by :dir()
Optional<ValueID> identifier {};
};
struct Name {