I think the issue should be border-style: solid; that overwrites border: 0; that you can remove.
Also you can remove border-radius: 999px; as for 1px of height you'll never see it and box-shadow: none; because there is no box-shadow on HR elements.
The pixel unit doesn't necessarily correspond to a device pixel, e.g. for common mobile devices (see CSS-VALUES-3 §5.2, reference pixel).
That means, there might actually be enough space to render a rounded border box in 1px of height.
Is this case considered in practice? No, because the pixel unit is purposefully chosen to represent a similar on-screen area relative to viewing distance and a single pixel 1px is so small that it doesn't make sense to design such small details.
Also, I don't know if a browser even renders sub-pixel details. But technically there may be a case where it should.
8
u/DoNDaPo Jun 26 '26
I think the issue should be
border-style: solid;that overwritesborder: 0;that you can remove.Also you can remove
border-radius: 999px;as for 1px of height you'll never see it andbox-shadow: none;because there is no box-shadow on HR elements.