almond.css icon indicating copy to clipboard operation
almond.css copied to clipboard

<input type="text"> sizes don't work

Open fabi321 opened this issue 2 years ago • 1 comments

Describe the bug If I specify a size for an text input, it is being ignored and the text field stays at the same width.

Steps to reproduce

  1. Use <input type="text" size="5"> next to <input type="text" size="20"> with and without the stylesheet.
  2. While the sizes are different without a stylesheet (tested in Firefox, according to MDN it's a common feature) they stay the same with Almond.css enabled

Expected behavior The width should be different, depending on the given size.

Screenshots

Input fields without Almond. Input without Almond Input fields with Almond. Input with Almond

Devices Desktop:

  • OS: Windows
  • Browser: Firefox
  • Version: 97

fabi321 avatar Feb 28 '22 12:02 fabi321

This is a great catch. I think it's because I set a min-width in the input. Let me double-check the code and I'll get a fix out. Thanks for reporting the issue.

alvaromontoro avatar Mar 01 '22 14:03 alvaromontoro