Currently, I am troubleshooting an issue with the styling of my input fields. Specifically, I want to change the font style to italic when the input is modified. This functionality is performing correctly in Firefox. However, in Chrome, when I add font-style: italic;
to a text input with a specified size like size="5"
, the input field suddenly adjusts its width.
To see a basic example, visit the following link: https://codepen.io/anon/pen/aeNoBV
To replicate the issue, simply remove the input field's styling.
Could this discrepancy in behavior be attributed to a bug in Chrome, or is there something that I am overlooking?