mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb: Never blockify HTML <br> elements
This is a bit iffy, but since <br> elements can't be implemented in "just CSS" today, we should also exclude them from the blockification algorithm. This is important, since <br> is expected to always have inline-like behavior.
This commit is contained in:
parent
a7c770268f
commit
d54cd23615
Notes:
sideshowbarker
2024-07-17 06:40:21 +09:00
Author: https://github.com/awesomekling
Commit: d54cd23615
Pull-request: https://github.com/SerenityOS/serenity/pull/20887
3 changed files with 15 additions and 0 deletions
|
@ -99,6 +99,7 @@ public:
|
|||
virtual bool is_html_table_section_element() const { return false; }
|
||||
virtual bool is_html_table_row_element() const { return false; }
|
||||
virtual bool is_html_table_cell_element() const { return false; }
|
||||
virtual bool is_html_br_element() const { return false; }
|
||||
virtual bool is_navigable_container() const { return false; }
|
||||
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<Node>> pre_insert(JS::NonnullGCPtr<Node>, JS::GCPtr<Node>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue