1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 00:15:08 +00:00

LibHTML: Add the outline of a CSS stylesheet object graph.

This commit is contained in:
Andreas Kling 2019-06-20 23:25:25 +02:00
parent 2e2b97dc8a
commit d99b1a9ea0
11 changed files with 123 additions and 0 deletions

21
LibHTML/CSS/Selector.h Normal file
View file

@ -0,0 +1,21 @@
#pragma once
#include <AK/AKString.h>
#include <AK/Vector.h>
class Selector {
public:
Selector();
~Selector();
struct Component {
enum class Type { Invalid, TagName, Id, Class };
Type type { Type::Invalid };
String value;
};
const Vector<Component>& components() const { return m_components; }
private:
Vector<Component> m_components;
};