OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../resources/run-after-layout-and-paint.js"></script> | 4 <script src="../resources/run-after-layout-and-paint.js"></script> |
5 <script src="resources/test-runner-paint-worklet.js"></script> | 5 <script src="resources/test-runner-paint-worklet.js"></script> |
6 <script src="resources/generate-paint-style-logging.js"></script> | 6 <script src="resources/generate-paint-style-logging.js"></script> |
7 <style> | 7 <style> |
8 div { | 8 div { |
9 width: 100px; | 9 width: 100px; |
10 height: 100px; | 10 height: 100px; |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 importPaintWorkletAndTerminateTestAfterAsyncPaint( | 29 importPaintWorkletAndTerminateTestAfterAsyncPaint( |
30 generatePaintStyleLogging([ | 30 generatePaintStyleLogging([ |
31 '--length', | 31 '--length', |
32 '--length-initial', | 32 '--length-initial', |
33 '--number', | 33 '--number', |
34 ])); | 34 ])); |
35 </script> | 35 </script> |
36 <p>This tests the style information in the paint callback.</p> | 36 <p>This tests the style information in the paint callback.</p> |
37 <p>See the devtools console for test output. The console should log:</p> | 37 <p>See the devtools console for test output. The console should log:</p> |
38 --length: [CSSSimpleLength=10px]<br> | 38 --length: [CSSStyleValue=10px]<br> |
39 --length-initial: [CSSSimpleLength=20px]<br> | 39 --length-initial: [CSSStyleValue=20px]<br> |
40 --number: [CSSNumberValue=10]<br> | 40 --number: [CSSStyleValue=10]<br> |
41 | 41 |
42 </html> | 42 </html> |
OLD | NEW |