Closed Bug 923883 Opened 11 years ago Closed 11 years ago

html class attribute matching a CSS named colour gets converted to the RGB/HSL/#HEX equivalent in the inspector

Categories

(DevTools :: Inspector, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 923884

People

(Reporter: mardeg, Unassigned)

Details

Attachments

(1 file)

STR:
1. Right-click Blah -> Inspect Element

Expected Results
Correctly display the name of the class attribute in the code view.

Actual Results
When anything other than "Color names" is chosen from the "Default color unit" dropdown in the Inspector options, the code transforms to:
class="#F00"
for Hex, or
class="hsl(0, 100%, 50%)"
for HSL(A), or
class="rgb(255, 0, 0)"
for RGB(A)

It does this both in the html view panel and as the classname in the breadcrumbs above it.
This doesn't seem to affect the .red class being applied to the page itself.
Summary: html class attribute matching a CSS named colour gets converted to the rgb/#HEX equivalent in the inspector → html class attribute matching a CSS named colour gets converted to the RGB/HSL/#HEX equivalent in the inspector
This works for me on the latest nightly build:

Build identifier: Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0
Build Id:20131016030202
http://hg.mozilla.org/mozilla-central/rev/9f63bbc00527

This was reproducible on:
Build identifier: Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0
Build Id:20131005030203
http://hg.mozilla.org/mozilla-central/rev/b5d24ef1eb37

it appears it was fixed since the bug was logged.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → VERIFIED
(In reply to Catalin Varga from comment #1)
> it appears it was fixed since the bug was logged.

Then the status is FIXED, we just need to find the related bug that landed a patch resulting in this one being fixed and add it to the "Depends on" field.
Resolution: WORKSFORME → FIXED
It looks like bug 923884, which was fixed on 2013-10-09.
(In reply to mjh563 from comment #3)
> It looks like bug 923884, which was fixed on 2013-10-09.

Thanks, that makes this a duplicate.
Status: VERIFIED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: FIXED → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: