mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 11:37:44 +00:00
LibHTML: Anonymous blocks *should* inherit some properties
Okay, I got that a bit wrong. Here's what CSS 2.1 says: "The properties of anonymous boxes are inherited from the enclosing non-anonymous box. Non-inherited properties have their initial value." This patch implements a better behavior by only copying the inherited properties from the parent style.
This commit is contained in:
parent
958b395418
commit
48f43a7429
4 changed files with 19 additions and 2 deletions
|
@ -27,6 +27,8 @@ public:
|
|||
private:
|
||||
virtual bool is_block() const override { return true; }
|
||||
|
||||
NonnullRefPtr<StyleProperties> style_for_anonymous_block() const;
|
||||
|
||||
void layout_inline_children();
|
||||
void layout_block_children();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue