blob: aa466d7f90e935c0ac49c385fc8334bc500afce3 [file] [log] [blame]
Tests that different types of inline styles are correctly disambiguated and their sourceURL is correct.
Stylesheet added:
- isInline: true
- sourceURL: dynamic-style-tag.html
- hasSourceURL: false
- contents:
/* comment */.inline-style-added-by-parser {
color: red;
}
Stylesheet added:
- isInline: true
- sourceURL: inlineStyleAddedByParser.css
- hasSourceURL: true
- contents:
.inline-style-added-by-parser-with-source-url {
color: green;
}
/*# sourceURL=inlineStyleAddedByParser.css*/
Stylesheet added:
- isInline: false
- sourceURL:
- hasSourceURL: false
- contents:
.inline-style-added-by-parser-in-document-write {
color: blue;
}
Stylesheet added:
- isInline: false
- sourceURL: inlineStyleAddedByDocumentWrite.css
- hasSourceURL: true
- contents:
.inline-style-added-by-document-write-with-source-url {
color: yellow;
}
/*# sourceURL=inlineStyleAddedByDocumentWrite.css*/
Stylesheet added:
- isInline: false
- sourceURL:
- hasSourceURL: false
- contents: .inline-style-created-by-script {
color: orange;
}
Stylesheet added:
- isInline: false
- sourceURL: inlineStyleCreatedByScript.css
- hasSourceURL: true
- contents: .inline-style-created-by-script-with-source-url {
color: grey;
}
/*# sourceURL=inlineStyleCreatedByScript.css*/
Page reloaded.
[expanded]
element.style { ()
color: red;
[expanded]
.inline-style-created-by-script-with-source-url { (inlineStyleCrea…ByScript.css:1 -> inlineStyleCreatedByScript.css:1:1)
/-- overloaded --/ color: grey;
[expanded]
.inline-style-created-by-script { ()
/-- overloaded --/ color: orange;
[expanded]
.inline-style-added-by-document-write-with-source-url { (inlineStyleAdde…entWrite.css:2 -> inlineStyleAddedByDocumentWrite.css:2:1)
/-- overloaded --/ color: yellow;
[expanded]
.inline-style-added-by-parser-in-document-write { ()
/-- overloaded --/ color: blue;
[expanded]
.inline-style-added-by-parser-with-source-url { ()
/-- overloaded --/ color: green;
[expanded]
.inline-style-added-by-parser { (dynamic-style-tag.html:6 -> dynamic-style-tag.html:6:14)
/-- overloaded --/ color: red;
[expanded]
div { (user agent stylesheet)
display: block;