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) |