Add a user agent style for the <slot> element (#37174)

In Chromium, the slot user agent stylesheet is located in
[html.css](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/resources/html.css;l=1654).

Testing: This change fixes
`tests/wpt/meta/shadow-dom/directionality-001.tentative.html.ini`.

Signed-off-by: kongbai1996 <1782765876@qq.com>
This commit is contained in:
Fuguo 2025-05-29 16:20:01 +08:00 committed by GitHub
parent c6e37e83e4
commit 1f315e6c9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -265,4 +265,8 @@ select {
padding: 0 0.25em;
/* Don't show a text cursor when hovering selected option */
cursor: default;
}
slot {
display: contents;
}

View file

@ -1,2 +0,0 @@
[directionality-001.tentative.html]
expected: FAIL