Skip to content

Instantly share code, notes, and snippets.

@jensgro
Forked from anonymous/index.html
Created October 19, 2016 16:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jensgro/003e49e9f2f1fbb1cc4a9857137f2da0 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/yopofej
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style>
input.broken {
/* border: 2px solid; */
/* border-width: 2px; */
/* border-style: solid; */
/* border-color: blue; */
border-radius: 4px;
/* background: lightgray; */
/* Fixes tried: */
/* outline: inherit; */
/* outline: initial; */
/* outline: unset; */
/* -moz-appearance: textfield; */
/* appearance: textfield; */
}
/* Workaround, opt-in to your own specified outline style
* without overriding other browsers’ default :focus styles:
*/
/*
input.broken:-moz-focusring {
outline: 2px solid rgb( 180, 222, 250 );
outline: 2px solid -moz-mac-focusring;
-moz-outline-radius: 6px;
outline-radius: 6px;
}
*/
</style>
</head>
<body>
<form>
<label>Default: <input type="text"></label>
<label>Broken: <input type="text" class="broken"></label>
</form>
<p>Using one or more of these properties will disable the default <code>:focus</code> outline in Firefox:</p>
<ul>
<li>border</li>
<li>border-width</li>
<li>border-style</li>
<li>border-color</li>
<li>border-radius</li>
<li>background</li>
</ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment