Consider the following demo:
a {
outline: initial dotted 2px;
}
.two {
outline-style: dotted;
outline-width: 2px;
outline-color: initial;
}
<a href="#!">hello</a>
<br>
<br>
<a href="#!" class="two">hello2</a>
The first anchor tag doesn't get any outline. The dev tools say it's an invalid property value. The same goes for inherit
. Why is that?