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

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

Issue 2054023002: [CSS Paint API] Add StylePropertyMap as an argument to the paint function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/csspaint/style-background-image.html
diff --git a/third_party/WebKit/LayoutTests/csspaint/style-background-image.html b/third_party/WebKit/LayoutTests/csspaint/style-background-image.html
new file mode 100644
index 0000000000000000000000000000000000000000..ed5c78352a8f304d4f65934417de1d37e52b85f0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/csspaint/style-background-image.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../resources/run-after-layout-and-paint.js"></script>
+<script src="resources/test-runner-paint-worklet.js"></script>
+<script src="resources/generate-paint-style-logging.js"></script>
+<style>
+ div {
+ width: 100px;
+ height: 100px;
+
+ background-image: paint(test);
+ border-radius: 2px;
+ --foo: bar;
+ }
+</style>
+</head>
+<body>
+<div></div>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ importPaintWorkletAndTerminateTestAfterAsyncPaint(
+ generatePaintStyleLogging([
+ '--bar',
+ '--foo',
+ 'align-items',
+ 'border-radius',
+ ]));
+</script>
+<p>This tests the style information in the paint callback.</p>
+<p>See the devtools console for test output. The console should log:</p>
+--bar: [null]<br>
+--foo: bar<br>
+align-items: start<br>
+border-radius: 2px
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698