As CSS beginner I noticed that if you do not declare border color in a shorthand form, but before that you declare font color, that color will apply to the former as well e.g.
#crazyElement {color:red; border:1px solid;}
both will be red. Moreover, if you declare font color for the body, each border without declared color in shorthand form will apply that color also.
Is this normal? Maybe it's nothing special, but as a novice I just wanted to check...
That is normal, and perfectly inline with the specification
If an element's border color is not specified with a border property, user agents must use the value of the element's 'color' property as the computed value for the border color.
via @BoltClock CSS3 Spec. and the currentColor which is how it is defined.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With