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

LibHTML: Some initial works towards a simple CSS parser.

This commit is contained in:
Andreas Kling 2019-06-22 09:27:39 +02:00
parent 891e668e35
commit ae8eff55a7
3 changed files with 100 additions and 4 deletions

View file

@ -5,15 +5,15 @@
class Selector {
public:
Selector();
~Selector();
struct Component {
enum class Type { Invalid, TagName, Id, Class };
Type type { Type::Invalid };
String value;
};
explicit Selector(Vector<Component>&&);
~Selector();
const Vector<Component>& components() const { return m_components; }
private: