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

Side by Side Diff: third_party/WebKit/LayoutTests/csspaint/invalidation-content-image.html

Issue 2426323003: Invalidate properties registered as non-inherited for custom paint (Closed)
Patch Set: Created 4 years, 2 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <head> 2 <head>
3 <script src="../resources/testharness.js"></script> 3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script> 4 <script src="../resources/testharnessreport.js"></script>
5 <script src="../resources/run-after-layout-and-paint.js"></script> 5 <script src="../resources/run-after-layout-and-paint.js"></script>
6 <script src="resources/test-runner-invalidation-logging.js"></script> 6 <script src="resources/test-runner-invalidation-logging.js"></script>
7 <style> 7 <style>
8 div { 8 div {
9 width: 100px; 9 width: 100px;
10 height: 100px; 10 height: 100px;
11 11
12 flex-basis: 200px; 12 flex-basis: 200px;
13 --str:foo; 13 --str:foo;
14 --fiftypx: 50px; 14 --fiftypx: 50px;
15 } 15 }
16 </style> 16 </style>
17 </head> 17 </head>
18 <p>This tests the invalidation behaviour of the paint callback.</p> 18 <p>This tests the invalidation behaviour of the paint callback.</p>
19 <p>See the devtools console for additional test output.</p> 19 <p>See the devtools console for additional test output.</p>
20 <script> 20 <script>
21 CSS.registerProperty({name: '--length-inherited', syntax: '<length>', inherits: true, initialValue: '0px'});
22 CSS.registerProperty({name: '--length-non-inherited', syntax: '<length>', inheri ts: false, initialValue: '0px'});
23
21 // TODO(ikilpatrick): Should test shorthands. 24 // TODO(ikilpatrick): Should test shorthands.
22 testRunnerInvalidationLogging('content', [ 25 testRunnerInvalidationLogging('content', [
23 { property: 'max-height', value: '160px' }, 26 { property: 'max-height', value: '160px' },
24 { property: 'max-height', prevValue: '100px', value: '160px' }, 27 { property: 'max-height', prevValue: '100px', value: '160px' },
25 { property: 'max-height', prevValue: '100px', value: 'calc(50px + 50px)', no Invalidation: true }, 28 { property: 'max-height', prevValue: '100px', value: 'calc(50px + 50px)', no Invalidation: true },
26 { property: 'max-height', prevValue: '100px', value: 'calc(50px + var(--fift ypx))', noInvalidation: true }, 29 { property: 'max-height', prevValue: '100px', value: 'calc(50px + var(--fift ypx))', noInvalidation: true },
27 { property: 'flex-basis', value: '100px' }, 30 { property: 'flex-basis', value: '100px' },
28 { property: 'flex-basis', prevValue: '100px' }, 31 { property: 'flex-basis', prevValue: '100px' },
29 { property: 'flex-basis', value: '200px', noInvalidation: true }, 32 { property: 'flex-basis', value: '200px', noInvalidation: true },
30 { property: 'flex-basis', prevValue: '200px', noInvalidation: true }, 33 { property: 'flex-basis', prevValue: '200px', noInvalidation: true },
31 { property: 'color', value: 'red' }, 34 { property: 'color', value: 'red' },
32 { property: 'color', prevValue: '#F00', value: 'red', noInvalidation: true } , 35 { property: 'color', prevValue: '#F00', value: 'red', noInvalidation: true } ,
33 { property: 'border-top-color', value: 'blue' }, 36 { property: 'border-top-color', value: 'blue' },
34 { property: 'border-top-color', prevValue: 'rgb(0,0,255)', value: 'blue', no Invalidation: true }, 37 { property: 'border-top-color', prevValue: 'rgb(0,0,255)', value: 'blue', no Invalidation: true },
35 { property: '--foo', value: 'foo' }, 38 { property: '--foo', value: 'foo' },
36 { property: '--foo', prevValue: 'foo', value: 'var(--str)', noInvalidation: true}, 39 { property: '--foo', prevValue: 'foo', value: 'var(--str)', noInvalidation: true},
37 { property: '--str', value: 'bar'}, 40 { property: '--str', value: 'bar'},
38 { property: '--str', value: 'foo', noInvalidation: true }, 41 { property: '--str', value: 'foo', noInvalidation: true },
42 { property: '--length-inherited', value: '10px'},
43 { property: '--length-non-inherited', value: '20px'},
39 ]); 44 ]);
40 </script> 45 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698