-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.css
More file actions
150 lines (135 loc) · 2.73 KB
/
debug.css
File metadata and controls
150 lines (135 loc) · 2.73 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/*
* debug.css - Use this to identify problems in your markup
*
* Keep this on the internet somewhere, and make it read-only.
* When you're debugging a web project, use your browser developer tools
* to add a <link> to this stylesheet.
*/
a h1 {
background-color: #ff0;
color: black;
font-weight: bold;
}
a h1::after {
content: " Warning!: the <a> should be inside the <h1>";
}
a h2 {
background-color: #ff0;
color: black;
font-weight: bold;
}
a h2::after {
content: " Warning!: the <a> should be inside the <h1>";
}
a h3 {
background-color: #ff0;
color: black;
font-weight: bold;
}
a h3::after {
content: " Warning!: the <a> should be inside the <h1>";
}
a h4 {
background-color: #ff0;
color: black;
font-weight: bold;
}
a h4::after {
content: " Warning!: the <a> should be inside the <h1>";
}
a h5 {
background-color: #ff0;
color: black;
font-weight: bold;
}
a h5::after {
content: " Warning!: the <a> should be inside the <h1>";
}
a h6 {
background-color: #ff0;
color: black;
font-weight: bold;
}
a h6::after {
content: " Warning!: the <a> should be inside the <h1>";
}
a[name] {
background-color: #f0c;
color: white;
font-weight: bold;
}
a[name]::after {
content: " Deprecated!: we no longer use the name attribute. use 'id' instead";
}
a[href="#"] {
background-color: #f00;
color: white;
font-weight: bold;
}
a[href="#"]::after {
content: " Bad Practice!: this is not a real link, try <button> instead";
}
acronym {
background-color: #f0c;
color: white;
font-weight: bold;
}
acronym::after {
content: " Deprecated!: <acronym> is deprecated, use <abbr>";
}
applet {
background-color: #f0c;
color: white;
font-weight: bold;
}
applet::after {
content: " Deprecated!: <applet> is deprecated, use <embed> or <object> instead";
}
bgsound {
background-color: #f0c;
color: white;
font-weight: bold;
}
bgsound::after {
content: " Deprecated!: <bgsound> is deprecated, use <audio> instead";
}
dir {
background-color: #f0c;
color: white;
font-weight: bold;
}
dir::after {
content: " Deprecated!: <dir> is deprecated, use <ul> instead";
}
frame,
frameset,
noframes {
background-color: #f0c;
color: white;
font-weight: bold;
}
frame::after,
frameset::after,
noframes::after {
content: " Deprecated!: either use <iframe> with CSS, or use server side programming";
}
img[border] {
background-color: #c0f;
color: white;
font-weight: bold;
}
img[border]::after {
content: " Obsolete!: use CSS instead";
}
[onclick] {
background-color: #f00;
color: white;
font-weight: bold;
}
[onclick]::after {
content: " Bad Practice!: inline Javascript is bad for many reasons. Use Unobstrusive Javascript instead";
}
body {
background-color: #666;
color: #0f0;
}