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

Unified Diff: content/test/data/gpu/pixel_offscreenCanvas_webgl_commit_worker.html

Issue 2495373003: Match html canvas which is transferred to OffscreenCanvas to CSS style (Closed)
Patch Set: Created 4 years, 1 month 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: content/test/data/gpu/pixel_offscreenCanvas_webgl_commit_worker.html
diff --git a/content/test/data/gpu/pixel_offscreenCanvas_webgl_commit_worker.html b/content/test/data/gpu/pixel_offscreenCanvas_webgl_commit_worker.html
index 292500ea9b39392e52a27e2ab9aa960d5fb866c0..4355124ec32b0692f169eae45a43ff10e8aaaf1c 100644
--- a/content/test/data/gpu/pixel_offscreenCanvas_webgl_commit_worker.html
+++ b/content/test/data/gpu/pixel_offscreenCanvas_webgl_commit_worker.html
@@ -8,11 +8,21 @@ that the baseline images are regenerated on the next run.
<html>
<head>
-<title>OffscreenCanvas commit flow on worker thread: red square on white background.</title>
+<title>OffscreenCanvas commit flow on worker thread: red rectangle with yellow border on white background.</title>
+<!-- The canvas css style is added to check if the style change on html canvas
+ element can be correctly rendered to the screen via compositor commit.
+ The intrinsic size of canvas remains 300X300 whilst the rendered canvas on
+ the screen follows 100X200 css style restriction.
+-->
<style type="text/css">
.nomargin {
margin: 0px auto;
}
+canvas {
+ width: 100px;
+ height: 200px;
+ border: 10px solid yellow;
+}
</style>
<script id="myWorker" type="text/worker">
function drawTriangle(canvas)

Powered by Google App Engine
This is Rietveld 408576698