Skip to content

Commit 3dbf196

Browse files
Don't parse element dependent math functions in canvas context
Fixed: 416454066 Change-Id: I0b864228593318e98a81143b5eed11b328795624 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6533703 Reviewed-by: Rune Lillesveen <[email protected]> Commit-Queue: Daniil Sakhapov <[email protected]> Cr-Commit-Position: refs/heads/main@{#1460616}
1 parent 3b98b22 commit 3dbf196

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<link rel="help" href="http://crbug.com/416454066">
3+
<canvas id="canvas"></canvas>
4+
<script>
5+
const canvas = document.getElementById("canvas");
6+
const ctx = canvas.getContext("2d");
7+
8+
ctx.fillStyle = "lch(from blue calc(l + sibling-index()) c h)";
9+
ctx.fillRect(10, 10, 100, 100);
10+
</script>

0 commit comments

Comments
 (0)