When using the FireFox browser alone, I noticed that the border size is displayed as 0.6667 when setting the border width to 1px on a div, input element, or any HTML element. The same issue occurs whether the border is applied using inline CSS or a separate class.
To illustrate this problem, please refer to the screenshots below:
https://i.sstatic.net/yqkcW.png
https://i.sstatic.net/Nc5Sa.png
Interestingly, the issue only arises with odd-numbered border sizes. For example, if a 2px border size works fine, but 1px results in a value of 0.6667, and 3px results in 2.6667.
https://i.sstatic.net/fddbi.png https://i.sstatic.net/LtSKP.png
This discrepancy is causing calculation errors at the CSS level. Can anyone suggest a solution to address this issue? Is it a browser-specific bug, or are there workarounds available?
Thank you, Gobalakrishnan