LibWeb/HTML: Use paintable box for 'associated CSS layout box' check

This is consistent with other functions such as
HTMLElement::offset_width and fixes a crash for the included test.
Returning an offset of zero is not correct for this case, but this is
still an improvement to not crash.
This commit is contained in:
Shannon Booth 2024-12-29 12:43:57 +13:00 committed by Andreas Kling
commit 44bb2b7e32
Notes: github-actions[bot] 2025-01-02 10:29:35 +00:00
3 changed files with 78 additions and 2 deletions

View file

@ -0,0 +1,24 @@
Harness status: OK
Found 18 tests
3 Pass
15 Fail
Fail display: block
Pass display: run-in
Pass display: flow
Fail display: flow-root
Fail display: table
Pass display: list-item
Fail display: table-row-group
Fail display: table-header-group
Fail display: table-footer-group
Fail display: table-row
Fail display: table-cell
Fail display: table-column-group
Fail display: table-column
Fail display: table-caption
Fail display: ruby-base
Fail display: ruby-text
Fail display: ruby-base-container
Fail display: ruby-text-container