1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:37:44 +00:00

LibWeb: Let <br> elements have style

At the very least, we need to respect `<br style="display: none">`
This commit is contained in:
Andreas Kling 2021-09-23 19:46:20 +02:00
parent c113c092ee
commit 5a7d3e3cc1
3 changed files with 9 additions and 5 deletions

View file

@ -13,7 +13,7 @@ namespace Web::Layout {
class BreakNode final : public NodeWithStyleAndBoxModelMetrics {
public:
BreakNode(DOM::Document&, HTML::HTMLBRElement&);
BreakNode(DOM::Document&, HTML::HTMLBRElement&, NonnullRefPtr<CSS::StyleProperties>);
virtual ~BreakNode() override;
const HTML::HTMLBRElement& dom_node() const { return verify_cast<HTML::HTMLBRElement>(*Node::dom_node()); }