normalize.css icon indicating copy to clipboard operation
normalize.css copied to clipboard

outline : 0 ▶ outline-style: none;

Open parapada73 opened this issue 10 years ago • 2 comments

I found it in your code

a:active,
a:hover {
  outline: 0;
}

According to reference outline property is

outline-color outline-style outline-width|initial|inherit

Therefore, I'd like to do so in order to avoid any confusion.

a:active,
a:hover {
  outline-style: none;
}

parapada73 avatar Mar 04 '16 05:03 parapada73

@parapada73, hi! When using shorthand properties you are defining multiple possible values at once. In this particular case by using outline: 0 you're implying outline-width: 0.

If you would like to be explicit you could suggest using outline-width: 0 instead, but I think outline: 0 is clear enough and shorter than the equivalent.

battaglr avatar Mar 04 '16 12:03 battaglr

outline:0 is clear but outline is tricky about shortcuts

kafeltz avatar Mar 04 '16 14:03 kafeltz