Closed Bug 1838168 Opened 2 years ago Closed 2 years ago

Add a test for pretty printing stylesheet with nested rules

Categories

(DevTools :: Style Editor, task, P3)

task

Tracking

(firefox116 fixed)

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

I did some light testing and it does look like the auto pretty-printing of stylesheet does handle nested stylesheets nicely

For example, opening the styleeditor on data:text/html,<meta charset=utf8><style>h1 { color: gold; & { border: 1px; } }</style><h1>Hello</h1> will display:

h1 {
 color: gold;
 & {
  border: 1px;
 }
}

Let's have some tests with more complex nesting to makes sure everything is handled as expected

Blocks: 1838169

Existing test is modified to be easier to read.

Depends on D181225

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6aaf9b487ab3 [devtools] Test automatic CSS pretty print with nested CSS. r=devtools-reviewers,ochameau.
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: