Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
    <h2>Comparing Focus Outline Widths</h2>
  
  <h2>Scaled Up</h2>
  <svg viewBox="0 0 100 50" width="200" height="100">
    <circle tabindex="0" cx="25" cy="25" r="15" />
    <circle tabindex="0" cx="25" cy="25" r="15"  class="outline" />
    <circle tabindex="0" cx="25" cy="25" r="15"  class="stroke" />
  </svg>
  
  <h2>Original Scale</h2>
  <svg viewBox="0 0 100 50" width="100" height="50">
    <circle tabindex="0" cx="25" cy="25" r="15" />
    <circle tabindex="0" cx="25" cy="25" r="15"  class="outline" />
    <circle tabindex="0" cx="25" cy="25" r="15"  class="stroke" />
  </svg>
  
  <h2>Scaled Down</h2>
  <svg viewBox="0 0 100 50" width="50" height="25">
    <circle tabindex="0" cx="25" cy="25" r="15" />
    <circle tabindex="0" cx="25" cy="25" r="15"  class="outline" />
    <circle tabindex="0" cx="25" cy="25" r="15"  class="stroke" />
  </svg>
  
</body>
</html>
 
circle {
  fill: springgreen;
}
.outline:focus {
  outline: 5px solid red;
}
.stroke:focus {
  outline: none;
  stroke-width: 5px;
  stroke: magenta;
}
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers