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
commit 5a7d3e3cc1
Notes: sideshowbarker 2024-07-18 03:28:57 +09:00
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);
}