Skip to content

Commit c80fd55

Browse files
add underline link health
we plan to cover this in RFP in the future, in the meantime we will hide the UI in TB
1 parent 0cf3253 commit c80fd55

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

js/css.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function get_colors() {
7373
try {
7474
if (runSE) {foo++}
7575
let aTemp = [], oTemp = {}, aList = oList[type]
76-
aList.forEach(function(style) {
76+
aList.forEach(function(style){
7777
element.style.backgroundColor = strColor // reset color
7878
element.style.backgroundColor = style
7979
let rgb = window.getComputedStyle(element, null).getPropertyValue('background-color')
@@ -323,7 +323,7 @@ function get_computed_styles(METRIC) {
323323

324324
function get_link(METRIC) {
325325
// FF120+ 1858397: layout.css.always_underline_links
326-
let value, data =''
326+
let value, data ='', notation = isVer < 120 ? '' : default_red
327327
if (!isGecko || isVer < 120) {
328328
value = zNA
329329
} else {
@@ -334,11 +334,12 @@ function get_link(METRIC) {
334334
if ('string' !== typeCheck) {throw zErrType + typeCheck}
335335
if (!property.includes('rgb(')) {throw zErrInvalid +'got ' + property}
336336
value = 'underline' == property.slice(0,9) ? zE : zD
337+
if (zD == value) {notation = default_green}
337338
} catch(e) {
338339
value = e; data = zErrLog
339340
}
340341
}
341-
addBoth(14, METRIC, value,'','', data)
342+
addBoth(14, METRIC, value,'', notation, data)
342343
return
343344
}
344345

0 commit comments

Comments
 (0)