Files
sousa-gecko/testing/web-platform/tests/css/css-cascade/scope-ua-shadow-host.html
T
Tim Nguyen 1e0da28838 Bug 2019157 [wpt PR 58025] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=305369, a=testonly
Automatic update from web-platform-tests
WebKit export: REGRESSION (Safari 26.x): CSS rules within @scope not applied to input and textarea (#58025)

https://bugs.webkit.org/show_bug.cgi?id=305369

Co-authored-by: Matthieu Dubet <m_dubet@apple.com>
--

wpt-commits: 2fe220b448dea25548b3359ef2fa1e737e235fdc
wpt-pr: 58025
2026-02-26 15:20:41 +00:00

25 lines
568 B
HTML

<!DOCTYPE html>
<title>@scope works with elements that have UA shadow roots</title>
<link rel="help" href="https://drafts.csswg.org/css-cascade-6/#scoped-styles">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<style>
input {
appearance: none;
border: none;
padding: 0;
margin: 0;
background-color: red;
}
@scope (.test) {
input {
width: 100px;
height: 100px;
background-color: green;
}
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="test">
<input>
</div>