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

Unified Diff: third_party/WebKit/LayoutTests/csspaint/invalidation-list-style-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: fix component build. Created 4 years, 8 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/invalidation-list-style-image.html
diff --git a/third_party/WebKit/LayoutTests/csspaint/invalidation-list-style-image.html b/third_party/WebKit/LayoutTests/csspaint/invalidation-list-style-image.html
new file mode 100644
index 0000000000000000000000000000000000000000..f41086fbddca27f99bc43dd19f82e4fe721bb59b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/csspaint/invalidation-list-style-image.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../resources/run-after-layout-and-paint.js"></script>
+<script src="resources/test-runner-invalidation-logging.js"></script>
+<style>
+ div {
+ display: list-item;
+ margin-left: 20px;
+ width: 100px;
+ height: 100px;
+ }
+</style>
+</head>
+<body>
+<p>This tests the invalidation behaviour of the paint callback.</p>
+<p>See the devtools console for test output.</p>
+<script>
+// TODO(ikilpatrick): Should test shorthands and direction aware properties.
+testRunnerInvalidationLogging('list-style-image', [
+ { property: 'max-height', value: '160px' },
+ { property: 'border-top-color', value: 'blue' },
+ { property: 'flex-basis', value: '100px' },
+ { property: 'flex-grow', value: '2' },
+ { property: 'color', value: 'red' },
+ { property: '--foo', value: 'foo' },
+]);
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698