/*
qa-style-sheet v1.6 https://github.com/j9t/qa-style-sheet

Copyright 2011 Google Inc.

Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

/* Deprecated elements */

acronym,
applet,
basefont,
bgsound,
big,
blink,
center,
dir,
font,
frame,
frameset,
hgroup,
isindex,
keygen,
listing,
marquee,
menuitem,
multicol,
nextid,
nobr,
noembed,
noframes,
param,
plaintext,
rb,
rtc,
spacer,
strike,
tt,
xmp {
	outline: 2px solid #f00 !important;
}

/* Layout tables */

table table {
	outline: 2px solid #f00 !important;
}

/* Decorative or inaccessible images */

img {
	outline: 2px solid #f00 !important;
}

img[alt] {
	outline: 0 !important;
}

img[alt=''] {
	outline: 2px solid #ff0 !important;
}

/* Empty or non-HTML links */

a[href=''] {
	outline: 2px solid #f00 !important;
}

a[href$='.gif'],
a[href$='.jpg'],
a[href$='.jpeg'],
a[href$='.pdf'],
a[href$='.png'] {
	outline: 2px solid #ff0 !important;
}

/* Elements that must not be nested */

a[href] a[href],
a[href] button,
button a[href],
button button,
select button:not(:first-child) {
	outline: 2px solid #f00 !important;
}

/* Empty elements not used for scripting */

p:empty,
div:empty,
li:empty,
th:empty,
td:empty,
span:empty {
	outline: 2px solid #f00 !important;
}

p[id],
div[id],
li[id],
th[id],
td[id],
span[id] {
	outline: 0 !important;
}

/* Maintenance traps */

[style] {
	outline: 2px solid #f00 !important;
}

head {
	display: block !important;
	font: normal 75%/1.5 verdana, sans-serif !important;
}

link {
	display: inline !important;
}

link[rel='stylesheet'] ~ link[rel='stylesheet']::after,
style::before {
	background: #ff0 !important;
	padding: .2em !important;
}

link[rel='stylesheet']:not(#x-qa) ~ link[rel='stylesheet']:not(#x-qa)::after {
	content: 'Two or more style sheets detected ⚠' !important;
}

style {
	display: block !important;
	font-family: courier, monospace !important;
	height: 3em !important;
	overflow: hidden !important;
	width: 200px !important;
}

style::before {
	content: 'Style element detected ⚠' !important;
	font: normal 1em/1.5 verdana, sans-serif !important;
}

/* Status indicator */

body::before {
	background: #0f0;
	color: #000;
	content: 'QA check done ✓';
	display: inline;
	font-weight: 700;
}

/* Update indicator (should always point one version ahead) */

body {
	background-image: url(https://j9t.github.io/qa-style-sheet/media/updates/1.8.png) !important;
}