layout: Take into account display: table etc in offset* queries (#32448)

* layout: Take into account `display: table` etc in offset* queries

The specification says that for deciding whether an element should be
used for offset* queries, a browser should take into account whether the
element is a table cell or table. This change makes that happen.

Co-authored-by: Oriol Brufau <obrufau@igalia.com>

* Only tag HTML elements if they are in the HTML namespace

---------

Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Martin Robinson 2024-06-10 17:05:57 +02:00 committed by GitHub
parent 35bbcc0d95
commit f4c9b310d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 60 additions and 127 deletions

View file

@ -1,6 +1,3 @@
[baseline-td.html]
[table, .display-table 1]
expected: FAIL
[table, .display-table 3]
expected: FAIL

View file

@ -1,3 +0,0 @@
[element-sizing.html]
[table 2]
expected: FAIL

View file

@ -1,7 +1,4 @@
[td-box-sizing-003.html]
[table 8]
expected: FAIL
[table 9]
expected: FAIL