Open jdm opened 7 years ago
Minimal testcase:
<!DOCTYPE html>
<style>
.StreamsTopBar {
border-bottom: 1px solid #ff0000;
box-sizing: border-box;
height: 270px;
}
.StreamsHero {
height: 210px;
}
h2 {
margin-bottom: -5px;
}
a {
border-bottom: 0 solid #1da1f2;
border-bottom-width: 5px;
height: 59px;
display: block;
box-sizing: border-box;
}
</style>
<div class="StreamsTopBar">
<div class="StreamsHero">
<h2>What’s happening?</h2>
</div>
<a></a>
</div>
Firefox:
Servo:
This can be reproduced in a14b952fa3eedec86e6308213c525538bcb20827
Not a problem in layout 2020, still a problem in layout 2013 (the PR was never merged)
Firefox:
Servo: