mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
Otherwise, we just keep painting into the old backing store. This fixes an issue where the main spreadsheet area in Google Sheets was not visually updating, despite everything looking good in memory.
21 lines
586 B
HTML
21 lines
586 B
HTML
<!doctype html>
|
|
<script src="../include.js"></script>
|
|
<canvas id="myCanvas" width="10" height="10"></canvas>
|
|
<script>
|
|
test(() => {
|
|
myCanvas.offsetWidth;
|
|
let x = myCanvas.getContext("2d");
|
|
x.fillStyle = 'red';
|
|
x.fillRect(0, 0, 10, 10);
|
|
myCanvas.width = 20;
|
|
myCanvas.height = 20;
|
|
x.fillStyle = 'green';
|
|
x.fillRect(0, 0, 20, 20);
|
|
let data = x.getImageData(0, 0, 20, 20);
|
|
println(data.data[0]);
|
|
println(data.data[1]);
|
|
println(data.data[2]);
|
|
println(data.data[3]);
|
|
});
|
|
</script>
|