I have, in the example below, I have a red element inside of which is a pale green inline-block element. The green element is 100% in width and I'd expect it to fully cover the red element, no red showing. But as you can see, it sets 2-3 pixels above the bottom of its container. I've been staring at it for a while but I can't see what the problem is. I can see no whitespace in the browser inspector. I'm stumped, help appreciated.
class DaisyTest extends React.Component {
constructor(props) {
super( props )
}
render() {
return <div style={{ width: '300px', backgroundColor: '#f00' }}>
<div style={{ width: '100%', height: '200px', display: 'inline-block', backgroundColor: '#efe', }}></div>
</div>
}
}