Open Bug 1911438 Opened 8 months ago Updated 8 months ago

Inspector erroneously displays CSS rules with escaped characters as invalid

Categories

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

Firefox 130
defect

Tracking

(Not tracked)

People

(Reporter: xlucas4956, Unassigned)

Details

Attachments

(1 file)

Attached image escaped rule.png

Steps to reproduce:

I added the inline style rule p\osition: f\ixed to an element while testing a website frontend, and despite the rule being parsed as a valid CSS rule and setting the element to a fixed position, the DevTools inspector shows the rule as invalid.

Expected results:

I have seen some similar bugs before where there is a discrepancy between what the renderer considers valid CSS and what the inspector considers valid CSS, but this should be a relatively simple case to resolve.

The Bugbug bot thinks this bug should belong to the 'DevTools::Inspector: Rules' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Inspector: Rules
Product: Firefox → DevTools

Maybe we double escape the character when returning the rule from the server?
Thanks for filing

Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: