You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Code tag height changes with mouse move/window resize #18258
On github, for example The Rust compiler if you have <code> that breaks line and has padding its height will expand when you move your mouse or resize a window.
I was able to reproduce this with a small test case, but only expands height on window resize.
Test case:
<html>
<head>
<style>
p {
width: 150px;
}
code {
padding: 0.2em;
background-color: rgba(27,31,35,0.05);
border: 1px solid red;
}
</style>
</head>
<body>
<p>This is some <a href="#"><code>test text</code></a>.</p>
</body>
</html>
This is happening on span and strong as well as other inline elements I've tried. Updated test case
<html>
<head>
<style>
p {
width: 150px;
float: left;
}
span, strong, code {
padding: 0.1em;
background-color: rgba(27,31,35,0.05);
border: 1px solid red;
}
</style>
</head>
<body>
<p>This is some <a href="#"><span>test text for span</span></a>.</p>
<p>This is some <a href="#"><strong>test text for strong</strong></a>.</p>
<p>This is some <a href="#"><code>test text for code</code></a>.</p>
</body>
</html>
Appears to have been fixed. All windows are after moving the cursor. Tested on Arch Linux x86_64, servo built against commit id 9d29017, compared against Firefox 141.0, Epiphany 48.5 and Chromium 138.0.7204.168 (ordered left to right).
Activity
BojanKogoj commentedon Aug 27, 2017
This is happening on
spanandstrongas well as other inline elements I've tried. Updated test caseatouchet commentedon Nov 5, 2017
A similar issue comes up in https://duckduckgo.com/ as well. Part of the Learn More box that pops up when hovering over the DuckDuckGo logo stretches down the page (the text displays Learn More in Firefox and Duck it! in Servo).
<span class="logo_homepage__tt">Learn More</span>atouchet commentedon Jan 17, 2018
Is this the same bug as #11840?
lumiscosity commentedon Jul 26, 2025
Appears to have been fixed. All windows are after moving the cursor. Tested on Arch Linux x86_64, servo built against commit id 9d29017, compared against Firefox 141.0, Epiphany 48.5 and Chromium 138.0.7204.168 (ordered left to right).