layout: Do not add empty border images to the display list (#37534)

Zero-sized gradient border images cause WebRender to panic, so simply
don't add them to the display list.

Testing: This change adds a WPT crash test.
Fixes: #37432

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Martin Robinson 2025-06-18 17:53:29 +02:00 committed by GitHub
parent fc2135cc02
commit bdf8c0ebc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 34 additions and 0 deletions

View file

@ -952,6 +952,15 @@
]
]
},
"css-borders": {
"border-image-gradient-zero-size-transform-crash.html": [
"c722267fc08e41e1d5e4496d583fcaf4d179b2dd",
[
null,
{}
]
]
},
"css-break": {
"area-crash.html": [
"d47327cde3f6a963b8c6e61280d3063b28a2d25c",