Open Bug 1327993 Opened 8 years ago Updated 2 years ago

Devtools inspector - :visited links in ruleview isn't green, as defined by browser CSS


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



(Not tracked)


(Reporter: arni2033, Unassigned)



(Keywords: regression)

>>>   My Info:   Win7_64, Nightly 49, 32bit, ID 20160526082509
STR_1:  (original)
1. Open
2. Inspect the left image that displays a spaceship (selector "a.terran")
3. Open ruleview, click on background url to open it in a new tab. Close that tab.

AR:  Step 2 - link in "background-url" rule is green.  Step 3 - link in "background-url" rule is blue
ER:  Either X or Y
 X) If the difference between visited and not visited links ONLY on dark theme wasn't planned, then
    The link should be green in Step 2 and Step 3.
 Y) If the difference between visited and not visited links in ruleview is intended, then
    - Visited and not visited links on light theme should look different
    - Visited links to css files in ruleview and not visited links to said files should look different

STR_2:  (testcase)
0. Visit
1. Open url [1]
2. Inspect the 1st link
3. Inspect the 2nd link

> [1] data:text/html,<a class="h" style="background:url('')"></a><br><a class="h" style="background:url(' 21-32-20')"> Unique</a><br>

 Browser toolbox won't show you rules with ":visited" pseudoclass in ruleview - see bug 713106.
 Blue color for :visited links is hardcoded in this file:
 Pay attention to this comment in said file, that proves that nobody did a revision since 2014-09-14:
> * FIXME: CSS links without :visited set cause assertion
> * failures in debug builds.

This illogical styling was implemented in bug 1246313. Regression range:
> Helen V. Holmes (:helenvholmes) (:✨):
It seems that this is a regresion caused by your change. Please have a look.
Component: Untriaged → Developer Tools
Priority: -- → P3
No longer blocks: 1277113
Component: Developer Tools → Developer Tools: CSS Rules Inspector
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.