mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +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:
parent
c113c092ee
commit
5a7d3e3cc1
Notes:
sideshowbarker
2024-07-18 03:28:57 +09:00
Author: https://github.com/awesomekling
Commit: 5a7d3e3cc1
3 changed files with 9 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue