This website requires JavaScript.
Explore
Help
Sign in
Stowage
/
ladybird
Watch
2
Star
0
Fork
You've already forked ladybird
0
mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced
2025-11-12 03:01:04 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
027c9f53be
ladybird
/
Tests
/
LibWeb
/
Text
/
expected
/
HTML
/
HTMLElement-offsetFoo-for-split-inline-element.txt
5 lines
69 B
Text
Raw
Normal View
History
Unescape
Escape
LibWeb: Support inserting non-inline elements into inline elements Our layout tree requires that all containers either have inline or non-inline children. In order to support the layout of non-inline elements inside inline elements, we need to do a bit of tree restructuring. It effectively simulates temporarily closing all inline nodes, appending the block element, and resumes appending to the last open inline node. The acid1.txt expectation needed to be updated to reflect the fact that we now hoist its <p> elements out of the inline <form> they were in. Visually, the before and after situations for acid1.html are identical.
2025-01-15 16:37:30 +01:00
b.offsetTop: 8
b.offsetLeft: 8
b.offsetWidth: 784
LibWeb: Scale font size by 1.15 for `line-height: normal` Browsers such as Chrome and Firefox apply an arbitrary scale to the current font size if `normal` is used for `line-height`. Firefox uses 1.2 while Chrome uses 1.15. Let's go with the latter for now, it's relatively easy to change if we ever want to go back on that decision. This also requires updating the expectations for a lot of layout tests. The upside of this is that it's a bit easier to compare our layout results to other browsers', especially Chrome.
2025-04-04 15:08:15 +02:00
b.offsetHeight: 54
Reference in a new issue
Copy permalink