1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:58:11 +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

@ -10,8 +10,8 @@
namespace Web::Layout {
BreakNode::BreakNode(DOM::Document& document, HTML::HTMLBRElement& element)
: Layout::NodeWithStyleAndBoxModelMetrics(document, &element, CSS::StyleProperties::create())
BreakNode::BreakNode(DOM::Document& document, HTML::HTMLBRElement& element, NonnullRefPtr<CSS::StyleProperties> style)
: Layout::NodeWithStyleAndBoxModelMetrics(document, &element, move(style))
{
set_inline(true);
}