| Tests that different types of inline styles are correctly disambiguated and their sourceURL is correct. |
| |
| 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-added-by-parser-in-document-write { |
| color: blue; |
| } |
| |
| 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: true |
| - sourceURL: dynamic-style-tag.html |
| - hasSourceURL: false |
| - contents: |
| /* comment */.inline-style-added-by-parser { |
| color: red; |
| } |
| |
| 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*/ |
| [expanded] |
| element.style { () |
| color: red; |
| |
| [expanded] |
| .inline-style-created-by-script-with-source-url { (inlineStyle…cript.css:1 -> inlineStyleCreatedByScript.css:1:50) |
| /-- overloaded --/ color: grey; |
| |
| [expanded] |
| .inline-style-created-by-script { (<style>) |
| /-- overloaded --/ color: orange; |
| |
| [expanded] |
| .inline-style-added-by-document-write-with-source-url { (inlineStyle…Write.css:2 -> inlineStyleAddedByDocumentWrite.css:2:56) |
| /-- overloaded --/ color: yellow; |
| |
| [expanded] |
| .inline-style-added-by-parser-in-document-write { (<style>) |
| /-- overloaded --/ color: blue; |
| |
| [expanded] |
| .inline-style-added-by-parser-with-source-url { (inlineStyle…arser.css:2 -> inlineStyleAddedByParser.css:2:48) |
| /-- overloaded --/ color: green; |
| |
| [expanded] |
| .inline-style-added-by-parser { (dynamic-sty…-tag.html:3 -> dynamic-style-tag.html:3:45) |
| /-- overloaded --/ color: red; |
| |
| [expanded] |
| div { (user agent stylesheet) |
| display: block; |
| |
| |