diff --git a/Tests/LibWeb/Layout/expected/svg/inline-svg-with-zero-intrinsic-size-and-no-viewbox.txt b/Tests/LibWeb/Layout/expected/svg/inline-svg-with-zero-intrinsic-size-and-no-viewbox.txt index e5a9f22cf61..61302529f93 100644 --- a/Tests/LibWeb/Layout/expected/svg/inline-svg-with-zero-intrinsic-size-and-no-viewbox.txt +++ b/Tests/LibWeb/Layout/expected/svg/inline-svg-with-zero-intrinsic-size-and-no-viewbox.txt @@ -6,12 +6,6 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline " " frag 2 from SVGSVGBox start: 0, length: 0, rect: [16,21 0x0] baseline: 0 ImageBox at (8,21) content-size 0x0 children: not-inline - (SVG-as-image isolated context) - Viewport <#document> at (0,0) content-size 0x0 [BFC] children: inline - SVGSVGBox at (0,0) content-size 0x0 [SVG] children: inline - TextNode <#text> - SVGGeometryBox at (0,0) content-size 1x1 children: not-inline - TextNode <#text> TextNode <#text> SVGSVGBox at (16,21) content-size 0x0 [SVG] children: inline TextNode <#text> diff --git a/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp b/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp index 0a29e967c27..9f99bcd8ed1 100644 --- a/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp +++ b/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp @@ -495,6 +495,8 @@ Vector> EventLoop::documents_in_this_event_loop() cons Vector> documents; for (auto& document : m_documents) { VERIFY(document); + if (document->is_decoded_svg()) + continue; documents.append(JS::make_handle(*document)); } return documents;