It's a real head-scratcher...
The QA team found a bug that only shows up in Chrome on Windows 8. It's fine in all other browsers and operating systems. The issue is that the text inside a span
element is dropping way below where it should be, almost the entire height of the element it's supposed to align with.
When I was working remotely, I decided to dig into it by installing Windows 8 on my iMac and installing the latest version of Chrome that was used for testing by QA. Strangely, I couldn't replicate the bug. Everything aligned perfectly no matter what screen resolution I tried.
Now that I'm back in the office, a QA team member handed me a Windows 8 laptop, and surprise, surprise - the text is misaligned again. This time, it's a Lenovo Ultrabook. The only difference I noticed was that it has a touch screen. But even after disabling the touch screen and confirming in the developer console that Chrome no longer detects it, the issue remained.
There were no browser add-ons installed on either version of Chrome.
What could be causing this? Here's the code snippet:
<div id="text_container">
<span style="padding:0x;" class="textName" id="text_page">Problem Text Is Right Here</span>
</div>
Looking at the CSS for "text_container":
margin: 0;
padding: 0;
width: 1024px;
The "textName" class is defined with:
font-size: 10em;
margin-left: 1.55%;
opacity: 0.7;
position: absolute;
text-transform: uppercase;
top: 0.8em;
The #text_page
id has no specific CSS rules set. Everything seems to display perfectly fine except on this one Windows 8 touch screen laptop running Chrome.