File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_4 Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments