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 }}
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
In an HTML file, add a link to a nonexistent stylesheet (e.g. <link rel="stylesheet" href="styles.css">)
Turn on Live Preview
Create a styles.css file in the project
In the new file, type body { background: #f00; }
Result: Style isn't previewed in the browser. This is probably because Chrome didn't load the stylesheet on the initial load, so we never got the callback for it. We could work around this in a few ways--e.g. if saving an (apparently) unreferenced stylesheet, refresh the browser the same way we do for non-CSS files.
The text was updated successfully, but these errors were encountered:
Seems like we might want to do the refresh earlier, when the file is initially created. Otherwise the user creates the file and starts typing a rule... and no updating occurs, so it still seems broken (it would not start working until they hit Save for the first time).
<link rel="stylesheet" href="styles.css">
)styles.css
file in the projectbody { background: #f00; }
Result: Style isn't previewed in the browser. This is probably because Chrome didn't load the stylesheet on the initial load, so we never got the callback for it. We could work around this in a few ways--e.g. if saving an (apparently) unreferenced stylesheet, refresh the browser the same way we do for non-CSS files.
The text was updated successfully, but these errors were encountered: