This issue relates to CSS files that are initially not identified as constructed stylesheets but end up being displayed as such after editing, rendering the file inaccessible.
Specifically in Google Chrome DevTools (last observed in Chrome 86):
Whenever I make changes to the CSS of my HTML page using Inspect Element, and then close the inspector, upon reopening it all the links that should show the filename (e.g. styles.css:1
) are now replaced with "constructed stylesheet":
This behavior is unexpected as the stylesheet was not considered constructed or mutable before editing, yet it is treated as such afterwards.
As a result, the stylesheet no longer appears in the "Sources" or "Changes" tab, and clicking on the "constructed stylesheet" link redirects you to an element rather than the actual file. Reloading the page resolves the issue, but at the cost of losing all CSS modifications.
I really don't want to lose my CSS changes, this situation is extremely frustrating! I aim to continue editing on the page without encountering the obstacle of the css file being labeled as a constructed stylesheet!
Any help or insight on how to resolve this problem would be greatly appreciated.