Closed Bug 588726 Opened 14 years ago Closed 14 years ago

Rules show as matched even if they are not (new Style panel)

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: msucan, Assigned: msucan)

References

Details

Rules show as matched even if they are not matched, in the new Style panel. Example: given a web page with two stylesheets, one for media=screen, and another for media=handheld.

1. handheld.css

h2 { color: red }

2. screen.css

h2 { color: blue }

3. HTML

<h2>hello world</h2>

When you highlight the element, you see that both rules matched. Depending on the CSS files order, you can even get the handheld.css property to show as best match. In truth, handheld.css is never applied to the page.

I think this issue affects any stylesheet for any other @media, and any alternate stylesheet that some pages have.

We need to find a way to check if a certain stylesheet is actually applied or not.
This was an easy fix, it seems. I'll update the main patches from bug 582596 with a fix for this bug as well.
Assignee: nobody → mihai.sucan
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.