Open Bug 1847158 Opened 1 year ago Updated 1 year ago

Rule view doesn't refresh on stylesheet added

Categories

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

defect

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

Steps to reproduce

  1. Navigate to data:text/html,<meta charset=utf8><button>Add stylesheet</button><script>document.addEventListener("click", () => { s = document.createElement("style"); s.textContent = 'body{ background: tomato }'; document.head.append(s); })</script>
  2. Open the inspector, select the <body> node
  3. Click on the "Add stylesheet" button in the page

Expected results

The body background is set to tomato, and in the rules view I can see the following rule:

body {
  background: tomato;
}

Actual results

The body background is set to tomato, but the rules view isn't refreshed and remains empty


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