mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:37:34 +00:00
LibWeb: Ensure DocumentObserver document_completely_loaded() is called
This stopped being called for anything without a navigable container
after 76a97d8
, due to the early return. This broke SVG <use> elements
that reference elements defined later in the document.
This commit is contained in:
parent
785c9d5c2b
commit
daecf741d4
3 changed files with 31 additions and 6 deletions
12
Tests/LibWeb/Ref/svg-use-defined-later.html
Normal file
12
Tests/LibWeb/Ref/svg-use-defined-later.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<!doctype html>
|
||||
<link rel="match" href="reference/svg-use-defined-earlier.html" />
|
||||
<div>
|
||||
<svg width="100" height="100">
|
||||
<use xlink:href="#later-reference"></use>
|
||||
</svg>
|
||||
</div>
|
||||
<svg style="display: none">
|
||||
<symbol id="later-reference">
|
||||
<rect x="0" y="0" width="64" height="64" fill="green" />
|
||||
</symbol>
|
||||
</svg>
|
Loading…
Add table
Add a link
Reference in a new issue