Abnormality of absolute positioning position caused by Device Pixel Ratio

there is a problem in the process of development these two days. The device pixel ratio of the computer developed by the company is 1.25 .

assume the following HTML and CSS:

   

this does not happen on computers where devicePixelRatio is 1 .

I would like to ask you for advice on the cause of the problem, and is there any way to solve or avoid the problem?

Thank you!

Feb.27,2021

does no one have the same problem?

for now, it feels like a problem with the browser rendering engine.

Menu