diff --git a/Tests/LibWeb/Text/expected/DOM/Offset-of-empty-inline-element.txt b/Tests/LibWeb/Text/expected/DOM/Offset-of-empty-inline-element.txt new file mode 100644 index 0000000000..369a7c1278 --- /dev/null +++ b/Tests/LibWeb/Text/expected/DOM/Offset-of-empty-inline-element.txt @@ -0,0 +1,2 @@ + Top: 0 +Left: 0 diff --git a/Tests/LibWeb/Text/input/DOM/Offset-of-empty-inline-element.html b/Tests/LibWeb/Text/input/DOM/Offset-of-empty-inline-element.html new file mode 100644 index 0000000000..59adbb78a4 --- /dev/null +++ b/Tests/LibWeb/Text/input/DOM/Offset-of-empty-inline-element.html @@ -0,0 +1,12 @@ + + + +
+ + diff --git a/Userland/Libraries/LibWeb/Painting/Paintable.cpp b/Userland/Libraries/LibWeb/Painting/Paintable.cpp index 899b934316..61eca81b3d 100644 --- a/Userland/Libraries/LibWeb/Painting/Paintable.cpp +++ b/Userland/Libraries/LibWeb/Painting/Paintable.cpp @@ -158,7 +158,7 @@ CSSPixelPoint Paintable::box_type_agnostic_position() const auto const& inline_paintable = static_cast