According to w3schools, the syntax of outline
is:
outline: <color> <style> <width>;
and either of the three can be missing.
And the value inherit
is a valid value of either three, or a single outline: inherit
means that it should inherit all three.
I'm asking this because I'm working on property optimizer for a CSS minifier. According to the above link,
outline: inherit none 3px
is equivalent to outline: inherit 3px
, and
outline: invert inherit 3px
is also equivalent to outline: inherit 3px
,
but the result seems too ambigous.
So the question is, how do browsers interpret outline: inherit 0px
? Do they assign inherit
to the color or the style?