mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Add a flag for UA internal shadow roots
This commit is contained in:
committed by
Sam Atkins
parent
853526200a
commit
73fcbb0666
Notes:
github-actions[bot]
2026-02-06 10:46:15 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/73fcbb06666 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7721 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/awesomekling ✅ Reviewed-by: https://github.com/konradekk
@@ -234,6 +234,7 @@ WebIDL::ExceptionOr<void> HTMLDetailsElement::create_shadow_tree_if_needed()
|
||||
|
||||
// The details element is expected to have an internal shadow tree with three child elements:
|
||||
auto shadow_root = realm.create<DOM::ShadowRoot>(document(), *this, Bindings::ShadowRootMode::Closed);
|
||||
shadow_root->set_user_agent_internal(true);
|
||||
shadow_root->set_slot_assignment(Bindings::SlotAssignmentMode::Manual);
|
||||
|
||||
// The first child element is a slot that is expected to take the details element's first summary element child, if any.
|
||||
|
||||
Reference in New Issue
Block a user