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

Unified Diff: third_party/WebKit/LayoutTests/csspaint/registered-properties-in-custom-paint.html

Issue 2428793002: Test usage of registered custom properties in custom paint (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/csspaint/registered-properties-in-custom-paint-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/csspaint/registered-properties-in-custom-paint.html
diff --git a/third_party/WebKit/LayoutTests/csspaint/style-before-pseudo.html b/third_party/WebKit/LayoutTests/csspaint/registered-properties-in-custom-paint.html
similarity index 57%
copy from third_party/WebKit/LayoutTests/csspaint/style-before-pseudo.html
copy to third_party/WebKit/LayoutTests/csspaint/registered-properties-in-custom-paint.html
index 6b4a08898621d82cdf99228ba281fab38ecb5ddb..1615ed1531c09e040a0530bbaafd75ae259234bd 100644
--- a/third_party/WebKit/LayoutTests/csspaint/style-before-pseudo.html
+++ b/third_party/WebKit/LayoutTests/csspaint/registered-properties-in-custom-paint.html
@@ -6,17 +6,13 @@
<script src="resources/generate-paint-style-logging.js"></script>
<style>
div {
- border-radius: 3px;
- }
-
- div::before {
width: 100px;
height: 100px;
- content: 'foo';
background-image: paint(test);
- border-radius: 2px;
- --foo: bar;
+
+ --length: 10px;
+ --number: 10;
}
</style>
</head>
@@ -26,17 +22,21 @@
if (window.testRunner)
testRunner.dumpAsText();
+ CSS.registerProperty({name: '--length', syntax: '<length>', initialValue: '0px'});
+ CSS.registerProperty({name: '--length-initial', syntax: '<length>', initialValue: '20px'});
+ CSS.registerProperty({name: '--number', syntax: '<number>', initialValue: '0'});
+
importPaintWorkletAndTerminateTestAfterAsyncPaint(
generatePaintStyleLogging([
- '--bar',
- '--foo',
- 'border-radius',
+ '--length',
+ '--length-initial',
+ '--number',
]));
</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>
-border-radius: 2px
-</body>
+--length: [CSSSimpleLength=10px]<br>
+--length-initial: [CSSSimpleLength=20px]<br>
+--number: [CSSNumberValue=10]<br>
+
</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/csspaint/registered-properties-in-custom-paint-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698