Open Bug 1940930 Opened 1 month ago Updated 1 month ago

Add new rule button does not work in shadow-root

Categories

(DevTools :: Inspector: Rules, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: nchevobbe, Unassigned)

References

Details

Steps to reproduce

  1. Navigate to data:text/html,<meta charset=utf8><p><template shadowrootmode="open"><style>slot {color: red;}</style><slot name=one>slotted</slot></template><span slot="one">Slotted content</span></p>
  2. Open the inspector
  3. Expand body,pnode and its#shadow-root` child
  4. Select the slot node
  5. Click on the + icon in the rules view to add a rule

Expected results

A new rule is added

Actual results

No rules are added. A <style> tag is added after the </body>


See Also: → 1478579
Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.