Files
sousa-gecko/testing/web-platform/tests/css/css-ui/crashtests/input-range-content-url.html
T
Simon SapinandMartin Robinson 036e8512da Bug 2037518 [wpt PR 59691] - layout: Disregard 'content' property for <input> elements, a=testonly
Automatic update from web-platform-tests
layout: Disregard 'content' property for <input> elements

On elements (as opposed to pseudo-elements), CSS `content:
url(something)` turns the element into a replaced element like <img> and
ignores the DOM child nodes

Some elements like `<input>` are "widgets" that can have native
appearance: https://drafts.csswg.org/css-ui/#widget

When both apply to the same element like in the added test case, the
native appearance should take priority and the `content` property should
be disregarded: https://drafts.csswg.org/css-ui/#disregard

Previously Servo would do something half-way, generating boxes for the
native appearance (including an absolutely-positioned pseudo-element for
the slider of `<input type=range>`) but not generate fragments and later
expect to find fragments, causing a panic.

Fixes: https://github.com/servo/servo/issues/44540

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Signed-off-by: Simon Sapin <simon@igalia.com>

--

wpt-commits: 1d3aae1b5951bfd79d05dd156c0187b6a82ad1d2
wpt-pr: 59691
2026-05-12 08:46:44 +00:00

4 lines
129 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://github.com/servo/servo/issues/44540">
<input style="content: url()" type="range">