Skip to content

Commit

Permalink
add sourceURL for css
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Jan 12, 2024
1 parent 4dbd156 commit 004f745
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/mock/css/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
h1 .uncovered {
font-size: 14px;
}

/*# sourceURL=style1.css */
</style>
<style>
/* style 2 */
Expand All @@ -26,18 +28,22 @@
h2 .uncovered {
font-size: 14px;
}

/*# sourceURL=style2.css */
</style>
<script>
// create style 3 with js
window.onload = function() {
const styleElement = document.createElement('style');
styleElement.innerHTML = `/* style 3 */
styleElement.innerHTML = `
/* style 3 */
h3 {
color: blue;
}
h3 .uncovered {
font-size: 14px;
}
/*# sourceURL=style3.css */
`;
document.head.appendChild(styleElement);
};
Expand Down

0 comments on commit 004f745

Please sign in to comment.