Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/inline-style-allowed-while-cloning-objects-expected.txt

Issue 14234005: CSP blocks style application in cloned nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: CSP blocks style application in cloned nodes Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 CONSOLE MESSAGE: Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'".
2
3 CONSOLE MESSAGE: line 77: Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'".
4
5 This test ensures that styles can be set by object.cloneNode()
6 PASS node1.style.background is "yellow"
7 PASS node2.style.background is "yellow"
8 PASS node3.style.background is "blue"
9 PASS node4.style.background is "blue"
10 PASS node1.style.color is "red"
11 PASS node2.style.color is "red"
12 PASS node3.style.color is "green"
13 PASS node4.style.color is "green"
14 PASS window.getComputedStyle(node1).getPropertyCSSValue('background').cssText is window.getComputedStyle(node2).getPropertyCSSValue('background').cssText
15 PASS window.getComputedStyle(node3).getPropertyCSSValue('background').cssText is window.getComputedStyle(node4).getPropertyCSSValue('background').cssText
16 PASS window.getComputedStyle(node1).getPropertyCSSValue('color').cssText is wind ow.getComputedStyle(node2).getPropertyCSSValue('color').cssText
17 PASS window.getComputedStyle(node3).getPropertyCSSValue('color').cssText is wind ow.getComputedStyle(node4).getPropertyCSSValue('color').cssText
18 PASS ops.style.background is ""
19 getComputedStyle(clonedOps).getPropertyCSSValue('background').cssText: rgba(0, 0 , 0, 0) none repeat scroll 0% 0% / auto padding-box border-box
20 PASS ops.style.color is "red"
21 PASS clonedOps.style.background is ""
22 PASS violetOps.style.background is "rgb(238, 130, 238)"
23 PASS window.getComputedStyle(clonedOps).getPropertyCSSValue('background').cssTex t is window.getComputedStyle(ops).getPropertyCSSValue('background').cssText
24 PASS window.getComputedStyle(clonedOps).getPropertyCSSValue('color').cssText is window.getComputedStyle(ops).getPropertyCSSValue('color').cssText
25 getComputedStyle(violetOps).getPropertyCSSValue('background').cssText: rgb(238, 130, 238) none repeat scroll 0% 0% / auto padding-box border-box
26 PASS window.getComputedStyle(ops).getPropertyCSSValue('background').cssText is n ot window.getComputedStyle(violetOps).getPropertyCSSValue('background').cssText
27 PASS window.getComputedStyle(clonedOps).getPropertyCSSValue('background').cssTex t is not window.getComputedStyle(violetOps).getPropertyCSSValue('background').cs sText
28 PASS ops.id is "ops"
29 PASS ops.id is clonedOps.id
30 This is a div (nodes)
31 This is a div. (node 1 or 2)
32 This is a div. (node 1 or 2)
33 This is a div. (node 3 or 4)
34 Node #4
35 Yet another div.
36 Yet another div.
37 Yet another div.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698