Skip to content

Commit c40bf69

Browse files
authored
Merge pull request #188 from Hywan/patch-2
Fix CS in 1.4.3 Contrast, minor
2 parents 7a8c685 + d0ca1c9 commit c40bf69

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_4/1_4_3_Contrast.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ _global.HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_4_1_4_3_Contrast = {
4747
var style = HTMLCS.util.style(node);
4848

4949
if (style) {
50-
var bgColour = style.backgroundColor;
50+
var bgColour = style.backgroundColor;
5151
var foreColour = style.color;
52-
var bgElement = node;
53-
var hasBgImg = false;
52+
var bgElement = node;
53+
var hasBgImg = false;
5454
var isAbsolute = false;
5555

56-
if (style.backgroundImage !== 'none') {
56+
if (style.backgroundImage !== 'none') {
5757
hasBgImg = true;
5858
}
5959

@@ -66,8 +66,8 @@ _global.HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_4_1_4_3_Contrast = {
6666
// Calculate font size. Note that CSS 2.1 fixes a reference pixel
6767
// as 96 dpi (hence "pixel ratio" workarounds for Hi-DPI devices)
6868
// so this calculation should be safe.
69-
var fontSize = parseFloat(style.fontSize, 10) * (72 / 96);
70-
var minLargeSize = 18;
69+
var fontSize = parseFloat(style.fontSize, 10) * (72 / 96);
70+
var minLargeSize = 18;
7171

7272
if ((style.fontWeight === 'bold') || (parseInt(style.fontWeight, 10) >= 600)) {
7373
var minLargeSize = 14;

0 commit comments

Comments
 (0)