1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 11:55:12 +00:00

LibHTML: Add a simple <style> element for inline CSS

This commit is contained in:
Andreas Kling 2019-09-29 17:43:30 +02:00
parent 7912592f89
commit a4fccc02ec
4 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,17 @@
#pragma once
#include <LibHTML/DOM/HTMLElement.h>
class StyleSheet;
class HTMLStyleElement : public HTMLElement {
public:
HTMLStyleElement(Document&, const String& tag_name);
virtual ~HTMLStyleElement() override;
virtual void inserted_into(Node&) override;
virtual void removed_from(Node&) override;
private:
RefPtr<StyleSheet> m_stylesheet;
};