Closed
Description
In an fresh create-react-app, if:
body { background-color: #000000; display: flex; }
There is no background color applied, until page refresh.
Somehow, It doesn't happen while render() includes an image tag, e.g. <img src="/" />
.
I'm seeing the issue in Chrome 64, but not reproducing in Edge nor Firefox latest.
Activity
Timer commentedon Feb 16, 2018
Sounds like you need to open an issue with Chrome then. Can you reproduce this without using CRA?
decimoseptimo commentedon Feb 16, 2018
Well, I just tried https://github.com/raw/reactjs/reactjs.org/master/static/html/single-file-example.htmland and was not.
gaearon commentedon Feb 18, 2018
CRA transforms
display: flex
to several fallbacks that may be necessary for target browsers. So putting justdisplay: flex
into a standalone HTML file is not comparing the same exact thing.Then it's definitely a browser bug. It would be great if you could prepare a reduced test case for the browser vendors, but there's nothing we can do here.