aboutsummaryrefslogtreecommitdiff
path: root/exampleData/ruleSets/foregroundCheck.js
diff options
context:
space:
mode:
Diffstat (limited to 'exampleData/ruleSets/foregroundCheck.js')
-rw-r--r--exampleData/ruleSets/foregroundCheck.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/exampleData/ruleSets/foregroundCheck.js b/exampleData/ruleSets/foregroundCheck.js
new file mode 100644
index 0000000..32a8ee5
--- /dev/null
+++ b/exampleData/ruleSets/foregroundCheck.js
@@ -0,0 +1,9 @@
+function() {
+ var allow = '#00 #FF #3D #F7 #C2 #B4 #4E #FFCB05 #7B8738'.split(' ');
+ $5(':visible')
+ .cssIsNot('color', allow, fiveui.color.colorToHex)
+ .each(function(i, elt) {
+ var color = fiveui.color.colorToHex($(elt).css('color'));
+ report('foreground color: ' + color, elt);
+ });
+}