diff --git a/src/LiveDevelopment/Documents/CSSDocument.js b/src/LiveDevelopment/Documents/CSSDocument.js index 725d11dcefc..3c7ce7d6406 100644 --- a/src/LiveDevelopment/Documents/CSSDocument.js +++ b/src/LiveDevelopment/Documents/CSSDocument.js @@ -62,6 +62,11 @@ define(function CSSDocumentModule(require, exports, module) { // res = {styleSheet} this.rules = res.styleSheet.rules; }.bind(this)); + + // If the CSS document is dirty, push the changes into the browser now + if (doc.isDirty) { + CSSAgent.reloadDocument(this.doc); + } }; /** Close the document */