W
W
weranda2018-02-06 21:31:13
css
weranda, 2018-02-06 21:31:13

Why does CSS transition change the width of the input field's border?

Greetings
When refreshing the page on the borders of the input field (input[type='text']) in the Chrome browser, double black bars appear on all sides, in other browsers everything is fine. I found out that this is due to the transition: all 100s ease-out; (specially increased the interval for clarity). On the page below there are the same fields with the same properties and they are all correct. I checked each property calculated by the browser in the code inspector - everything is the same in all fields, even moved all the form code to one place, and deleted everything else, but such a mysterious thing is happening.
5a79f2926e114203426591.gif
Maybe someone faced this?
The site on the computer, spread for a long time, so even a hint will help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2018-02-06
@Stalker_RED

When the field is without focus, it has some styles, when it has focus, it has different styles.
transition: all tries to animate ALL properties, including the border.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question