mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
LibHTML: Implement the <hr> element
This also meant I had to implement basic support for the border-styles "inset" and "outset". If it's neither of those, we default to "solid".
This commit is contained in:
parent
53fae2af4f
commit
8f842375a2
6 changed files with 54 additions and 4 deletions
10
Libraries/LibHTML/DOM/HTMLHRElement.cpp
Normal file
10
Libraries/LibHTML/DOM/HTMLHRElement.cpp
Normal file
|
@ -0,0 +1,10 @@
|
|||
#include <LibHTML/DOM/HTMLHRElement.h>
|
||||
|
||||
HTMLHRElement::HTMLHRElement(Document& document, const String& tag_name)
|
||||
: HTMLElement(document, tag_name)
|
||||
{
|
||||
}
|
||||
|
||||
HTMLHRElement::~HTMLHRElement()
|
||||
{
|
||||
}
|
9
Libraries/LibHTML/DOM/HTMLHRElement.h
Normal file
9
Libraries/LibHTML/DOM/HTMLHRElement.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibHTML/DOM/HTMLElement.h>
|
||||
|
||||
class HTMLHRElement : public HTMLElement {
|
||||
public:
|
||||
HTMLHRElement(Document&, const String& tag_name);
|
||||
virtual ~HTMLHRElement() override;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue