OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
esprehn
2016/05/09 21:59:54
leave out html and body
ikilpatrick
2016/05/10 20:39:37
Done.
| |
4 <script src="../resources/testharness.js"></script> | |
5 <script src="../resources/testharnessreport.js"></script> | |
6 <script src="../resources/run-after-layout-and-paint.js"></script> | |
7 <script src="resources/test-runner-invalidation-logging.js"></script> | |
8 <style> | |
9 div { | |
10 width: 100px; | |
11 height: 100px; | |
12 background-color: red; | |
13 | |
14 flex-basis: 200px; | |
15 --str:foo; | |
16 --fiftypx: 50px; | |
17 } | |
18 </style> | |
19 </head> | |
20 <body> | |
21 <p>This tests the invalidation behaviour of the paint callback.</p> | |
22 <p>See the devtools console for additional test output.</p> | |
23 <script> | |
24 // TODO(ikilpatrick): Should test shorthands and direction aware properties. | |
Timothy Loh
2016/05/09 07:07:07
We only have legacy (prefixed) direction aware pro
ikilpatrick
2016/05/10 20:39:37
Done.
| |
25 testRunnerInvalidationLogging('background-image', [ | |
26 { property: 'max-height', value: '160px' }, | |
27 { property: 'max-height', prevValue: '100px', value: '160px' }, | |
28 { property: 'max-height', prevValue: '100px', value: 'calc(50px + 50px)', no Invalidation: true }, | |
29 { property: 'max-height', prevValue: '100px', value: 'calc(50px + var(--fift ypx))', noInvalidation: true }, | |
30 { property: 'flex-basis', value: '100px' }, | |
31 { property: 'flex-basis', prevValue: '100px' }, | |
32 { property: 'flex-basis', value: '200px', noInvalidation: true }, | |
33 { property: 'flex-basis', prevValue: '200px', noInvalidation: true }, | |
34 { property: 'color', value: 'red' }, | |
35 { property: 'color', prevValue: '#F00', value: 'red', noInvalidation: true } , | |
36 { property: 'border-top-color', value: 'blue' }, | |
37 { property: 'border-top-color', prevValue: 'rgb(0,0,255)', value: 'blue', no Invalidation: true }, | |
38 { property: '--foo', value: 'foo' }, | |
39 { property: '--foo', prevValue: 'foo', value: 'var(--str)', noInvalidation: true}, | |
40 { property: '--str', value: 'bar'}, | |
41 { property: '--str', value: 'foo', noInvalidation: true }, | |
42 ]); | |
43 </script> | |
44 </body> | |
45 </html> | |
OLD | NEW |