Closed Bug 1880188 Opened 4 months ago Closed 4 months ago

Failing WPT shadow-dom/shadow-root-clonable.html

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: twisniewski, Assigned: avandolder)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete, Whiteboard: [wpt])

Attachments

(1 file)

See https://wpt.fyi/results/shadow-dom/shadow-root-clonable.html

This is now listed on the interop2024 dashboard.

Severity: -- → S3
Priority: -- → P2
Assignee: nobody → avandolder
Status: NEW → ASSIGNED
Pushed by avandolder@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5d6cda8dd7c1
Add shadowrootclonable attribute support. r=webidl,emilio
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch

MDN Docs work for this can be tracked in https://github.com/mdn/content/issues/33160

I have a few questions about the purpose of this feature here - https://github.com/mdn/content/pull/33325#discussion_r1584290677 - would appreciate advice. Specifically we have lots of docs explaining that shadow root is clonable or not-clonable, but nothing on the implications of this - i.e. what it means for web components. Advice welcome.

Somewhat related, it is also clear what delgatedFocus does for a shadow root if granted - it gives focus to the first focusable element in the shadow DOM when you click a non-focusable element.
But what gets the focus if this is not set? I think in this case the focus remains with the original item unless you click a focusable element.

Lastly, HTMLTemplateElement.shadowRootMode obviously reflects the values from the associated <template>.

  • The docs indicate that you can't change the value after parsing - is that true? (i.e. - the value is effectively readonly after parsing - even though the property is not marked as read only in the IDl).
  • Can you create a new shadow dom by creating or cloning a HTMLTemplateElement with this property set?
Flags: needinfo?(avandolder)

FYI, marking docs work as complete. The questions above have largely been answered, and anything outstanding is being looked at in related PRs.

Flags: needinfo?(avandolder)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: