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

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

Issue 1896893004: Hook up style invalidation for CSS Paint API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@css-paint-register
Patch Set: Redo CSSParserToken::operator==() Created 4 years, 7 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 <!DOCTYPE html>
2 <html>
3 <head>
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 border: solid 0;
14 border-image-slice: 0 fill;
15
16 flex-basis: 200px;
17 --str:foo;
18 --fiftypx: 50px;
19 }
20 </style>
21 </head>
22 <body>
23 <p>This tests the invalidation behaviour of the paint callback.</p>
24 <p>See the devtools console for additional test output.</p>
25 <script>
26 // TODO(ikilpatrick): Should test shorthands and direction aware properties.
27 testRunnerInvalidationLogging('border-image-source', [
28 { property: 'max-height', value: '160px' },
29 { property: 'max-height', prevValue: '100px', value: '160px' },
30 { property: 'max-height', prevValue: '100px', value: 'calc(50px + 50px)', no Invalidation: true },
31 { property: 'max-height', prevValue: '100px', value: 'calc(50px + var(--fift ypx))', noInvalidation: true },
32 { property: 'flex-basis', value: '100px' },
33 { property: 'flex-basis', prevValue: '100px' },
34 { property: 'flex-basis', value: '200px', noInvalidation: true },
35 { property: 'flex-basis', prevValue: '200px', noInvalidation: true },
36 { property: 'color', value: 'red' },
37 { property: 'color', prevValue: '#F00', value: 'red', noInvalidation: true } ,
38 { property: 'border-top-color', value: 'blue' },
39 { property: 'border-top-color', prevValue: 'rgb(0,0,255)', value: 'blue', no Invalidation: true },
40 { property: '--foo', value: 'foo' },
41 { property: '--foo', prevValue: 'foo', value: 'var(--str)', noInvalidation: true},
42 { property: '--str', value: 'bar'},
43 { property: '--str', value: 'foo', noInvalidation: true },
44 ]);
45 </script>
46 </body>
47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698