I am having an issue with CSS media queries not working correctly on the "border-line" cases. Here is some sample code that was listed in another thread (CSS Media Queries not working in Firefox and Chrome) which demonstrates the problem. Internet Explorer and Edge both work correctly with this sample code.
At a screen width of 641px, the sample page displays:
Firefox: "Profile" Chrome: "Tablet Profile"
At a screen width of 991px, the sample page displays:
Firefox: "Profile" Chrome: "Profile"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Device Profiles</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
@media (min-width: 0) and (max-width: 640px) {
h1::before {content: 'Phone ';}
}
@media (min-width: 641px) and (max-width: 991px) {
h1::before {content: 'Tablet ';}
}
@media (min-width: 992px) {
h1::before {content: 'Desktop ';}
}
</style>
</head>
<body>
<h1>Profile</h1>
</body>
</html>
****Update****:
After further testing, the problem seems to be coming from the "Scale and Layout" setting under the Windows Display Settings. Windows has 125% as the recommended scaling value, and so that's what I had it set to. When I change this setting back to 100%, then the problem goes away.
For the benefit of anyone else having this issue, I finally found this issue documented: https://github.com/twbs/bootstrap/issues/19197