My issue involves a basic input field and error validation message, both set against a dark background. The problem arises when the error text is displayed and I click on the input field - the error text suddenly loses contrast and appears "thinner." What's puzzling is that no styles are being altered in the Web Inspector.
This strange bug seems to only affect Windows users, as macOS doesn't exhibit this behavior. Testing on Windows 11 and Chrome 126 further confirmed this issue.
To replicate the problem, simply insert the following code into an HTML file and open it on a Windows machine. Click on the input field and observe the anomalous change in the error text's appearance:
<div style="background: black">
<input type="text" />
<p style="color: red">some text</p>
</div>
Here's a Stackblitz link with a demo for reference.
https://i.sstatic.net/4pCEoXLj.png https://i.sstatic.net/e2mF0JvI.png
The main question remains - how can I ensure consistent styles so that the error text doesn't change upon input focus?