Closed thierryk closed 3 years ago
I believe vertical-align: middle
is used here to have the gap removed irrespectively of the display
value, in case the author changes it.
That's right. We decided to provide a fallback vertical-alignment as a fallback for inline use-cases, when authors override the display
value.
What about adding that piece of info to the comment then?
* 2. Remove strange space-below in case authors overwrite the display value
FWIW: I didn't know this project and looking at those 2 lines made me wonder...
@thierryk I like that as a clarification. Do you want to make a PR?
@mirisuzanne sure!
PR https://github.com/jensimmons/cssremedy/pull/77 will close this
I believe
vertical-align
applies to (see Formal Definition on MDN):So I doubt it does anything in the rule below as it is associated with
display:block
:display: block
alone should take care of #2 ("Remove strange space-below when inline")