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:
parent
2e2b97dc8a
commit
d99b1a9ea0
11 changed files with 123 additions and 0 deletions
21
LibHTML/CSS/Selector.h
Normal file
21
LibHTML/CSS/Selector.h
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue