mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 20:42:11 +02:00
Implement the forwarded part names step of the CSS Shadow Parts spec in ShadowRoot::calculate_part_element_map(). When a shadow host has an exportparts attribute, the inner shadow root's part element map is consulted and matching parts are added to the outer shadow root's map under the exported name. This supports both shorthand same-name forwarding (exportparts= "foo") and renamed forwarding (exportparts="foo: bar"), and chains transitively through nested shadow boundaries via recursive part_element_map() calls. Fixes 4 WPT tests: simple-forward, simple-forward-shorthand, double-forward, and precedence-part-vs-part.
32 KiB
32 KiB