| <style> |
| body { |
| color: green; |
| } |
| |
| /*# sourceURL=inlineStyleSheet.css */ |
| </style> |
| <script> |
| function addInlineStyleSheet() |
| { |
| var styleElement = document.createElement("style"); |
| styleElement.textContent = "body { color: black; }\n/*# sourceURL=css/addedInlineStylesheet.css */"; |
| document.head.appendChild(styleElement); |
| } |
| |
| function addInlineStyleSheetNonRelative() |
| { |
| var styleElement = document.createElement("style"); |
| styleElement.textContent = "body { color: red; }\n/*# sourceURL=css/nonRelativeInlineStylesheet.css */"; |
| document.head.appendChild(styleElement); |
| } |
| |
| function addInlineStyleSheetMultiple() |
| { |
| var styleElement = document.createElement("style"); |
| styleElement.textContent = "\n/*# sourceURL=1.css */\nbody { color: red; }\n/*# sourceURL=2.css*/\n/*# sourceURL=css/addedInlineStylesheetMultiple.css */"; |
| document.head.appendChild(styleElement); |
| } |
| |
| function addInlineStyleSheetDeprecated() |
| { |
| var styleElement = document.createElement("style"); |
| styleElement.textContent = "body { color: black; }\n/*@ sourceURL=css/addedInlineStylesheetDeprecated.css */"; |
| document.head.appendChild(styleElement); |
| } |
| </script> |