Skip to content

Commit 0f7a282

Browse files
committed
Adding a check for background linear gradients and ensure they aren't throwing an error related to background image css properties.
1 parent ce44d4a commit 0f7a282

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Tests/WCAG2/1_4_3_Contrast.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
Assert: No Error *.G18 on #issue155
1010
Assert: Warning *.G145.Alpha on #rgba
1111
Assert: Warning *.G18.Alpha on #rgba2
12+
Assert: No Error *.G17.BgImage on #gradientBg1
13+
Assert: No Error *.G17.BgImage on #gradientBg2
1214
-->
1315
</head>
1416
<body>
@@ -26,6 +28,14 @@
2628
<div id="rgba2" style="background-color: rgba(0,0,0,0.2);">Text</div>
2729
</div>
2830

31+
<div id="gradientBg1" style="background: linear-gradient(180deg, #f6f6f6 0, #e9e9ea);">
32+
Test linear gradient BG
33+
</div>
34+
35+
<div id="gradientBg2" class="testLinear">
36+
Test external class linear gradient BG
37+
</div>
38+
2939
</body>
3040
</html>
3141

0 commit comments

Comments
 (0)