Support exporting shadow parts with the exportparts attribute (#37345)

The attribute is implemented as a new `AttrValue` variant containing the
mappings of exported part names
(https://github.com/servo/stylo/pull/197).

Take a look at the [MDN
page](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/exportparts)
for more information about the attribute.


Testing: Covered by WPT
Fixes: https://github.com/servo/servo/issues/35349

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2025-06-13 13:32:20 +02:00 committed by GitHub
parent 730fe35b42
commit 6cac782fb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 42 additions and 45 deletions

View file

@ -1,3 +0,0 @@
[both-part-and-exportparts.html]
[::part() rules match elements having both @part and @exportparts]
expected: FAIL

View file

@ -1,3 +0,0 @@
[double-forward.html]
[Part in inner host is forwarded through the middle host for styling by document style sheet]
expected: FAIL

View file

@ -1,2 +0,0 @@
[exportparts-different-scope.html]
expected: FAIL

View file

@ -1,3 +0,0 @@
[exportparts-multiple.html]
[Forwarding part under multiple names should work]
expected: FAIL

View file

@ -1,3 +0,0 @@
[invalidation-complex-selector-forward.html]
[Part in selected host changed color]
expected: FAIL

View file

@ -1,3 +0,0 @@
[precedence-part-vs-part.html]
[Style from document overrides style from outer CE]
expected: FAIL

View file

@ -1,3 +0,0 @@
[simple-forward-shorthand.html]
[Part in inner host is forwarded, under the same name, for styling by document style sheet]
expected: FAIL

View file

@ -1,3 +0,0 @@
[simple-forward.html]
[Part in inner host is forwarded for styling by document style sheet]
expected: FAIL