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

Side by Side Diff: third_party/WebKit/LayoutTests/csspaint/style-background-image.html

Issue 2868003002: CSSPaint: Move layout tests in csspaint/ to http/tests/csspaint/ (Closed)
Patch Set: rebase Created 3 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/run-after-layout-and-paint.js"></script>
5 <script src="resources/test-runner-paint-worklet.js"></script>
6 <script src="resources/generate-paint-style-logging.js"></script>
7 <style>
8 div {
9 width: 100px;
10 height: 100px;
11
12 background-image: paint(test);
13 border-radius: 2px;
14 --foo: bar;
15 }
16 </style>
17 </head>
18 <body>
19 <div></div>
20 <script>
21 if (window.testRunner)
22 testRunner.dumpAsText();
23
24 importPaintWorkletAndTerminateTestAfterAsyncPaint(
25 generatePaintStyleLogging([
26 '--bar',
27 '--foo',
28 'align-items',
29 'border-radius',
30 ]));
31 </script>
32 <p>This tests the style information in the paint callback.</p>
33 <p>See the devtools console for test output. The console should log:</p>
34 --bar: [null]<br>
35 --foo: [CSSStyleValue= bar]<br>
36 align-items: [CSSKeywordValue=normal]<br>
37 border-radius: [CSSStyleValue=2px]
38 </body>
39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698