-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
54 lines (45 loc) · 1009 Bytes
/
Copy pathstyles.css
File metadata and controls
54 lines (45 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* SPDX-License-Identifier: MPL-2.0 */
/* Test CSS file with various accessibility issues */
/* Issue: px font size (should use rem) */
body {
font-size: 16px;
line-height: 1.2;
color: #333;
background-color: #fff;
}
/* Issue: poor contrast - light gray on white */
.light-text {
color: #ccc;
background-color: #eee;
}
/* Issue: outline none without replacement */
button:focus {
outline: none;
}
/* Good: outline none with replacement */
a:focus {
outline: none;
box-shadow: 0 0 0 2px #005fcc;
}
/* Issue: animation without reduced-motion */
.fade-in {
animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
/* Issue: sr-only with display: none (should use clip pattern) */
.sr-only {
display: none;
}
/* Good contrast */
.hero-text {
color: #000;
background-color: #fff;
}
/* Issue: medium contrast (passes AA but not AAA) */
.secondary-text {
color: #595959;
background-color: #ffffff;
}