Truly independent web browser
Tests/LibWeb: Import canvas WPT tests
Andreas Klingbf36ce77505e
diff --git a/Tests/LibWeb/TestConfig.ini b/Tests/LibWeb/TestConfig.iniindex 6d14e304309..474f32c93a0 100644--- a/Tests/LibWeb/TestConfig.ini+++ b/Tests/LibWeb/TestConfig.ini@@ -530,6 +530,108 @@ Text/input/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawText/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.fillRect.basic.worker.htmlText/input/wpt-import/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.getcontext.worker.htmlText/input/wpt-import/html/canvas/offscreen/pixel-manipulation/2d.imageData.get.order.rgb.worker.html+Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.copy.html+Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-atop.html+Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-in.html+Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-in.html+Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-out.html+Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.copy.html+Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-atop.html+Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-in.html+Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-in.html+Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-out.html+Text/input/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.floatsource.html+Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.alpha.html+Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.basic.html+Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.scale.html+Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.transparent.2.html+Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.pattern.alpha.html+Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.pattern.transparent.1.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.html+Text/input/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.html+Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.alpha.html+Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.basic.html+Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.scale.html+Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.html+Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.html+Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.worker.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-atop.worker.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-in.worker.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-in.worker.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-out.worker.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.worker.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.worker.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.worker.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.worker.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.worker.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.worker.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.worker.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.worker.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.worker.html+Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.worker.html+Text/input/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.worker.html+Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.worker.html+Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.worker.html+Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.worker.html+Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.worker.html+Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.worker.html+Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.worker.html+Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.worker.html+Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.worker.html+Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.equal.worker.html+Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.arc.twopie.5.worker.html+Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.basic.worker.html+Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.scaleddashes.worker.html+Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.roundrect.negative.worker.html+Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.arc.worker.html+Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.closed.worker.html+Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.curve.worker.html+Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.line.worker.html+Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.rect.worker.html+Text/input/wpt-import/html/canvas/offscreen/pixel-manipulation/2d.imageData.put.clip.worker.html+Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_kerning.worker.html+Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_variant_caps.worker.html+Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.text_rendering.worker.html+Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.word_spacing.worker.html+Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.alpha.worker.html+Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.basic.worker.html+Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.transparent.2.worker.html+Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.gradient.alpha.worker.html+Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.alpha.worker.html+Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.basic.worker.html+Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.scale.worker.html+Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.worker.html+Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.worker.html+Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.worker.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.absolute.spacing.worker.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.font-relative.spacing.worker.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontKerning.with.uppercase.worker.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontStretch.settings.worker.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontVariant.settings.worker.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.invalid.spacing.worker.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.worker.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.measure.worker.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.direction.worker.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.textAlign.worker.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.nonfinite.spacing.worker.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.textRendering.settings.worker.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.worker.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.measure.worker.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.lang.default.worker.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.worker.html+Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.worker.html; Fallback favicon fetch requires HTTP(S) scheme.Crash/HTML/fallback-favicon-invalid-base.htmldiff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.copy.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.copy.txtnew file mode 100644index 00000000000..827e0e557d3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.copy.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-atop.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-atop.txtnew file mode 100644index 00000000000..827e0e557d3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-atop.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-in.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-in.txtnew file mode 100644index 00000000000..827e0e557d3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-in.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-in.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-in.txtnew file mode 100644index 00000000000..827e0e557d3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-in.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-out.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-out.txtnew file mode 100644index 00000000000..827e0e557d3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-out.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.copy.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.copy.txtnew file mode 100644index 00000000000..f2f9ef2142a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.copy.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-atop.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-atop.txtnew file mode 100644index 00000000000..f2f9ef2142a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-atop.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-in.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-in.txtnew file mode 100644index 00000000000..f2f9ef2142a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-in.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-in.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-in.txtnew file mode 100644index 00000000000..f2f9ef2142a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-in.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-out.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-out.txtnew file mode 100644index 00000000000..f2f9ef2142a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-out.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.copy.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.copy.txtnew file mode 100644index 00000000000..04100e66f9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.copy.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-atop.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-atop.txtnew file mode 100644index 00000000000..04100e66f9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-atop.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-in.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-in.txtnew file mode 100644index 00000000000..04100e66f9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-in.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-in.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-in.txtnew file mode 100644index 00000000000..04100e66f9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-in.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-out.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-out.txtnew file mode 100644index 00000000000..04100e66f9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-out.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.floatsource.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.floatsource.txtnew file mode 100644index 00000000000..5b845058fd5--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.floatsource.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Canvas test: 2d.drawImage.floatsource\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.incomplete.emptysrc.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.incomplete.emptysrc.txtnew file mode 100644index 00000000000..2428b1d6346--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.incomplete.emptysrc.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Canvas test: 2d.drawImage.incomplete.emptysrc\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.incomplete.removedsrc.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.incomplete.removedsrc.txtnew file mode 100644index 00000000000..f2c8f025348--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.incomplete.removedsrc.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Canvas test: 2d.drawImage.incomplete.removedsrc\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.txtnew file mode 100644index 00000000000..a00f814e1bb--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail strokeRect of 0x0 pixels draws nothing, including caps and joins\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.txtnew file mode 100644index 00000000000..42689fe461c--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail strokeRect of Nx0 pixels draws a closed line with no caps\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.txtnew file mode 100644index 00000000000..892776c8c04--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail strokeRect of Nx0 pixels draws a closed line with joins\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.txtnew file mode 100644index 00000000000..5896efd5f67--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Conic gradient with positive rotation\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.txtnew file mode 100644index 00000000000..32f48962ac7--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Canvas test: 2d.gradient.interpolate.zerosize.fill\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.txtnew file mode 100644index 00000000000..1cb6df770bd--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Canvas test: 2d.gradient.interpolate.zerosize.fillRect\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.txtnew file mode 100644index 00000000000..0b8ff4fd55c--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Canvas test: 2d.gradient.interpolate.zerosize.stroke\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.txtnew file mode 100644index 00000000000..74e6adb3d5e--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Canvas test: 2d.gradient.interpolate.zerosize.strokeRect\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.radial.equal.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.radial.equal.txtnew file mode 100644index 00000000000..d9f82042272--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.radial.equal.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Canvas test: 2d.gradient.radial.equal\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.incomplete.emptysrc.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.incomplete.emptysrc.txtnew file mode 100644index 00000000000..a1b16490201--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.incomplete.emptysrc.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Canvas test: 2d.pattern.image.incomplete.emptysrc\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.incomplete.removedsrc.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.incomplete.removedsrc.txtnew file mode 100644index 00000000000..a44cf4c92c3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.incomplete.removedsrc.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Canvas test: 2d.pattern.image.incomplete.removedsrc\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/manual/fill-and-stroke-styles/canvas_colorsandstyles_createlineargradient_001.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/manual/fill-and-stroke-styles/canvas_colorsandstyles_createlineargradient_001.txtnew file mode 100644index 00000000000..a3d611dd594--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/manual/fill-and-stroke-styles/canvas_colorsandstyles_createlineargradient_001.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail linear gradient from point to self draws nothing\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.arc.twopie.5.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.arc.twopie.5.txtnew file mode 100644index 00000000000..6291d061312--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.arc.twopie.5.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail arc() draws correctly when start = 2 and end = start + 2pi+e and clockwise\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.isPointInStroke.scaleddashes.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.isPointInStroke.scaleddashes.txtnew file mode 100644index 00000000000..dfe99d37f14--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.isPointInStroke.scaleddashes.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail isPointInStroke() should return correct results on dashed paths at high scale factors\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.roundrect.negative.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.roundrect.negative.txtnew file mode 100644index 00000000000..07ed5fe0fb1--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.roundrect.negative.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Canvas test: 2d.path.roundrect.negative\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.arc.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.arc.txtnew file mode 100644index 00000000000..0f9e24c8568--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.arc.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Zero-length line segments from arcTo and arc are removed before stroking\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.closed.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.closed.txtnew file mode 100644index 00000000000..ef6cc1682dc--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.closed.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Zero-length line segments from closed paths are removed before stroking\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.curve.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.curve.txtnew file mode 100644index 00000000000..86d8b6ad628--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.curve.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Zero-length line segments from quadraticCurveTo and bezierCurveTo are removed before stroking\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.line.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.line.txtnew file mode 100644index 00000000000..22c4779eaaa--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.line.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Zero-length line segments from lineTo are removed before stroking\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.rect.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.rect.txtnew file mode 100644index 00000000000..d17f9f12e0d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.rect.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Zero-length line segments from rect and strokeRect are removed before stroking\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/pixel-manipulation/2d.imageData.put.clip.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/pixel-manipulation/2d.imageData.put.clip.txtnew file mode 100644index 00000000000..db696833e10--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/pixel-manipulation/2d.imageData.put.clip.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail putImageData() is not affected by clipping regions\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/reset/2d.reset.state.font_kerning.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/reset/2d.reset.state.font_kerning.txtnew file mode 100644index 00000000000..24514dd912d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/reset/2d.reset.state.font_kerning.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail check that the state is reset\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/reset/2d.reset.state.font_variant_caps.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/reset/2d.reset.state.font_variant_caps.txtnew file mode 100644index 00000000000..24514dd912d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/reset/2d.reset.state.font_variant_caps.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail check that the state is reset\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/reset/2d.reset.state.text_rendering.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/reset/2d.reset.state.text_rendering.txtnew file mode 100644index 00000000000..24514dd912d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/reset/2d.reset.state.text_rendering.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail check that the state is reset\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/reset/2d.reset.state.word_spacing.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/reset/2d.reset.state.word_spacing.txtnew file mode 100644index 00000000000..24514dd912d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/reset/2d.reset.state.word_spacing.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail check that the state is reset\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.alpha.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.alpha.txtnew file mode 100644index 00000000000..82e71264eef--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.alpha.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn correctly for partially-transparent canvases\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.basic.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.basic.txtnew file mode 100644index 00000000000..e9508657796--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.basic.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn for canvases\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.transparent.2.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.transparent.2.txtnew file mode 100644index 00000000000..f09350ed1d7--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.transparent.2.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are not drawn for transparent parts of canvases\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.gradient.alpha.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.gradient.alpha.txtnew file mode 100644index 00000000000..d03e06f2d1e--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.gradient.alpha.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn correctly for partially-transparent gradient fills\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.image.alpha.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.image.alpha.txtnew file mode 100644index 00000000000..1e95d55d9cd--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.image.alpha.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn correctly for partially-transparent images\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.image.basic.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.image.basic.txtnew file mode 100644index 00000000000..6ccd769ef7f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.image.basic.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn for images\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.image.scale.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.image.scale.txtnew file mode 100644index 00000000000..786143e747c--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.image.scale.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn correctly for scaled images\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.image.transparent.2.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.image.transparent.2.txtnew file mode 100644index 00000000000..cad48e8cdbe--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.image.transparent.2.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are not drawn for transparent parts of images\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.pattern.alpha.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.pattern.alpha.txtnew file mode 100644index 00000000000..f993a56dd80--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.pattern.alpha.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn correctly for partially-transparent fill patterns\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.pattern.transparent.1.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.pattern.transparent.1.txtnew file mode 100644index 00000000000..891b6a43736--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/shadows/2d.shadow.pattern.transparent.1.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are not drawn for transparent fill patterns\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.draw.align.end.rtl.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.draw.align.end.rtl.txtnew file mode 100644index 00000000000..20a6fd9f1ec--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.draw.align.end.rtl.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail textAlign end with rtl is the left edge\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.draw.align.start.rtl.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.draw.align.start.rtl.txtnew file mode 100644index 00000000000..8864a153292--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.draw.align.start.rtl.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail textAlign start with rtl is the right edge\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.absolute.spacing.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.absolute.spacing.txtnew file mode 100644index 00000000000..fe3d4a6dd7d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.absolute.spacing.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing letter spacing and word spacing with absolute length\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.font-relative.spacing.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.font-relative.spacing.txtnew file mode 100644index 00000000000..80e05fb5639--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.font-relative.spacing.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing letter spacing and word spacing with font-relative length\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontKerning.with.uppercase.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontKerning.with.uppercase.txtnew file mode 100644index 00000000000..d8fd0a53a33--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontKerning.with.uppercase.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing basic functionalities of fontKerning for canvas\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontStretch.settings.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontStretch.settings.txtnew file mode 100644index 00000000000..367c58661d9--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontStretch.settings.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing value setting of fontStretch in Canvas\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontVariant.settings.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontVariant.settings.txtnew file mode 100644index 00000000000..6e4b3069692--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontVariant.settings.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing basic functionalities of fontVariant for canvas\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.invalid.spacing.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.invalid.spacing.txtnew file mode 100644index 00000000000..979193b4ed1--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.invalid.spacing.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing letter spacing and word spacing with invalid units\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.letterSpacing.change.font.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.letterSpacing.change.font.txtnew file mode 100644index 00000000000..2d4a19969f7--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.letterSpacing.change.font.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Set letter spacing and word spacing to font dependent value and verify it works after font change.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.letterSpacing.measure.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.letterSpacing.measure.txtnew file mode 100644index 00000000000..c92e9b31c9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.letterSpacing.measure.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing letter spacing with different length units\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.measure.direction.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.measure.direction.txtnew file mode 100644index 00000000000..f61b331699a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.measure.direction.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Measurement should follow text direction\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.measure.textAlign.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.measure.textAlign.txtnew file mode 100644index 00000000000..cb69aa664ab--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.measure.textAlign.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Measurement should be related to textAlignment\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.nonfinite.spacing.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.nonfinite.spacing.txtnew file mode 100644index 00000000000..b09d2ace6a9--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.nonfinite.spacing.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing letter spacing and word spacing with nonfinite inputs\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.textRendering.settings.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.textRendering.settings.txtnew file mode 100644index 00000000000..c23368aaadf--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.textRendering.settings.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing basic functionalities of textRendering in Canvas\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.wordSpacing.change.font.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.wordSpacing.change.font.txtnew file mode 100644index 00000000000..77cdc564e66--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.wordSpacing.change.font.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Set word spacing and word spacing to font dependent value and verify it works after font change.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.wordSpacing.measure.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.wordSpacing.measure.txtnew file mode 100644index 00000000000..1881cb40989--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.drawing.style.wordSpacing.measure.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing word spacing with different length units\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.lang.default.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.lang.default.txtnew file mode 100644index 00000000000..781cf7ff191--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.lang.default.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Canvas test: 2d.text.lang.default\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.measure.actualBoundingBox.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.measure.actualBoundingBox.txtnew file mode 100644index 00000000000..614daaf21cb--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.measure.actualBoundingBox.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing actualBoundingBox\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.measure.actualBoundingBox.whitespace.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.measure.actualBoundingBox.whitespace.txtnew file mode 100644index 00000000000..a2c43291bd6--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/element/text/2d.text.measure.actualBoundingBox.whitespace.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing actualBoundingBox with leading/trailing whitespace\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.txtnew file mode 100644index 00000000000..827e0e557d3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.worker.txtnew file mode 100644index 00000000000..827e0e557d3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-atop.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-atop.txtnew file mode 100644index 00000000000..827e0e557d3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-atop.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-atop.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-atop.worker.txtnew file mode 100644index 00000000000..827e0e557d3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-atop.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-in.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-in.txtnew file mode 100644index 00000000000..827e0e557d3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-in.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-in.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-in.worker.txtnew file mode 100644index 00000000000..827e0e557d3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-in.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-in.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-in.txtnew file mode 100644index 00000000000..827e0e557d3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-in.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-in.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-in.worker.txtnew file mode 100644index 00000000000..827e0e557d3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-in.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-out.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-out.txtnew file mode 100644index 00000000000..827e0e557d3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-out.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-out.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-out.worker.txtnew file mode 100644index 00000000000..827e0e557d3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-out.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.txtnew file mode 100644index 00000000000..f2f9ef2142a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.worker.txtnew file mode 100644index 00000000000..f2f9ef2142a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.txtnew file mode 100644index 00000000000..f2f9ef2142a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.worker.txtnew file mode 100644index 00000000000..f2f9ef2142a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.txtnew file mode 100644index 00000000000..f2f9ef2142a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.worker.txtnew file mode 100644index 00000000000..f2f9ef2142a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.txtnew file mode 100644index 00000000000..f2f9ef2142a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.worker.txtnew file mode 100644index 00000000000..f2f9ef2142a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.txtnew file mode 100644index 00000000000..f2f9ef2142a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.worker.txtnew file mode 100644index 00000000000..f2f9ef2142a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.txtnew file mode 100644index 00000000000..04100e66f9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.worker.txtnew file mode 100644index 00000000000..04100e66f9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.txtnew file mode 100644index 00000000000..04100e66f9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.worker.txtnew file mode 100644index 00000000000..04100e66f9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.txtnew file mode 100644index 00000000000..04100e66f9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.worker.txtnew file mode 100644index 00000000000..04100e66f9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.txtnew file mode 100644index 00000000000..04100e66f9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.worker.txtnew file mode 100644index 00000000000..04100e66f9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.txtnew file mode 100644index 00000000000..04100e66f9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.worker.txtnew file mode 100644index 00000000000..04100e66f9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.txtnew file mode 100644index 00000000000..d19a89bf975--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail OffscreenCanvas test: 2d.drawImage.floatsource\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.worker.txtnew file mode 100644index 00000000000..cd924677233--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail 2d\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.txtnew file mode 100644index 00000000000..a00f814e1bb--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail strokeRect of 0x0 pixels draws nothing, including caps and joins\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.worker.txtnew file mode 100644index 00000000000..a00f814e1bb--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail strokeRect of 0x0 pixels draws nothing, including caps and joins\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.txtnew file mode 100644index 00000000000..42689fe461c--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail strokeRect of Nx0 pixels draws a closed line with no caps\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.worker.txtnew file mode 100644index 00000000000..42689fe461c--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail strokeRect of Nx0 pixels draws a closed line with no caps\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.txtnew file mode 100644index 00000000000..892776c8c04--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail strokeRect of Nx0 pixels draws a closed line with joins\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.worker.txtnew file mode 100644index 00000000000..892776c8c04--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail strokeRect of Nx0 pixels draws a closed line with joins\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.txtnew file mode 100644index 00000000000..5896efd5f67--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Conic gradient with positive rotation\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.worker.txtnew file mode 100644index 00000000000..5896efd5f67--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Conic gradient with positive rotation\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.txtnew file mode 100644index 00000000000..66112cd6bef--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail OffscreenCanvas test: 2d.gradient.interpolate.zerosize.fill\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.worker.txtnew file mode 100644index 00000000000..cd924677233--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail 2d\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.txtnew file mode 100644index 00000000000..6fa3a6dc27b--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail OffscreenCanvas test: 2d.gradient.interpolate.zerosize.fillRect\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.worker.txtnew file mode 100644index 00000000000..cd924677233--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail 2d\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.txtnew file mode 100644index 00000000000..113e68b5d0b--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail OffscreenCanvas test: 2d.gradient.interpolate.zerosize.stroke\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.worker.txtnew file mode 100644index 00000000000..cd924677233--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail 2d\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.txtnew file mode 100644index 00000000000..2635e8959d8--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail OffscreenCanvas test: 2d.gradient.interpolate.zerosize.strokeRect\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.worker.txtnew file mode 100644index 00000000000..cd924677233--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail 2d\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.equal.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.equal.txtnew file mode 100644index 00000000000..c7c56cff0a2--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.equal.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail OffscreenCanvas test: 2d.gradient.radial.equal\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.equal.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.equal.worker.txtnew file mode 100644index 00000000000..cd924677233--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.equal.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail 2d\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.arc.twopie.5.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.arc.twopie.5.txtnew file mode 100644index 00000000000..6291d061312--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.arc.twopie.5.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail arc() draws correctly when start = 2 and end = start + 2pi+e and clockwise\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.arc.twopie.5.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.arc.twopie.5.worker.txtnew file mode 100644index 00000000000..6291d061312--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.arc.twopie.5.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail arc() draws correctly when start = 2 and end = start + 2pi+e and clockwise\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.basic.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.basic.txtnew file mode 100644index 00000000000..f46cda2d2f4--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.basic.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail detects whether point is in the area contained by the stroke of the path\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.basic.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.basic.worker.txtnew file mode 100644index 00000000000..f46cda2d2f4--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.basic.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail detects whether point is in the area contained by the stroke of the path\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.scaleddashes.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.scaleddashes.txtnew file mode 100644index 00000000000..dfe99d37f14--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.scaleddashes.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail isPointInStroke() should return correct results on dashed paths at high scale factors\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.scaleddashes.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.scaleddashes.worker.txtnew file mode 100644index 00000000000..dfe99d37f14--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.scaleddashes.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail isPointInStroke() should return correct results on dashed paths at high scale factors\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.roundrect.negative.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.roundrect.negative.txtnew file mode 100644index 00000000000..c152b6ea31c--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.roundrect.negative.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail OffscreenCanvas test: 2d.path.roundrect.negative\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.roundrect.negative.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.roundrect.negative.worker.txtnew file mode 100644index 00000000000..cd924677233--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.roundrect.negative.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail 2d\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.arc.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.arc.txtnew file mode 100644index 00000000000..0f9e24c8568--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.arc.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Zero-length line segments from arcTo and arc are removed before stroking\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.arc.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.arc.worker.txtnew file mode 100644index 00000000000..0f9e24c8568--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.arc.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Zero-length line segments from arcTo and arc are removed before stroking\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.closed.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.closed.txtnew file mode 100644index 00000000000..ef6cc1682dc--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.closed.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Zero-length line segments from closed paths are removed before stroking\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.closed.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.closed.worker.txtnew file mode 100644index 00000000000..ef6cc1682dc--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.closed.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Zero-length line segments from closed paths are removed before stroking\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.curve.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.curve.txtnew file mode 100644index 00000000000..86d8b6ad628--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.curve.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Zero-length line segments from quadraticCurveTo and bezierCurveTo are removed before stroking\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.curve.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.curve.worker.txtnew file mode 100644index 00000000000..86d8b6ad628--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.curve.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Zero-length line segments from quadraticCurveTo and bezierCurveTo are removed before stroking\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.line.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.line.txtnew file mode 100644index 00000000000..22c4779eaaa--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.line.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Zero-length line segments from lineTo are removed before stroking\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.line.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.line.worker.txtnew file mode 100644index 00000000000..22c4779eaaa--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.line.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Zero-length line segments from lineTo are removed before stroking\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.rect.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.rect.txtnew file mode 100644index 00000000000..d17f9f12e0d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.rect.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Zero-length line segments from rect and strokeRect are removed before stroking\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.rect.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.rect.worker.txtnew file mode 100644index 00000000000..d17f9f12e0d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.rect.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Zero-length line segments from rect and strokeRect are removed before stroking\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/pixel-manipulation/2d.imageData.put.clip.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/pixel-manipulation/2d.imageData.put.clip.txtnew file mode 100644index 00000000000..db696833e10--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/pixel-manipulation/2d.imageData.put.clip.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail putImageData() is not affected by clipping regions\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/pixel-manipulation/2d.imageData.put.clip.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/pixel-manipulation/2d.imageData.put.clip.worker.txtnew file mode 100644index 00000000000..db696833e10--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/pixel-manipulation/2d.imageData.put.clip.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail putImageData() is not affected by clipping regions\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_kerning.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_kerning.txtnew file mode 100644index 00000000000..24514dd912d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_kerning.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail check that the state is reset\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_kerning.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_kerning.worker.txtnew file mode 100644index 00000000000..24514dd912d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_kerning.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail check that the state is reset\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_variant_caps.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_variant_caps.txtnew file mode 100644index 00000000000..24514dd912d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_variant_caps.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail check that the state is reset\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_variant_caps.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_variant_caps.worker.txtnew file mode 100644index 00000000000..24514dd912d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_variant_caps.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail check that the state is reset\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.text_rendering.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.text_rendering.txtnew file mode 100644index 00000000000..24514dd912d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.text_rendering.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail check that the state is reset\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.text_rendering.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.text_rendering.worker.txtnew file mode 100644index 00000000000..24514dd912d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.text_rendering.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail check that the state is reset\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.word_spacing.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.word_spacing.txtnew file mode 100644index 00000000000..24514dd912d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.word_spacing.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail check that the state is reset\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.word_spacing.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.word_spacing.worker.txtnew file mode 100644index 00000000000..24514dd912d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/reset/2d.reset.state.word_spacing.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail check that the state is reset\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.alpha.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.alpha.txtnew file mode 100644index 00000000000..82e71264eef--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.alpha.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn correctly for partially-transparent canvases\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.alpha.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.alpha.worker.txtnew file mode 100644index 00000000000..82e71264eef--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.alpha.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn correctly for partially-transparent canvases\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.basic.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.basic.txtnew file mode 100644index 00000000000..e9508657796--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.basic.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn for canvases\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.basic.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.basic.worker.txtnew file mode 100644index 00000000000..e9508657796--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.basic.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn for canvases\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.transparent.2.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.transparent.2.txtnew file mode 100644index 00000000000..f09350ed1d7--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.transparent.2.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are not drawn for transparent parts of canvases\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.transparent.2.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.transparent.2.worker.txtnew file mode 100644index 00000000000..f09350ed1d7--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.transparent.2.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are not drawn for transparent parts of canvases\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.gradient.alpha.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.gradient.alpha.txtnew file mode 100644index 00000000000..d03e06f2d1e--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.gradient.alpha.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn correctly for partially-transparent gradient fills\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.gradient.alpha.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.gradient.alpha.worker.txtnew file mode 100644index 00000000000..d03e06f2d1e--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.gradient.alpha.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn correctly for partially-transparent gradient fills\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.alpha.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.alpha.txtnew file mode 100644index 00000000000..1e95d55d9cd--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.alpha.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn correctly for partially-transparent images\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.alpha.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.alpha.worker.txtnew file mode 100644index 00000000000..1e95d55d9cd--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.alpha.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn correctly for partially-transparent images\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.basic.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.basic.txtnew file mode 100644index 00000000000..6ccd769ef7f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.basic.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn for images\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.basic.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.basic.worker.txtnew file mode 100644index 00000000000..6ccd769ef7f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.basic.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn for images\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.scale.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.scale.txtnew file mode 100644index 00000000000..786143e747c--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.scale.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn correctly for scaled images\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.scale.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.scale.worker.txtnew file mode 100644index 00000000000..786143e747c--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.scale.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn correctly for scaled images\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.txtnew file mode 100644index 00000000000..cad48e8cdbe--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are not drawn for transparent parts of images\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.worker.txtnew file mode 100644index 00000000000..cad48e8cdbe--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are not drawn for transparent parts of images\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.txtnew file mode 100644index 00000000000..f993a56dd80--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn correctly for partially-transparent fill patterns\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.worker.txtnew file mode 100644index 00000000000..f993a56dd80--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are drawn correctly for partially-transparent fill patterns\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.txtnew file mode 100644index 00000000000..891b6a43736--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are not drawn for transparent fill patterns\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.worker.txtnew file mode 100644index 00000000000..891b6a43736--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Shadows are not drawn for transparent fill patterns\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.absolute.spacing.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.absolute.spacing.txtnew file mode 100644index 00000000000..fe3d4a6dd7d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.absolute.spacing.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing letter spacing and word spacing with absolute length\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.absolute.spacing.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.absolute.spacing.worker.txtnew file mode 100644index 00000000000..fe3d4a6dd7d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.absolute.spacing.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing letter spacing and word spacing with absolute length\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.font-relative.spacing.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.font-relative.spacing.txtnew file mode 100644index 00000000000..80e05fb5639--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.font-relative.spacing.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing letter spacing and word spacing with font-relative length\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.font-relative.spacing.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.font-relative.spacing.worker.txtnew file mode 100644index 00000000000..80e05fb5639--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.font-relative.spacing.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing letter spacing and word spacing with font-relative length\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontKerning.with.uppercase.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontKerning.with.uppercase.txtnew file mode 100644index 00000000000..d8fd0a53a33--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontKerning.with.uppercase.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing basic functionalities of fontKerning for canvas\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontKerning.with.uppercase.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontKerning.with.uppercase.worker.txtnew file mode 100644index 00000000000..d8fd0a53a33--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontKerning.with.uppercase.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing basic functionalities of fontKerning for canvas\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontStretch.settings.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontStretch.settings.txtnew file mode 100644index 00000000000..367c58661d9--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontStretch.settings.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing value setting of fontStretch in Canvas\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontStretch.settings.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontStretch.settings.worker.txtnew file mode 100644index 00000000000..367c58661d9--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontStretch.settings.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing value setting of fontStretch in Canvas\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontVariant.settings.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontVariant.settings.txtnew file mode 100644index 00000000000..6e4b3069692--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontVariant.settings.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing basic functionalities of fontVariant for canvas\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontVariant.settings.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontVariant.settings.worker.txtnew file mode 100644index 00000000000..6e4b3069692--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontVariant.settings.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing basic functionalities of fontVariant for canvas\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.invalid.spacing.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.invalid.spacing.txtnew file mode 100644index 00000000000..979193b4ed1--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.invalid.spacing.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing letter spacing and word spacing with invalid units\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.invalid.spacing.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.invalid.spacing.worker.txtnew file mode 100644index 00000000000..979193b4ed1--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.invalid.spacing.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing letter spacing and word spacing with invalid units\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.txtnew file mode 100644index 00000000000..2d4a19969f7--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Set letter spacing and word spacing to font dependent value and verify it works after font change.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.worker.txtnew file mode 100644index 00000000000..2d4a19969f7--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Set letter spacing and word spacing to font dependent value and verify it works after font change.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.measure.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.measure.txtnew file mode 100644index 00000000000..c92e9b31c9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.measure.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing letter spacing with different length units\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.measure.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.measure.worker.txtnew file mode 100644index 00000000000..c92e9b31c9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.measure.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing letter spacing with different length units\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.direction.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.direction.txtnew file mode 100644index 00000000000..f61b331699a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.direction.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Measurement should follow text direction\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.direction.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.direction.worker.txtnew file mode 100644index 00000000000..f61b331699a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.direction.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Measurement should follow text direction\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.textAlign.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.textAlign.txtnew file mode 100644index 00000000000..cb69aa664ab--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.textAlign.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Measurement should be related to textAlignment\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.textAlign.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.textAlign.worker.txtnew file mode 100644index 00000000000..cb69aa664ab--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.textAlign.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Measurement should be related to textAlignment\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.nonfinite.spacing.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.nonfinite.spacing.txtnew file mode 100644index 00000000000..b09d2ace6a9--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.nonfinite.spacing.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing letter spacing and word spacing with nonfinite inputs\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.nonfinite.spacing.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.nonfinite.spacing.worker.txtnew file mode 100644index 00000000000..b09d2ace6a9--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.nonfinite.spacing.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing letter spacing and word spacing with nonfinite inputs\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.textRendering.settings.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.textRendering.settings.txtnew file mode 100644index 00000000000..c23368aaadf--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.textRendering.settings.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing basic functionalities of textRendering in Canvas\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.textRendering.settings.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.textRendering.settings.worker.txtnew file mode 100644index 00000000000..c23368aaadf--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.textRendering.settings.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing basic functionalities of textRendering in Canvas\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.txtnew file mode 100644index 00000000000..77cdc564e66--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Set word spacing and word spacing to font dependent value and verify it works after font change.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.worker.txtnew file mode 100644index 00000000000..77cdc564e66--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Set word spacing and word spacing to font dependent value and verify it works after font change.\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.measure.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.measure.txtnew file mode 100644index 00000000000..1881cb40989--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.measure.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing word spacing with different length units\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.measure.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.measure.worker.txtnew file mode 100644index 00000000000..1881cb40989--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.measure.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing word spacing with different length units\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.lang.default.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.lang.default.txtnew file mode 100644index 00000000000..6b2f0477a80--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.lang.default.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail OffscreenCanvas test: 2d.text.lang.default\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.lang.default.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.lang.default.worker.txtnew file mode 100644index 00000000000..cd924677233--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.lang.default.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail 2d\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.txtnew file mode 100644index 00000000000..614daaf21cb--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing actualBoundingBox\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.txtnew file mode 100644index 00000000000..a2c43291bd6--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing actualBoundingBox with leading/trailing whitespace\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.worker.txtnew file mode 100644index 00000000000..a2c43291bd6--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing actualBoundingBox with leading/trailing whitespace\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.worker.txt b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.worker.txtnew file mode 100644index 00000000000..614daaf21cb--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.worker.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Testing actualBoundingBox\ No newline at end of filediff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.copy.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.copy.htmlnew file mode 100644index 00000000000..7d911afe58e--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.copy.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.composite.uncovered.fill.copy</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.composite.uncovered.fill.copy</h1>+<p class="desc">fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.composite.uncovered.fill.copy.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'copy';+ ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';+ ctx.translate(0, 25);+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.copy.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.copy.pngnew file mode 100644index 00000000000..eeedd0ff058Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.copy.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-atop.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-atop.htmlnew file mode 100644index 00000000000..3c75938b44b--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-atop.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.composite.uncovered.fill.destination-atop</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.composite.uncovered.fill.destination-atop</h1>+<p class="desc">fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.composite.uncovered.fill.destination-atop.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-atop';+ ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';+ ctx.translate(0, 25);+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-atop.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-atop.pngnew file mode 100644index 00000000000..eeedd0ff058Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-atop.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-in.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-in.htmlnew file mode 100644index 00000000000..28043d94a29--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-in.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.composite.uncovered.fill.destination-in</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.composite.uncovered.fill.destination-in</h1>+<p class="desc">fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.composite.uncovered.fill.destination-in.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-in';+ ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';+ ctx.translate(0, 25);+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-in.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-in.pngnew file mode 100644index 00000000000..eeedd0ff058Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.destination-in.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-in.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-in.htmlnew file mode 100644index 00000000000..68a078c1b5f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-in.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.composite.uncovered.fill.source-in</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.composite.uncovered.fill.source-in</h1>+<p class="desc">fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.composite.uncovered.fill.source-in.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-in';+ ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';+ ctx.translate(0, 25);+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-in.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-in.pngnew file mode 100644index 00000000000..eeedd0ff058Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-in.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-out.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-out.htmlnew file mode 100644index 00000000000..6af19b3162f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-out.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.composite.uncovered.fill.source-out</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.composite.uncovered.fill.source-out</h1>+<p class="desc">fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.composite.uncovered.fill.source-out.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-out';+ ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';+ ctx.translate(0, 25);+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-out.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-out.pngnew file mode 100644index 00000000000..eeedd0ff058Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.fill.source-out.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.copy.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.copy.htmlnew file mode 100644index 00000000000..5443d522a88--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.copy.html@@ -0,0 +1,36 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.composite.uncovered.image.copy</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.composite.uncovered.image.copy</h1>+<p class="desc">drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.composite.uncovered.image.copy.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+promise_test(async t => {++ var canvas = document.getElementById('c');+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'copy';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 40, 40, 10, 10, 40, 50, 10, 10);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.copy.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.copy.pngnew file mode 100644index 00000000000..eeedd0ff058Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.copy.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-atop.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-atop.htmlnew file mode 100644index 00000000000..be34d3ca894--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-atop.html@@ -0,0 +1,36 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.composite.uncovered.image.destination-atop</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.composite.uncovered.image.destination-atop</h1>+<p class="desc">drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.composite.uncovered.image.destination-atop.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+promise_test(async t => {++ var canvas = document.getElementById('c');+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-atop';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 40, 40, 10, 10, 40, 50, 10, 10);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-atop.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-atop.pngnew file mode 100644index 00000000000..eeedd0ff058Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-atop.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-in.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-in.htmlnew file mode 100644index 00000000000..8eae63f202b--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-in.html@@ -0,0 +1,36 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.composite.uncovered.image.destination-in</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.composite.uncovered.image.destination-in</h1>+<p class="desc">drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.composite.uncovered.image.destination-in.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+promise_test(async t => {++ var canvas = document.getElementById('c');+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-in';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 40, 40, 10, 10, 40, 50, 10, 10);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-in.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-in.pngnew file mode 100644index 00000000000..eeedd0ff058Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.destination-in.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-in.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-in.htmlnew file mode 100644index 00000000000..2c4e8ca6662--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-in.html@@ -0,0 +1,36 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.composite.uncovered.image.source-in</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.composite.uncovered.image.source-in</h1>+<p class="desc">drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.composite.uncovered.image.source-in.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+promise_test(async t => {++ var canvas = document.getElementById('c');+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-in';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 40, 40, 10, 10, 40, 50, 10, 10);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-in.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-in.pngnew file mode 100644index 00000000000..eeedd0ff058Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-in.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-out.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-out.htmlnew file mode 100644index 00000000000..104612683bd--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-out.html@@ -0,0 +1,36 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.composite.uncovered.image.source-out</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.composite.uncovered.image.source-out</h1>+<p class="desc">drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.composite.uncovered.image.source-out.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+promise_test(async t => {++ var canvas = document.getElementById('c');+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-out';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 40, 40, 10, 10, 40, 50, 10, 10);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-out.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-out.pngnew file mode 100644index 00000000000..eeedd0ff058Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.image.source-out.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.copy.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.copy.htmlnew file mode 100644index 00000000000..a10f2dbb435--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.copy.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.composite.uncovered.pattern.copy</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.composite.uncovered.pattern.copy</h1>+<p class="desc">Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.composite.uncovered.pattern.copy.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+promise_test(async t => {++ var canvas = document.getElementById('c');+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'copy';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.fillStyle = ctx.createPattern(bitmap, 'no-repeat');+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.copy.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.copy.pngnew file mode 100644index 00000000000..eeedd0ff058Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.copy.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-atop.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-atop.htmlnew file mode 100644index 00000000000..293c68efed4--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-atop.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.composite.uncovered.pattern.destination-atop</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.composite.uncovered.pattern.destination-atop</h1>+<p class="desc">Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.composite.uncovered.pattern.destination-atop.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+promise_test(async t => {++ var canvas = document.getElementById('c');+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-atop';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.fillStyle = ctx.createPattern(bitmap, 'no-repeat');+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-atop.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-atop.pngnew file mode 100644index 00000000000..eeedd0ff058Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-atop.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-in.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-in.htmlnew file mode 100644index 00000000000..ebfd1da2804--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-in.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.composite.uncovered.pattern.destination-in</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.composite.uncovered.pattern.destination-in</h1>+<p class="desc">Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.composite.uncovered.pattern.destination-in.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+promise_test(async t => {++ var canvas = document.getElementById('c');+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-in';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.fillStyle = ctx.createPattern(bitmap, 'no-repeat');+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-in.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-in.pngnew file mode 100644index 00000000000..eeedd0ff058Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.destination-in.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-in.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-in.htmlnew file mode 100644index 00000000000..a9380346503--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-in.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.composite.uncovered.pattern.source-in</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.composite.uncovered.pattern.source-in</h1>+<p class="desc">Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.composite.uncovered.pattern.source-in.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+promise_test(async t => {++ var canvas = document.getElementById('c');+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-in';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.fillStyle = ctx.createPattern(bitmap, 'no-repeat');+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-in.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-in.pngnew file mode 100644index 00000000000..eeedd0ff058Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-in.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-out.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-out.htmlnew file mode 100644index 00000000000..dad1c119dc2--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-out.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.composite.uncovered.pattern.source-out</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.composite.uncovered.pattern.source-out</h1>+<p class="desc">Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.composite.uncovered.pattern.source-out.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+promise_test(async t => {++ var canvas = document.getElementById('c');+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-out';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.fillStyle = ctx.createPattern(bitmap, 'no-repeat');+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-out.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-out.pngnew file mode 100644index 00000000000..eeedd0ff058Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/compositing/2d.composite.uncovered.pattern.source-out.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.floatsource.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.floatsource.htmlnew file mode 100644index 00000000000..2150af80137--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.floatsource.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.drawImage.floatsource</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.drawImage.floatsource</h1>+<p class="desc"></p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+promise_test(async t => {++ var canvas = document.getElementById('c');+ var ctx = canvas.getContext('2d');++ const response = await fetch('../../../../images/green.png');+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 10.1, 10.1, 0.1, 0.1, 0, 0, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);++}, "");+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.incomplete.emptysrc.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.incomplete.emptysrc.htmlnew file mode 100644index 00000000000..c98832c2fcb--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.incomplete.emptysrc.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.drawImage.incomplete.emptysrc</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.drawImage.incomplete.emptysrc</h1>+<p class="desc"></p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);+ var img = document.getElementById('red.png');+ img.src = "";+ ctx.drawImage(img, 0, 0);+ _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);++});+</script>+<img src="../../../../images/red.png" id="red.png" class="resource">+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.incomplete.removedsrc.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.incomplete.removedsrc.htmlnew file mode 100644index 00000000000..0e29369cf13--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.incomplete.removedsrc.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.drawImage.incomplete.removedsrc</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.drawImage.incomplete.removedsrc</h1>+<p class="desc"></p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);+ var img = document.getElementById('red.png');+ img.removeAttribute('src');+ ctx.drawImage(img, 0, 0);+ _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);++});+</script>+<img src="../../../../images/red.png" id="red.png" class="resource">+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.htmlnew file mode 100644index 00000000000..e1fcafdd5e1--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.html@@ -0,0 +1,32 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.strokeRect.zero.2</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.strokeRect.zero.2</h1>+<p class="desc">strokeRect of 0x0 pixels draws nothing, including caps and joins</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/clear-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("strokeRect of 0x0 pixels draws nothing, including caps and joins");+_addTest(function(canvas, ctx) {++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 250;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';+ ctx.strokeRect(50, 25, 0, 0);+ _assertPixel(canvas, 50,25, 0,0,0,0);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.htmlnew file mode 100644index 00000000000..7a2e4ed797d--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.html@@ -0,0 +1,31 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.strokeRect.zero.4</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.strokeRect.zero.4</h1>+<p class="desc">strokeRect of Nx0 pixels draws a closed line with no caps</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/clear-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("strokeRect of Nx0 pixels draws a closed line with no caps");+_addTest(function(canvas, ctx) {++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 250;+ ctx.lineCap = 'round';+ ctx.strokeRect(100, 25, 100, 0);+ _assertPixel(canvas, 50,25, 0,0,0,0);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.htmlnew file mode 100644index 00000000000..8c6e080389d--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.html@@ -0,0 +1,31 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.strokeRect.zero.5</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.strokeRect.zero.5</h1>+<p class="desc">strokeRect of Nx0 pixels draws a closed line with joins</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("strokeRect of Nx0 pixels draws a closed line with joins");+_addTest(function(canvas, ctx) {++ ctx.strokeStyle = '#0f0';+ ctx.lineWidth = 250;+ ctx.lineJoin = 'round';+ ctx.strokeRect(100, 25, 100, 0);+ _assertPixel(canvas, 50,25, 0,255,0,255);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.htmlnew file mode 100644index 00000000000..5110d04b827--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.html@@ -0,0 +1,36 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.gradient.conic.positive.rotation</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.gradient.conic.positive.rotation</h1>+<p class="desc">Conic gradient with positive rotation</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("Conic gradient with positive rotation");+_addTest(function(canvas, ctx) {++ const g = ctx.createConicGradient(3*Math.PI/2, 50, 25);+ // It's red in the upper right region and green on the lower left region+ g.addColorStop(0, "#f00");+ g.addColorStop(0.25, "#0f0");+ g.addColorStop(0.50, "#0f0");+ g.addColorStop(0.75, "#f00");+ ctx.fillStyle = g;+ ctx.fillRect(0, 0, 100, 50);+ _assertPixelApprox(canvas, 25,15, 255,0,0,255, 3);+ _assertPixelApprox(canvas, 75,40, 0,255,0,255, 3);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.htmlnew file mode 100644index 00000000000..bd0a6e750f1--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.html@@ -0,0 +1,36 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.gradient.interpolate.zerosize.fill</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.gradient.interpolate.zerosize.fill</h1>+<p class="desc"></p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction)+ g.addColorStop(0, '#f00');+ g.addColorStop(1, '#f00');+ ctx.fillStyle = g;+ ctx.rect(0, 0, 100, 50);+ ctx.fill();+ _assertPixel(canvas, 40,20, 0,255,0,255);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.htmlnew file mode 100644index 00000000000..3c72d174f24--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.html@@ -0,0 +1,35 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.gradient.interpolate.zerosize.fillRect</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.gradient.interpolate.zerosize.fillRect</h1>+<p class="desc"></p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction)+ g.addColorStop(0, '#f00');+ g.addColorStop(1, '#f00');+ ctx.fillStyle = g;+ ctx.fillRect(0, 0, 100, 50);+ _assertPixel(canvas, 40,20, 0,255,0,255);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.htmlnew file mode 100644index 00000000000..c8a2181bc7e--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.html@@ -0,0 +1,44 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.gradient.interpolate.zerosize.stroke</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.gradient.interpolate.zerosize.stroke</h1>+<p class="desc"></p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction)+ g.addColorStop(0, '#f00');+ g.addColorStop(1, '#f00');+ ctx.strokeStyle = g;+ ctx.rect(20, 20, 60, 10);+ ctx.stroke();+ _assertPixel(canvas, 19,19, 0,255,0,255);+ _assertPixel(canvas, 20,19, 0,255,0,255);+ _assertPixel(canvas, 21,19, 0,255,0,255);+ _assertPixel(canvas, 19,20, 0,255,0,255);+ _assertPixel(canvas, 20,20, 0,255,0,255);+ _assertPixel(canvas, 21,20, 0,255,0,255);+ _assertPixel(canvas, 19,21, 0,255,0,255);+ _assertPixel(canvas, 20,21, 0,255,0,255);+ _assertPixel(canvas, 21,21, 0,255,0,255);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.htmlnew file mode 100644index 00000000000..9529068d999--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.html@@ -0,0 +1,43 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.gradient.interpolate.zerosize.strokeRect</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.gradient.interpolate.zerosize.strokeRect</h1>+<p class="desc"></p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction)+ g.addColorStop(0, '#f00');+ g.addColorStop(1, '#f00');+ ctx.strokeStyle = g;+ ctx.strokeRect(20, 20, 60, 10);+ _assertPixel(canvas, 19,19, 0,255,0,255);+ _assertPixel(canvas, 20,19, 0,255,0,255);+ _assertPixel(canvas, 21,19, 0,255,0,255);+ _assertPixel(canvas, 19,20, 0,255,0,255);+ _assertPixel(canvas, 20,20, 0,255,0,255);+ _assertPixel(canvas, 21,20, 0,255,0,255);+ _assertPixel(canvas, 19,21, 0,255,0,255);+ _assertPixel(canvas, 20,21, 0,255,0,255);+ _assertPixel(canvas, 21,21, 0,255,0,255);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.radial.equal.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.radial.equal.htmlnew file mode 100644index 00000000000..513fc1c4729--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.gradient.radial.equal.html@@ -0,0 +1,44 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.gradient.radial.equal</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.gradient.radial.equal</h1>+<p class="desc"></p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ var g = ctx.createRadialGradient(50, 25, 20, 50, 25, 20);+ g.addColorStop(0, '#f00');+ g.addColorStop(1, '#f00');+ ctx.fillStyle = g;+ ctx.fillRect(0, 0, 100, 50);++ _assertPixel(canvas, 1,1, 0,255,0,255);+ _assertPixel(canvas, 50,1, 0,255,0,255);+ _assertPixel(canvas, 98,1, 0,255,0,255);+ _assertPixel(canvas, 1,25, 0,255,0,255);+ _assertPixel(canvas, 50,25, 0,255,0,255);+ _assertPixelApprox(canvas, 98,25, 0,255,0,255, 1);+ _assertPixel(canvas, 1,48, 0,255,0,255);+ _assertPixelApprox(canvas, 50,48, 0,255,0,255, 1);+ _assertPixel(canvas, 98,48, 0,255,0,255);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.incomplete.emptysrc.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.incomplete.emptysrc.htmlnew file mode 100644index 00000000000..c855bea9b6f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.incomplete.emptysrc.html@@ -0,0 +1,30 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.pattern.image.incomplete.emptysrc</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.pattern.image.incomplete.emptysrc</h1>+<p class="desc"></p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("");+_addTest(function(canvas, ctx) {++ var img = document.getElementById('red.png');+ img.src = "";+ _assertSame(ctx.createPattern(img, 'repeat'), null, "ctx.createPattern(img, 'repeat')", "null");++});+</script>+<img src="../../../../images/red.png" id="red.png" class="resource">+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.incomplete.removedsrc.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.incomplete.removedsrc.htmlnew file mode 100644index 00000000000..a4647fe1dc8--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.incomplete.removedsrc.html@@ -0,0 +1,30 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.pattern.image.incomplete.removedsrc</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.pattern.image.incomplete.removedsrc</h1>+<p class="desc"></p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("");+_addTest(function(canvas, ctx) {++ var img = document.getElementById('red.png');+ img.removeAttribute('src');+ _assertSame(ctx.createPattern(img, 'repeat'), null, "ctx.createPattern(img, 'repeat')", "null");++});+</script>+<img src="../../../../images/red.png" id="red.png" class="resource">+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/manual/fill-and-stroke-styles/canvas_colorsandstyles_createlineargradient_001.htm b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/manual/fill-and-stroke-styles/canvas_colorsandstyles_createlineargradient_001.htmnew file mode 100644index 00000000000..c0196897ed9--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/manual/fill-and-stroke-styles/canvas_colorsandstyles_createlineargradient_001.htm@@ -0,0 +1,59 @@+<!doctype HTML>+<html>+ <head>+ <title>HTML5 Canvas Test: createlinearGradient() with two points same</title>+ <script src="../../../../../resources/testharness.js"></script>+ <script src="../../../../../resources/testharnessreport.js"></script>+ <link rel="author" title="Microsoft" href="http://www.microsoft.com" />+ <link rel="help" href="http://www.w3.org/TR/2dcontext/#dom-context-2d-createlineargradient" />+ <meta name="assert" content="If the two points in a linear gradient have identical x,y coordinates, the canvas must paint nothing." />+ <script type="text/javascript">+ async_test(function(t) {+ window.addEventListener("load", t.step_func_done(function runTest() {+ var canvas = document.getElementById("canvas1");+ var ctx = canvas.getContext("2d");+ var width = canvas.width;+ var height = canvas.height;++ // Start by drawing a left to right, green-to-blue linear gradient.+ var lingrad = ctx.createLinearGradient(0, 50, 100, 50);+ lingrad.addColorStop(0, "rgba(0, 255, 0, 1.0)");+ lingrad.addColorStop(1, "rgba(0, 0, 255, 1.0)");+ ctx.fillStyle = lingrad;+ ctx.fillRect(0, 0, 100, 50);++ // Get the current state of the canvas+ var initial = ctx.getImageData(0, 0, width, height);++ // Nothing must be drawn if the two points in the linear gradient are the same.+ lingrad = ctx.createLinearGradient(100, 100, 100, 100);+ lingrad.addColorStop(0, "rgba(255, 0, 0, 1.0)");+ lingrad.addColorStop(1, "rgba(255, 0, 0, 1.0)");+ ctx.fillStyle = lingrad;+ ctx.fillRect(0, 0, 300, 150);++ // Check that nothing is drawn.+ var after = ctx.getImageData(0, 0, width, height);++ // Asserts+ assert_equals(initial.width, after.width, "widths are equal");+ assert_equals(initial.height, after.height, "heights are equal");+ assert_array_equals(initial.data, after.data, "data are equal");++ for (var i = 0; i < after.data.length; i += 4) {+ var r = after.data[i];+ var g = after.data[i+1];+ var b = after.data[i+2];+ var a = after.data[i+3];+ assert_false(r == 0xFF && g == 0 && b == 0 && a == 0xFF, "no red");+ }+ }));+ }, "linear gradient from point to self draws nothing");+ </script>+ </head>+ <body>+ <p>Description: If the two points in a linear gradient have identical x,y coordinates, the canvas must paint nothing.</p>+ <p>Test passes if there is one left-to-right, green-to-blue linear gradient seen on the page and no red is seen on the page.</p>+ <canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas>+ </body>+</html>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.arc.twopie.5.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.arc.twopie.5.htmlnew file mode 100644index 00000000000..613b2ac9018--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.arc.twopie.5.html@@ -0,0 +1,35 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.path.arc.twopie.5</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.path.arc.twopie.5</h1>+<p class="desc">arc() draws correctly when start = 2 and end = start + 2pi+e and clockwise</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("arc() draws correctly when start = 2 and end = start + 2pi+e and clockwise");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#fff';+ ctx.fillRect(0, 0, 100, 50);+ ctx.fillStyle = '#000';+ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.arc(50, 25, 50, 2, 2 + 2*Math.PI, false);+ ctx.closePath();+ ctx.fill();+ _assertPixel(canvas, 95,25, 0,0,0,255);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.isPointInStroke.scaleddashes.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.isPointInStroke.scaleddashes.htmlnew file mode 100644index 00000000000..38322163fb1--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.isPointInStroke.scaleddashes.html@@ -0,0 +1,40 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.path.isPointInStroke.scaleddashes</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.path.isPointInStroke.scaleddashes</h1>+<p class="desc">isPointInStroke() should return correct results on dashed paths at high scale factors</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("isPointInStroke() should return correct results on dashed paths at high scale factors");+_addTest(function(canvas, ctx) {++ var scale = 20;+ ctx.setLineDash([10, 21.4159]); // dash from t=0 to t=10 along the circle+ ctx.scale(scale, scale);+ ctx.ellipse(6, 10, 5, 5, 0, 2*Math.PI, false);+ ctx.stroke();++ // hit-test the beginning of the dash (t=0)+ _assertSame(ctx.isPointInStroke(11*scale, 10*scale), true, "ctx.isPointInStroke(11*scale, 10*scale)", "true");+ // hit-test the middle of the dash (t=5)+ _assertSame(ctx.isPointInStroke(8.70*scale, 14.21*scale), true, "ctx.isPointInStroke(8.70*scale, 14.21*scale)", "true");+ // hit-test the end of the dash (t=9.8)+ _assertSame(ctx.isPointInStroke(4.10*scale, 14.63*scale), true, "ctx.isPointInStroke(4.10*scale, 14.63*scale)", "true");+ // hit-test past the end of the dash (t=10.2)+ _assertSame(ctx.isPointInStroke(3.74*scale, 14.46*scale), false, "ctx.isPointInStroke(3.74*scale, 14.46*scale)", "false");++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.roundrect.negative.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.roundrect.negative.htmlnew file mode 100644index 00000000000..7b0b4356f90--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.roundrect.negative.html@@ -0,0 +1,45 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.path.roundrect.negative</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.path.roundrect.negative</h1>+<p class="desc"></p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.beginPath();+ ctx.fillStyle = '#0f0';+ ctx.roundRect(0, 0, 50, 25, [10, 0, 0, 0]);+ ctx.roundRect(100, 0, -50, 25, [10, 0, 0, 0]);+ ctx.roundRect(0, 50, 50, -25, [10, 0, 0, 0]);+ ctx.roundRect(100, 50, -50, -25, [10, 0, 0, 0]);+ ctx.fill();+ // All rects drawn+ _assertPixel(canvas, 25,12, 0,255,0,255);+ _assertPixel(canvas, 75,12, 0,255,0,255);+ _assertPixel(canvas, 25,37, 0,255,0,255);+ _assertPixel(canvas, 75,37, 0,255,0,255);+ // Correct corners are rounded.+ _assertPixel(canvas, 1,1, 255,0,0,255);+ _assertPixel(canvas, 98,1, 255,0,0,255);+ _assertPixel(canvas, 1,48, 255,0,0,255);+ _assertPixel(canvas, 98,48, 255,0,0,255);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.arc.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.arc.htmlnew file mode 100644index 00000000000..24a59a3a833--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.arc.html@@ -0,0 +1,45 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.path.stroke.prune.arc</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.path.stroke.prune.arc</h1>+<p class="desc">Zero-length line segments from arcTo and arc are removed before stroking</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("Zero-length line segments from arcTo and arc are removed before stroking");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 100;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';++ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.arcTo(50, 25, 150, 25, 10);+ ctx.stroke();++ ctx.beginPath();+ ctx.moveTo(60, 25);+ ctx.arc(50, 25, 10, 0, 0, false);+ ctx.stroke();++ _assertPixel(canvas, 50,25, 0,255,0,255);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.closed.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.closed.htmlnew file mode 100644index 00000000000..19d00bc5336--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.closed.html@@ -0,0 +1,41 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.path.stroke.prune.closed</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.path.stroke.prune.closed</h1>+<p class="desc">Zero-length line segments from closed paths are removed before stroking</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("Zero-length line segments from closed paths are removed before stroking");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 100;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';++ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.lineTo(50, 25);+ ctx.closePath();+ ctx.stroke();++ _assertPixel(canvas, 50,25, 0,255,0,255);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.curve.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.curve.htmlnew file mode 100644index 00000000000..0f2fb1fd09f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.curve.html@@ -0,0 +1,45 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.path.stroke.prune.curve</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.path.stroke.prune.curve</h1>+<p class="desc">Zero-length line segments from quadraticCurveTo and bezierCurveTo are removed before stroking</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("Zero-length line segments from quadraticCurveTo and bezierCurveTo are removed before stroking");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 100;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';++ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.quadraticCurveTo(50, 25, 50, 25);+ ctx.stroke();++ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.bezierCurveTo(50, 25, 50, 25, 50, 25);+ ctx.stroke();++ _assertPixel(canvas, 50,25, 0,255,0,255);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.line.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.line.htmlnew file mode 100644index 00000000000..626eae8832c--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.line.html@@ -0,0 +1,40 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.path.stroke.prune.line</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.path.stroke.prune.line</h1>+<p class="desc">Zero-length line segments from lineTo are removed before stroking</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("Zero-length line segments from lineTo are removed before stroking");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 100;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';++ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.lineTo(50, 25);+ ctx.stroke();++ _assertPixel(canvas, 50,25, 0,255,0,255);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.rect.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.rect.htmlnew file mode 100644index 00000000000..fca50e4d645--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/path-objects/2d.path.stroke.prune.rect.html@@ -0,0 +1,41 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.path.stroke.prune.rect</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.path.stroke.prune.rect</h1>+<p class="desc">Zero-length line segments from rect and strokeRect are removed before stroking</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("Zero-length line segments from rect and strokeRect are removed before stroking");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 100;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';++ ctx.beginPath();+ ctx.rect(50, 25, 0, 0);+ ctx.stroke();++ ctx.strokeRect(50, 25, 0, 0);++ _assertPixel(canvas, 50,25, 0,255,0,255);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/pixel-manipulation/2d.imageData.put.clip.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/pixel-manipulation/2d.imageData.put.clip.htmlnew file mode 100644index 00000000000..162e32c2201--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/pixel-manipulation/2d.imageData.put.clip.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.imageData.put.clip</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.imageData.put.clip</h1>+<p class="desc">putImageData() is not affected by clipping regions</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("putImageData() is not affected by clipping regions");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50)+ var imgdata = ctx.getImageData(0, 0, 100, 50);+ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50)+ ctx.beginPath();+ ctx.rect(0, 0, 50, 50);+ ctx.clip();+ ctx.putImageData(imgdata, 0, 0);+ _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/reset/2d.reset.state.font_kerning.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/reset/2d.reset.state.font_kerning.htmlnew file mode 100644index 00000000000..84a61faf534--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/reset/2d.reset.state.font_kerning.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.reset.state.font_kerning</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.reset.state.font_kerning</h1>+<p class="desc">check that the state is reset</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("check that the state is reset");+_addTest(function(canvas, ctx) {++ const default_value = ctx.fontKerning;++ ctx.fontKerning = 'normal';+ _assert(ctx.fontKerning == 'normal', "ctx.fontKerning == 'normal'");++ ctx.reset();+ _assert(ctx.fontKerning == default_value, "ctx.fontKerning == default_value");++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/reset/2d.reset.state.font_variant_caps.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/reset/2d.reset.state.font_variant_caps.htmlnew file mode 100644index 00000000000..fb5a4e2c74e--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/reset/2d.reset.state.font_variant_caps.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.reset.state.font_variant_caps</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.reset.state.font_variant_caps</h1>+<p class="desc">check that the state is reset</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("check that the state is reset");+_addTest(function(canvas, ctx) {++ const default_value = ctx.fontVariantCaps;++ ctx.fontVariantCaps = 'unicase';+ _assert(ctx.fontVariantCaps == 'unicase', "ctx.fontVariantCaps == 'unicase'");++ ctx.reset();+ _assert(ctx.fontVariantCaps == default_value, "ctx.fontVariantCaps == default_value");++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/reset/2d.reset.state.text_rendering.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/reset/2d.reset.state.text_rendering.htmlnew file mode 100644index 00000000000..57b06faffc6--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/reset/2d.reset.state.text_rendering.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.reset.state.text_rendering</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.reset.state.text_rendering</h1>+<p class="desc">check that the state is reset</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("check that the state is reset");+_addTest(function(canvas, ctx) {++ const default_value = ctx.textRendering;++ ctx.textRendering = 'geometricPrecision';+ _assert(ctx.textRendering == 'geometricPrecision', "ctx.textRendering == 'geometricPrecision'");++ ctx.reset();+ _assert(ctx.textRendering == default_value, "ctx.textRendering == default_value");++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/reset/2d.reset.state.word_spacing.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/reset/2d.reset.state.word_spacing.htmlnew file mode 100644index 00000000000..7ce28a62332--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/reset/2d.reset.state.word_spacing.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.reset.state.word_spacing</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.reset.state.word_spacing</h1>+<p class="desc">check that the state is reset</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("check that the state is reset");+_addTest(function(canvas, ctx) {++ const default_value = ctx.wordSpacing;++ ctx.wordSpacing = '12px';+ _assert(ctx.wordSpacing == '12px', "ctx.wordSpacing == '12px'");++ ctx.reset();+ _assert(ctx.wordSpacing == default_value, "ctx.wordSpacing == default_value");++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.alpha.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.alpha.htmlnew file mode 100644index 00000000000..4907b17fd05--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.alpha.html@@ -0,0 +1,40 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.shadow.canvas.alpha</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.shadow.canvas.alpha</h1>+<p class="desc">Shadows are drawn correctly for partially-transparent canvases</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.shadow.canvas.alpha.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("Shadows are drawn correctly for partially-transparent canvases");+_addTest(function(canvas, ctx) {++ var canvas2 = document.createElement('canvas');+ canvas2.width = 100;+ canvas2.height = 50;+ var ctx2 = canvas2.getContext('2d');+ ctx2.fillStyle = 'rgba(255, 0, 0, 0.5)';+ ctx2.fillRect(0, 0, 100, 50);++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#00f';+ ctx.drawImage(canvas2, 0, -50);++ _assertPixelApprox(canvas, 50,25, 127,0,127,255, 2);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.alpha.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.alpha.pngnew file mode 100644index 00000000000..8764e89b371Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.alpha.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.basic.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.basic.htmlnew file mode 100644index 00000000000..8159d8746b8--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.basic.html@@ -0,0 +1,40 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.shadow.canvas.basic</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.shadow.canvas.basic</h1>+<p class="desc">Shadows are drawn for canvases</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("Shadows are drawn for canvases");+_addTest(function(canvas, ctx) {++ var canvas2 = document.createElement('canvas');+ canvas2.width = 100;+ canvas2.height = 50;+ var ctx2 = canvas2.getContext('2d');+ ctx2.fillStyle = '#f00';+ ctx2.fillRect(0, 0, 100, 50);++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowColor = '#0f0';+ ctx.shadowOffsetY = 50;+ ctx.drawImage(canvas2, 0, -50);++ _assertPixel(canvas, 50,25, 0,255,0,255);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.transparent.2.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.transparent.2.htmlnew file mode 100644index 00000000000..dee1d2c9794--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.canvas.transparent.2.html@@ -0,0 +1,46 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.shadow.canvas.transparent.2</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.shadow.canvas.transparent.2</h1>+<p class="desc">Shadows are not drawn for transparent parts of canvases</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("Shadows are not drawn for transparent parts of canvases");+_addTest(function(canvas, ctx) {++ var canvas2 = document.createElement('canvas');+ canvas2.width = 100;+ canvas2.height = 50;+ var ctx2 = canvas2.getContext('2d');+ ctx2.fillStyle = '#f00';+ ctx2.fillRect(0, 0, 50, 50);++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 50, 50);+ ctx.fillStyle = '#f00';+ ctx.fillRect(50, 0, 50, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#0f0';+ ctx.drawImage(canvas2, 50, -50);+ ctx.shadowColor = '#f00';+ ctx.drawImage(canvas2, -50, -50);++ _assertPixel(canvas, 25,25, 0,255,0,255);+ _assertPixel(canvas, 50,25, 0,255,0,255);+ _assertPixel(canvas, 75,25, 0,255,0,255);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.gradient.alpha.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.gradient.alpha.htmlnew file mode 100644index 00000000000..f1613afdf0c--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.gradient.alpha.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.shadow.gradient.alpha</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.shadow.gradient.alpha</h1>+<p class="desc">Shadows are drawn correctly for partially-transparent gradient fills</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.shadow.gradient.alpha.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("Shadows are drawn correctly for partially-transparent gradient fills");+_addTest(function(canvas, ctx) {++ var gradient = ctx.createLinearGradient(0, 0, 100, 0);+ gradient.addColorStop(0, 'rgba(255,0,0,0.5)');+ gradient.addColorStop(1, 'rgba(255,0,0,0.5)');+ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#00f';+ ctx.fillStyle = gradient;+ ctx.fillRect(0, -50, 100, 50);++ _assertPixelApprox(canvas, 50,25, 127,0,127,255, 2);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.gradient.alpha.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.gradient.alpha.pngnew file mode 100644index 00000000000..8764e89b371Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.gradient.alpha.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.alpha.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.alpha.htmlnew file mode 100644index 00000000000..7101c1ac8dc--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.alpha.html@@ -0,0 +1,35 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.shadow.image.alpha</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.shadow.image.alpha</h1>+<p class="desc">Shadows are drawn correctly for partially-transparent images</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.shadow.image.alpha.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("Shadows are drawn correctly for partially-transparent images");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#00f';+ var img = document.getElementById('transparent50.png');+ ctx.drawImage(img, 0, -50);++ _assertPixelApprox(canvas, 50,25, 127,0,127,255, 2);++});+</script>+<img src="../../../../images/transparent50.png" id="transparent50.png" class="resource">+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.alpha.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.alpha.pngnew file mode 100644index 00000000000..8764e89b371Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.alpha.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.basic.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.basic.htmlnew file mode 100644index 00000000000..2e23d9c539b--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.basic.html@@ -0,0 +1,35 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.shadow.image.basic</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.shadow.image.basic</h1>+<p class="desc">Shadows are drawn for images</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("Shadows are drawn for images");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowColor = '#0f0';+ ctx.shadowOffsetY = 50;+ var img = document.getElementById('red.png');+ ctx.drawImage(img, 0, -50);++ _assertPixel(canvas, 50,25, 0,255,0,255);++});+</script>+<img src="../../../../images/red.png" id="red.png" class="resource">+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.scale.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.scale.htmlnew file mode 100644index 00000000000..de4ce5c6993--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.scale.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.shadow.image.scale</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.shadow.image.scale</h1>+<p class="desc">Shadows are drawn correctly for scaled images</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("Shadows are drawn correctly for scaled images");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#0f0';+ var img = document.getElementById('redtransparent.png');+ ctx.drawImage(img, 0, 0, 100, 50, -10, -50, 240, 50);++ _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);++});+</script>+<img src="../../../../images/redtransparent.png" id="redtransparent.png" class="resource">+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.transparent.2.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.transparent.2.htmlnew file mode 100644index 00000000000..98f5c481117--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.image.transparent.2.html@@ -0,0 +1,41 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.shadow.image.transparent.2</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.shadow.image.transparent.2</h1>+<p class="desc">Shadows are not drawn for transparent parts of images</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("Shadows are not drawn for transparent parts of images");+_addTest(function(canvas, ctx) {++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 50, 50);+ ctx.fillStyle = '#f00';+ ctx.fillRect(50, 0, 50, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#0f0';+ var img = document.getElementById('redtransparent.png');+ ctx.drawImage(img, 50, -50);+ ctx.shadowColor = '#f00';+ ctx.drawImage(img, -50, -50);++ _assertPixel(canvas, 25,25, 0,255,0,255);+ _assertPixel(canvas, 50,25, 0,255,0,255);+ _assertPixel(canvas, 75,25, 0,255,0,255);++});+</script>+<img src="../../../../images/redtransparent.png" id="redtransparent.png" class="resource">+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.pattern.alpha.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.pattern.alpha.htmlnew file mode 100644index 00000000000..4a1d24b8df5--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.pattern.alpha.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.shadow.pattern.alpha</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.shadow.pattern.alpha</h1>+<p class="desc">Shadows are drawn correctly for partially-transparent fill patterns</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="2d.shadow.pattern.alpha.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("Shadows are drawn correctly for partially-transparent fill patterns");+_addTest(function(canvas, ctx) {++ var img = document.getElementById('transparent50.png');+ var pattern = ctx.createPattern(img, 'repeat');+ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#00f';+ ctx.fillStyle = pattern;+ ctx.fillRect(0, -50, 100, 50);++ _assertPixelApprox(canvas, 50,25, 127,0,127,255, 2);++});+</script>+<img src="../../../../images/transparent50.png" id="transparent50.png" class="resource">+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.pattern.alpha.png b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.pattern.alpha.pngnew file mode 100644index 00000000000..8764e89b371Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.pattern.alpha.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.pattern.transparent.1.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.pattern.transparent.1.htmlnew file mode 100644index 00000000000..0a2fd199798--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/shadows/2d.shadow.pattern.transparent.1.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.shadow.pattern.transparent.1</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.shadow.pattern.transparent.1</h1>+<p class="desc">Shadows are not drawn for transparent fill patterns</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+var t = async_test("Shadows are not drawn for transparent fill patterns");+_addTest(function(canvas, ctx) {++ var img = document.getElementById('transparent.png');+ var pattern = ctx.createPattern(img, 'repeat');+ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowColor = '#f00';+ ctx.shadowOffsetY = 50;+ ctx.fillStyle = pattern;+ ctx.fillRect(0, -50, 100, 50);++ _assertPixel(canvas, 50,25, 0,255,0,255);++});+</script>+<img src="../../../../images/transparent.png" id="transparent.png" class="resource">+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.draw.align.end.rtl.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.draw.align.end.rtl.htmlnew file mode 100644index 00000000000..8bf5c926277--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.draw.align.end.rtl.html@@ -0,0 +1,48 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.draw.align.end.rtl</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<style>+@font-face {+ font-family: CanvasTest;+ src: url("../../../../fonts/CanvasTest.ttf");+}+</style>+<body class="show_output">++<h1>2d.text.draw.align.end.rtl</h1>+<p class="desc">textAlign end with rtl is the left edge</p>+++<span style="font-family: CanvasTest; position: absolute; visibility: hidden">A</span>+<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"dir="rtl"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+promise_test(async t => {++ var canvas = document.getElementById('c');+ var ctx = canvas.getContext('2d');++ await document.fonts.ready;+ ctx.font = '50px CanvasTest';+ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.fillStyle = '#0f0';+ ctx.textAlign = 'end';+ ctx.fillText('DD', 0, 37.5);+ _assertPixelApprox(canvas, 5,5, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 95,5, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 5,45, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 95,45, 0,255,0,255, 2);++}, "textAlign end with rtl is the left edge");+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.draw.align.start.rtl.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.draw.align.start.rtl.htmlnew file mode 100644index 00000000000..463110dd602--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.draw.align.start.rtl.html@@ -0,0 +1,48 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.draw.align.start.rtl</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<style>+@font-face {+ font-family: CanvasTest;+ src: url("../../../../fonts/CanvasTest.ttf");+}+</style>+<body class="show_output">++<h1>2d.text.draw.align.start.rtl</h1>+<p class="desc">textAlign start with rtl is the right edge</p>+++<span style="font-family: CanvasTest; position: absolute; visibility: hidden">A</span>+<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"dir="rtl"><p class="fallback">FAIL (fallback content)</p></canvas>+<p class="output expectedtext">Expected output:<p><img src="../../../../images/green-100x50.png" class="output expected" id="expected" alt="">+<ul id="d"></ul>+<script>+promise_test(async t => {++ var canvas = document.getElementById('c');+ var ctx = canvas.getContext('2d');++ await document.fonts.ready;+ ctx.font = '50px CanvasTest';+ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.fillStyle = '#0f0';+ ctx.textAlign = 'start';+ ctx.fillText('DD', 100, 37.5);+ _assertPixelApprox(canvas, 5,5, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 95,5, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 5,45, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 95,45, 0,255,0,255, 2);++}, "textAlign start with rtl is the right edge");+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.absolute.spacing.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.absolute.spacing.htmlnew file mode 100644index 00000000000..17f7b0fba73--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.absolute.spacing.html@@ -0,0 +1,46 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.drawing.style.absolute.spacing</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.text.drawing.style.absolute.spacing</h1>+<p class="desc">Testing letter spacing and word spacing with absolute length</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("Testing letter spacing and word spacing with absolute length");+_addTest(function(canvas, ctx) {++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");++ ctx.letterSpacing = '3px';+ _assertSame(ctx.letterSpacing, '3px', "ctx.letterSpacing", "'3px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");++ ctx.wordSpacing = '5px';+ _assertSame(ctx.letterSpacing, '3px', "ctx.letterSpacing", "'3px'");+ _assertSame(ctx.wordSpacing, '5px', "ctx.wordSpacing", "'5px'");++ ctx.letterSpacing = '-1px';+ ctx.wordSpacing = '-1px';+ _assertSame(ctx.letterSpacing, '-1px', "ctx.letterSpacing", "'-1px'");+ _assertSame(ctx.wordSpacing, '-1px', "ctx.wordSpacing", "'-1px'");++ ctx.letterSpacing = '1PX';+ ctx.wordSpacing = '10PX';+ _assertSame(ctx.letterSpacing, '1px', "ctx.letterSpacing", "'1px'");+ _assertSame(ctx.wordSpacing, '10px', "ctx.wordSpacing", "'10px'");++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.font-relative.spacing.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.font-relative.spacing.htmlnew file mode 100644index 00000000000..a0c33b8db7b--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.font-relative.spacing.html@@ -0,0 +1,38 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.drawing.style.font-relative.spacing</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.text.drawing.style.font-relative.spacing</h1>+<p class="desc">Testing letter spacing and word spacing with font-relative length</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("Testing letter spacing and word spacing with font-relative length");+_addTest(function(canvas, ctx) {++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");++ ctx.letterSpacing = '1EX';+ ctx.wordSpacing = '1EM';+ _assertSame(ctx.letterSpacing, '1ex', "ctx.letterSpacing", "'1ex'");+ _assertSame(ctx.wordSpacing, '1em', "ctx.wordSpacing", "'1em'");++ ctx.letterSpacing = '1ch';+ ctx.wordSpacing = '1ic';+ _assertSame(ctx.letterSpacing, '1ch', "ctx.letterSpacing", "'1ch'");+ _assertSame(ctx.wordSpacing, '1ic', "ctx.wordSpacing", "'1ic'");++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontKerning.with.uppercase.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontKerning.with.uppercase.htmlnew file mode 100644index 00000000000..d969bef1a01--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontKerning.with.uppercase.html@@ -0,0 +1,58 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.drawing.style.fontKerning.with.uppercase</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.text.drawing.style.fontKerning.with.uppercase</h1>+<p class="desc">Testing basic functionalities of fontKerning for canvas</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("Testing basic functionalities of fontKerning for canvas");+_addTest(function(canvas, ctx) {++ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "Normal";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "normal";+ _assertSame(ctx.fontKerning, "normal", "ctx.fontKerning", "\"normal\"");+ ctx.fontKerning = "Auto";+ _assertSame(ctx.fontKerning, "normal", "ctx.fontKerning", "\"normal\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "noRmal";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "NoRMal";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "NORMAL";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");++ ctx.fontKerning = "None";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "none";+ _assertSame(ctx.fontKerning, "none", "ctx.fontKerning", "\"none\"");+ ctx.fontKerning = "Auto";+ _assertSame(ctx.fontKerning, "none", "ctx.fontKerning", "\"none\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "nOne";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "nonE";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "NONE";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontStretch.settings.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontStretch.settings.htmlnew file mode 100644index 00000000000..8eb5dc6d3a1--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontStretch.settings.html@@ -0,0 +1,82 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.drawing.style.fontStretch.settings</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.text.drawing.style.fontStretch.settings</h1>+<p class="desc">Testing value setting of fontStretch in Canvas</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("Testing value setting of fontStretch in Canvas");+_addTest(function(canvas, ctx) {++ // Setting fontStretch with lower cases+ ctx.fontStretch = "ultra-condensed";+ _assertSame(ctx.fontStretch, "ultra-condensed", "ctx.fontStretch", "\"ultra-condensed\"");++ ctx.fontStretch = "extra-condensed";+ _assertSame(ctx.fontStretch, "extra-condensed", "ctx.fontStretch", "\"extra-condensed\"");++ ctx.fontStretch = "condensed";+ _assertSame(ctx.fontStretch, "condensed", "ctx.fontStretch", "\"condensed\"");++ ctx.fontStretch = "semi-condensed";+ _assertSame(ctx.fontStretch, "semi-condensed", "ctx.fontStretch", "\"semi-condensed\"");++ ctx.fontStretch = "normal";+ _assertSame(ctx.fontStretch, "normal", "ctx.fontStretch", "\"normal\"");++ ctx.fontStretch = "semi-expanded";+ _assertSame(ctx.fontStretch, "semi-expanded", "ctx.fontStretch", "\"semi-expanded\"");++ ctx.fontStretch = "expanded";+ _assertSame(ctx.fontStretch, "expanded", "ctx.fontStretch", "\"expanded\"");++ ctx.fontStretch = "extra-expanded";+ _assertSame(ctx.fontStretch, "extra-expanded", "ctx.fontStretch", "\"extra-expanded\"");++ ctx.fontStretch = "ultra-expanded";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ // Setting fontStretch with lower cases and upper cases word,+ // these values should be ignored.+ ctx.fontStretch = "ulTra-condensed";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "Extra-condensed";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "cOndensed";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "Semi-Condensed";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "normaL";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "semi-Expanded";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "Expanded";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "eXtra-expanded";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "abcd";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontVariant.settings.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontVariant.settings.htmlnew file mode 100644index 00000000000..a44b079e3c8--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.fontVariant.settings.html@@ -0,0 +1,79 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.drawing.style.fontVariant.settings</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.text.drawing.style.fontVariant.settings</h1>+<p class="desc">Testing basic functionalities of fontVariant for canvas</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("Testing basic functionalities of fontVariant for canvas");+_addTest(function(canvas, ctx) {++ // Setting fontVariantCaps with lower cases+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "normal";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "small-caps";+ _assertSame(ctx.fontVariantCaps, "small-caps", "ctx.fontVariantCaps", "\"small-caps\"");++ ctx.fontVariantCaps = "all-small-caps";+ _assertSame(ctx.fontVariantCaps, "all-small-caps", "ctx.fontVariantCaps", "\"all-small-caps\"");++ ctx.fontVariantCaps = "petite-caps";+ _assertSame(ctx.fontVariantCaps, "petite-caps", "ctx.fontVariantCaps", "\"petite-caps\"");++ ctx.fontVariantCaps = "all-petite-caps";+ _assertSame(ctx.fontVariantCaps, "all-petite-caps", "ctx.fontVariantCaps", "\"all-petite-caps\"");++ ctx.fontVariantCaps = "unicase";+ _assertSame(ctx.fontVariantCaps, "unicase", "ctx.fontVariantCaps", "\"unicase\"");++ ctx.fontVariantCaps = "titling-caps";+ _assertSame(ctx.fontVariantCaps, "titling-caps", "ctx.fontVariantCaps", "\"titling-caps\"");++ // Setting fontVariantCaps with mixed-case values is not valid+ ctx.fontVariantCaps = "nORmal";+ _assertSame(ctx.fontVariantCaps, "titling-caps", "ctx.fontVariantCaps", "\"titling-caps\"");++ ctx.fontVariantCaps = "normal";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "smaLL-caps";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "all-small-CAPS";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "pEtitE-caps";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "All-Petite-Caps";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "uNIcase";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "titling-CAPS";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ // Setting fontVariantCaps with non-existing font variant.+ ctx.fontVariantCaps = "titling-caps";+ ctx.fontVariantCaps = "abcd";+ _assertSame(ctx.fontVariantCaps, "titling-caps", "ctx.fontVariantCaps", "\"titling-caps\"");++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.invalid.spacing.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.invalid.spacing.htmlnew file mode 100644index 00000000000..be320a397e5--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.invalid.spacing.html@@ -0,0 +1,43 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.drawing.style.invalid.spacing</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.text.drawing.style.invalid.spacing</h1>+<p class="desc">Testing letter spacing and word spacing with invalid units</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("Testing letter spacing and word spacing with invalid units");+_addTest(function(canvas, ctx) {++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");++ function test_word_spacing(value) {+ ctx.wordSpacing = value;+ ctx.letterSpacing = value;+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ }+ test_word_spacing('0s');+ test_word_spacing('1min');+ test_word_spacing('1deg');+ test_word_spacing('1pp');+ test_word_spacing('initial');+ test_word_spacing('inherit');+ test_word_spacing('normal');+ test_word_spacing('none');++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.letterSpacing.change.font.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.letterSpacing.change.font.htmlnew file mode 100644index 00000000000..6573ff42417--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.letterSpacing.change.font.html@@ -0,0 +1,46 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.drawing.style.letterSpacing.change.font</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.text.drawing.style.letterSpacing.change.font</h1>+<p class="desc">Set letter spacing and word spacing to font dependent value and verify it works after font change.</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("Set letter spacing and word spacing to font dependent value and verify it works after font change.");+_addTest(function(canvas, ctx) {++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ // Get the width for 'Hello World' at default size, 10px.+ var width_normal = ctx.measureText('Hello World').width;++ ctx.letterSpacing = '1em';+ _assertSame(ctx.letterSpacing, '1em', "ctx.letterSpacing", "'1em'");+ // 1em = 10px. Add 10px after each letter in "Hello World",+ // makes it 110px longer.+ var width_with_spacing = ctx.measureText('Hello World').width;+ assert_approx_equals(width_with_spacing, width_normal + 110, 0.1, "letter-spacing error");++ // Changing font to 20px. Without resetting the spacing, 1em letterSpacing+ // is now 20px, so it's suppose to be 220px longer without any letterSpacing set.+ ctx.font = '20px serif';+ width_with_spacing = ctx.measureText('Hello World').width;+ // Now calculate the reference spacing for "Hello World" with no spacing.+ ctx.letterSpacing = '0em';+ width_normal = ctx.measureText('Hello World').width;+ assert_approx_equals(width_with_spacing, width_normal + 220, 0.1, "letter-spacing error after font change");++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.letterSpacing.measure.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.letterSpacing.measure.htmlnew file mode 100644index 00000000000..f918e4b2464--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.letterSpacing.measure.html@@ -0,0 +1,55 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.drawing.style.letterSpacing.measure</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.text.drawing.style.letterSpacing.measure</h1>+<p class="desc">Testing letter spacing with different length units</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("Testing letter spacing with different length units");+_addTest(function(canvas, ctx) {++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ var width_normal = ctx.measureText('Hello World').width;++ function test_letter_spacing(value, difference_spacing, epsilon) {+ ctx.letterSpacing = value;+ _assertSame(ctx.letterSpacing, value, "ctx.letterSpacing", "value");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ width_with_letter_spacing = ctx.measureText('Hello World').width;+ assert_approx_equals(width_with_letter_spacing, width_normal + difference_spacing, epsilon, "letter spacing doesn't work.");+ }++ // The first value is the letter Spacing to be set, the second value the+ // change in length of string 'Hello World', note that there are 11 letters+ // in 'hello world', so the length difference is always letterSpacing * 11.+ // and the third value is the acceptable differencee for the length change,+ // note that unit such as 1cm/1mm doesn't map to an exact pixel value.+ test_cases = [['3px', 33, 0.1],+ ['5px', 55, 0.1],+ ['-2px', -22, 0.1],+ ['1em', 110, 0.1],+ ['-0.1em', -11, 0.1],+ ['1in', 1056, 0.1],+ ['-0.1cm', -41.65, 0.2],+ ['-0.6mm', -24.95, 0.2]]++ for (const test_case of test_cases) {+ test_letter_spacing(test_case[0], test_case[1], test_case[2]);+ }++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.measure.direction.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.measure.direction.htmlnew file mode 100644index 00000000000..0b65f52a089--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.measure.direction.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.drawing.style.measure.direction</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.text.drawing.style.measure.direction</h1>+<p class="desc">Measurement should follow text direction</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("Measurement should follow text direction");+_addTest(function(canvas, ctx) {++ ctx.direction = "ltr";+ metrics = ctx.measureText('hello');+ _assert(metrics.actualBoundingBoxLeft < metrics.actualBoundingBoxRight, "metrics.actualBoundingBoxLeft < metrics.actualBoundingBoxRight");++ ctx.direction = "rtl";+ metrics = ctx.measureText('hello');+ _assert(metrics.actualBoundingBoxLeft > metrics.actualBoundingBoxRight, "metrics.actualBoundingBoxLeft > metrics.actualBoundingBoxRight");++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.measure.textAlign.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.measure.textAlign.htmlnew file mode 100644index 00000000000..26f50ebd86b--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.measure.textAlign.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.drawing.style.measure.textAlign</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.text.drawing.style.measure.textAlign</h1>+<p class="desc">Measurement should be related to textAlignment</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("Measurement should be related to textAlignment");+_addTest(function(canvas, ctx) {++ ctx.textAlign = "right";+ metrics = ctx.measureText('hello');+ _assert(metrics.actualBoundingBoxLeft > metrics.actualBoundingBoxRight, "metrics.actualBoundingBoxLeft > metrics.actualBoundingBoxRight");++ ctx.textAlign = "left"+ metrics = ctx.measureText('hello');+ _assert(metrics.actualBoundingBoxLeft < metrics.actualBoundingBoxRight, "metrics.actualBoundingBoxLeft < metrics.actualBoundingBoxRight");++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.nonfinite.spacing.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.nonfinite.spacing.htmlnew file mode 100644index 00000000000..200d3d8411c--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.nonfinite.spacing.html@@ -0,0 +1,38 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.drawing.style.nonfinite.spacing</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.text.drawing.style.nonfinite.spacing</h1>+<p class="desc">Testing letter spacing and word spacing with nonfinite inputs</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("Testing letter spacing and word spacing with nonfinite inputs");+_addTest(function(canvas, ctx) {++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");++ function test_word_spacing(value) {+ ctx.wordSpacing = value;+ ctx.letterSpacing = value;+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ }+ test_word_spacing(NaN);+ test_word_spacing(Infinity);+ test_word_spacing(-Infinity);++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.textRendering.settings.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.textRendering.settings.htmlnew file mode 100644index 00000000000..609fe333919--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.textRendering.settings.html@@ -0,0 +1,81 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.drawing.style.textRendering.settings</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.text.drawing.style.textRendering.settings</h1>+<p class="desc">Testing basic functionalities of textRendering in Canvas</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("Testing basic functionalities of textRendering in Canvas");+_addTest(function(canvas, ctx) {++ // Setting textRendering with correct case.+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "optimizeSpeed";+ _assertSame(ctx.textRendering, "optimizeSpeed", "ctx.textRendering", "\"optimizeSpeed\"");++ ctx.textRendering = "optimizeLegibility";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "geometricPrecision";+ _assertSame(ctx.textRendering, "geometricPrecision", "ctx.textRendering", "\"geometricPrecision\"");++ ctx.textRendering = "auto";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ // Setting textRendering with incorrect case is ignored.+ ctx.textRendering = "OPtimizeSpeed";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "OPtimizELEgibility";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "GeometricPrecision";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "optimizespeed";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "optimizelegibility";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "geometricprecision";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "optimizeLegibility";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "AUTO";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "Auto";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ // Setting textRendering with non-existing font variant.+ ctx.textRendering = "abcd";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "normal";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "auto";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.wordSpacing.change.font.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.wordSpacing.change.font.htmlnew file mode 100644index 00000000000..d530bb5f461--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.wordSpacing.change.font.html@@ -0,0 +1,46 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.drawing.style.wordSpacing.change.font</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.text.drawing.style.wordSpacing.change.font</h1>+<p class="desc">Set word spacing and word spacing to font dependent value and verify it works after font change.</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("Set word spacing and word spacing to font dependent value and verify it works after font change.");+_addTest(function(canvas, ctx) {++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ // Get the width for 'Hello World, again' at default size, 10px.+ var width_normal = ctx.measureText('Hello World, again').width;++ ctx.wordSpacing = '1em';+ _assertSame(ctx.wordSpacing, '1em', "ctx.wordSpacing", "'1em'");+ // 1em = 10px. Add 10px after each word in "Hello World, again",+ // makes it 20px longer.+ var width_with_spacing = ctx.measureText('Hello World, again').width;+ _assertSame(width_with_spacing, width_normal + 20, "width_with_spacing", "width_normal + 20");++ // Changing font to 20px. Without resetting the spacing, 1em wordSpacing+ // is now 20px, so it's suppose to be 40px longer without any wordSpacing set.+ ctx.font = '20px serif';+ width_with_spacing = ctx.measureText('Hello World, again').width;+ // Now calculate the reference spacing for "Hello World, again" with no spacing.+ ctx.wordSpacing = '0em';+ width_normal = ctx.measureText('Hello World, again').width;+ _assertSame(width_with_spacing, width_normal + 40, "width_with_spacing", "width_normal + 40");++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.wordSpacing.measure.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.wordSpacing.measure.htmlnew file mode 100644index 00000000000..6e9189a1536--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.drawing.style.wordSpacing.measure.html@@ -0,0 +1,55 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.drawing.style.wordSpacing.measure</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.text.drawing.style.wordSpacing.measure</h1>+<p class="desc">Testing word spacing with different length units</p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("Testing word spacing with different length units");+_addTest(function(canvas, ctx) {++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ var width_normal = ctx.measureText('Hello World, again').width;++ function test_word_spacing(value, difference_spacing, epsilon) {+ ctx.wordSpacing = value;+ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, value, "ctx.wordSpacing", "value");+ width_with_word_spacing = ctx.measureText('Hello World, again').width;+ assert_approx_equals(width_with_word_spacing, width_normal + difference_spacing, epsilon, "word spacing doesn't work.");+ }++ // The first value is the word Spacing to be set, the second value the+ // change in length of string 'Hello World', note that there are 2 words+ // in 'Hello World, again', so the length difference is always wordSpacing * 2.+ // and the third value is the acceptable differencee for the length change,+ // note that unit such as 1cm/1mm doesn't map to an exact pixel value.+ test_cases = [['3px', 6, 0.1],+ ['5px', 10, 0.1],+ ['-2px', -4, 0.1],+ ['1em', 20, 0.1],+ ['-0.5em', -10, 0.1],+ ['1in', 192, 0.1],+ ['-0.1cm', -7.57, 0.2],+ ['-0.6mm', -4.54, 0.2]]++ for (const test_case of test_cases) {+ test_word_spacing(test_case[0], test_case[1], test_case[2]);+ }++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.lang.default.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.lang.default.htmlnew file mode 100644index 00000000000..87ef9257f50--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.lang.default.html@@ -0,0 +1,27 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.lang.default</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<body class="show_output">++<h1>2d.text.lang.default</h1>+<p class="desc"></p>+++<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+var t = async_test("");+_addTest(function(canvas, ctx) {++ _assertSame(ctx.lang, 'inherit', "ctx.lang", "'inherit'");++});+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.measure.actualBoundingBox.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.measure.actualBoundingBox.htmlnew file mode 100644index 00000000000..bf11efe1cad--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.measure.actualBoundingBox.html@@ -0,0 +1,62 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.measure.actualBoundingBox</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<style>+@font-face {+ font-family: CanvasTest;+ src: url("../../../../fonts/CanvasTest.ttf");+}+</style>+<body class="show_output">++<h1>2d.text.measure.actualBoundingBox</h1>+<p class="desc">Testing actualBoundingBox</p>+++<span style="font-family: CanvasTest; position: absolute; visibility: hidden">A</span>+<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+promise_test(async t => {++ var canvas = document.getElementById('c');+ var ctx = canvas.getContext('2d');++ await document.fonts.ready;+ ctx.font = '50px CanvasTest';+ ctx.direction = 'ltr';+ ctx.align = 'left'+ ctx.baseline = 'alphabetic'+ // Different platforms may render text slightly different.+ // Values that are nominally expected to be zero might actually vary by a+ // pixel or so if the UA accounts for antialiasing at glyph edges, so we+ // allow a slight deviation.+ _assert(Math.abs(ctx.measureText('A').actualBoundingBoxLeft) <= 1, "Math.abs(ctx.measureText('A').actualBoundingBoxLeft) <= 1");+ _assert(ctx.measureText('A').actualBoundingBoxRight >= 50, "ctx.measureText('A').actualBoundingBoxRight >= 50");+ _assert(ctx.measureText('A').actualBoundingBoxAscent >= 35, "ctx.measureText('A').actualBoundingBoxAscent >= 35");+ _assert(Math.abs(ctx.measureText('A').actualBoundingBoxDescent) <= 1, "Math.abs(ctx.measureText('A').actualBoundingBoxDescent) <= 1");++ _assert(ctx.measureText('D').actualBoundingBoxLeft >= 48, "ctx.measureText('D').actualBoundingBoxLeft >= 48");+ _assert(ctx.measureText('D').actualBoundingBoxLeft <= 52, "ctx.measureText('D').actualBoundingBoxLeft <= 52");+ _assert(ctx.measureText('D').actualBoundingBoxRight >= 75, "ctx.measureText('D').actualBoundingBoxRight >= 75");+ _assert(ctx.measureText('D').actualBoundingBoxRight <= 80, "ctx.measureText('D').actualBoundingBoxRight <= 80");+ _assert(ctx.measureText('D').actualBoundingBoxAscent >= 35, "ctx.measureText('D').actualBoundingBoxAscent >= 35");+ _assert(ctx.measureText('D').actualBoundingBoxAscent <= 40, "ctx.measureText('D').actualBoundingBoxAscent <= 40");+ _assert(ctx.measureText('D').actualBoundingBoxDescent >= 12, "ctx.measureText('D').actualBoundingBoxDescent >= 12");+ _assert(ctx.measureText('D').actualBoundingBoxDescent <= 15, "ctx.measureText('D').actualBoundingBoxDescent <= 15");++ _assert(Math.abs(ctx.measureText('ABCD').actualBoundingBoxLeft) <= 1, "Math.abs(ctx.measureText('ABCD').actualBoundingBoxLeft) <= 1");+ _assert(ctx.measureText('ABCD').actualBoundingBoxRight >= 200, "ctx.measureText('ABCD').actualBoundingBoxRight >= 200");+ _assert(ctx.measureText('ABCD').actualBoundingBoxAscent >= 85, "ctx.measureText('ABCD').actualBoundingBoxAscent >= 85");+ _assert(ctx.measureText('ABCD').actualBoundingBoxDescent >= 37, "ctx.measureText('ABCD').actualBoundingBoxDescent >= 37");++}, "Testing actualBoundingBox");+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.measure.actualBoundingBox.whitespace.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.measure.actualBoundingBox.whitespace.htmlnew file mode 100644index 00000000000..7ffe4599bad--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/element/text/2d.text.measure.actualBoundingBox.whitespace.html@@ -0,0 +1,54 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>Canvas test: 2d.text.measure.actualBoundingBox.whitespace</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>+<link rel="stylesheet" href="../../../../html/canvas/resources/canvas-tests.css">+<style>+@font-face {+ font-family: CanvasTest;+ src: url("../../../../fonts/CanvasTest.ttf");+}+</style>+<body class="show_output">++<h1>2d.text.measure.actualBoundingBox.whitespace</h1>+<p class="desc">Testing actualBoundingBox with leading/trailing whitespace</p>+++<span style="font-family: CanvasTest; position: absolute; visibility: hidden">A</span>+<p class="output">Actual output:</p>+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>++<ul id="d"></ul>+<script>+promise_test(async t => {++ var canvas = document.getElementById('c');+ var ctx = canvas.getContext('2d');++ await document.fonts.ready;+ ctx.font = '50px CanvasTest';+ ctx.direction = 'ltr';+ ctx.align = 'left'+ ctx.baseline = 'alphabetic'+ // Different platforms may render text slightly different.+ // Values that are nominally expected to be zero might actually vary by a+ // pixel or so if the UA accounts for antialiasing at glyph edges, so we+ // allow a slight deviation.+ var whitespaces = [0x9, 0xa, 0xc, 0xd, 0x20, 0x3000];+ for (var codepoint of whitespaces) {+ let whitespace = String.fromCharCode(codepoint);++ _assert(Math.abs(ctx.measureText('A' + whitespace).actualBoundingBoxLeft) <= 1, "Math.abs(ctx.measureText('A' + whitespace).actualBoundingBoxLeft) <= 1");+ _assert(ctx.measureText('A' + whitespace).actualBoundingBoxRight >= 50, "ctx.measureText('A' + whitespace).actualBoundingBoxRight >= 50");++ _assert(Math.abs(ctx.measureText(whitespace + 'A').actualBoundingBoxLeft) >= 49, "Math.abs(ctx.measureText(whitespace + 'A').actualBoundingBoxLeft) >= 49");+ _assert(ctx.measureText(whitespace + 'A').actualBoundingBoxRight <= 101, "ctx.measureText(whitespace + 'A').actualBoundingBoxRight <= 101");+ }++}, "Testing actualBoundingBox with leading/trailing whitespace");+</script>+diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.htmlnew file mode 100644index 00000000000..222751396c5--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.html@@ -0,0 +1,34 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.composite.uncovered.fill.copy</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.composite.uncovered.fill.copy</h1>+<p class="desc">fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<script>+var t = async_test("fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'copy';+ ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';+ ctx.translate(0, 25);+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.worker.htmlnew file mode 100644index 00000000000..efa9a03c2ce--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.worker.jsnew file mode 100644index 00000000000..50f3ed0f222--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.copy.worker.js@@ -0,0 +1,28 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.composite.uncovered.fill.copy+// Description:fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'copy';+ ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';+ ctx.translate(0, 25);+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-atop.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-atop.htmlnew file mode 100644index 00000000000..6139ccb48a9--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-atop.html@@ -0,0 +1,34 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.composite.uncovered.fill.destination-atop</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.composite.uncovered.fill.destination-atop</h1>+<p class="desc">fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<script>+var t = async_test("fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-atop';+ ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';+ ctx.translate(0, 25);+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-atop.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-atop.worker.htmlnew file mode 100644index 00000000000..9a8dcaad978--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-atop.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-atop.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-atop.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-atop.worker.jsnew file mode 100644index 00000000000..9a84b0894a7--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-atop.worker.js@@ -0,0 +1,28 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.composite.uncovered.fill.destination-atop+// Description:fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-atop';+ ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';+ ctx.translate(0, 25);+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-in.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-in.htmlnew file mode 100644index 00000000000..4576cab4ecd--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-in.html@@ -0,0 +1,35 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.composite.uncovered.fill.destination-in</title>+<meta name="timeout" content="long">+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.composite.uncovered.fill.destination-in</h1>+<p class="desc">fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<script>+var t = async_test("fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-in';+ ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';+ ctx.translate(0, 25);+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-in.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-in.worker.htmlnew file mode 100644index 00000000000..e42e87c4ada--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-in.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>+<meta name="timeout" content="long">+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-in.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-in.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-in.worker.jsnew file mode 100644index 00000000000..aa24ba97a60--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.destination-in.worker.js@@ -0,0 +1,29 @@+// META: timeout=long+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.composite.uncovered.fill.destination-in+// Description:fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-in';+ ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';+ ctx.translate(0, 25);+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-in.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-in.htmlnew file mode 100644index 00000000000..02d69dd4359--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-in.html@@ -0,0 +1,34 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.composite.uncovered.fill.source-in</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.composite.uncovered.fill.source-in</h1>+<p class="desc">fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<script>+var t = async_test("fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-in';+ ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';+ ctx.translate(0, 25);+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-in.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-in.worker.htmlnew file mode 100644index 00000000000..d63d46bed57--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-in.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-in.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-in.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-in.worker.jsnew file mode 100644index 00000000000..33e326d1f47--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-in.worker.js@@ -0,0 +1,28 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.composite.uncovered.fill.source-in+// Description:fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-in';+ ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';+ ctx.translate(0, 25);+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-out.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-out.htmlnew file mode 100644index 00000000000..682fde50590--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-out.html@@ -0,0 +1,34 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.composite.uncovered.fill.source-out</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.composite.uncovered.fill.source-out</h1>+<p class="desc">fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<script>+var t = async_test("fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-out';+ ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';+ ctx.translate(0, 25);+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-out.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-out.worker.htmlnew file mode 100644index 00000000000..434ab74bfd7--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-out.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-out.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-out.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-out.worker.jsnew file mode 100644index 00000000000..1d39b364b0e--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.fill.source-out.worker.js@@ -0,0 +1,28 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.composite.uncovered.fill.source-out+// Description:fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-out';+ ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';+ ctx.translate(0, 25);+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.htmlnew file mode 100644index 00000000000..09e57807953--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.html@@ -0,0 +1,29 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.composite.uncovered.image.copy</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.composite.uncovered.image.copy</h1>+<p class="desc">drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'copy';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 40, 40, 10, 10, 40, 50, 10, 10);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.worker.htmlnew file mode 100644index 00000000000..6531c2173ef--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.worker.jsnew file mode 100644index 00000000000..e93962ce6d6--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.copy.worker.js@@ -0,0 +1,22 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.composite.uncovered.image.copy+// Description:drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'copy';+ const response = await fetch('/images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 40, 40, 10, 10, 40, 50, 10, 10);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+}, "drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.htmlnew file mode 100644index 00000000000..778eee2d2de--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.html@@ -0,0 +1,29 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.composite.uncovered.image.destination-atop</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.composite.uncovered.image.destination-atop</h1>+<p class="desc">drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-atop';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 40, 40, 10, 10, 40, 50, 10, 10);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.worker.htmlnew file mode 100644index 00000000000..c409656ba8f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.worker.jsnew file mode 100644index 00000000000..3cea3620424--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-atop.worker.js@@ -0,0 +1,22 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.composite.uncovered.image.destination-atop+// Description:drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-atop';+ const response = await fetch('/images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 40, 40, 10, 10, 40, 50, 10, 10);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+}, "drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.htmlnew file mode 100644index 00000000000..f1108e4852a--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.html@@ -0,0 +1,29 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.composite.uncovered.image.destination-in</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.composite.uncovered.image.destination-in</h1>+<p class="desc">drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-in';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 40, 40, 10, 10, 40, 50, 10, 10);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.worker.htmlnew file mode 100644index 00000000000..0e3635a0aac--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.worker.jsnew file mode 100644index 00000000000..d96c112d646--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.destination-in.worker.js@@ -0,0 +1,22 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.composite.uncovered.image.destination-in+// Description:drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-in';+ const response = await fetch('/images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 40, 40, 10, 10, 40, 50, 10, 10);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+}, "drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.htmlnew file mode 100644index 00000000000..f4991997ced--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.html@@ -0,0 +1,29 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.composite.uncovered.image.source-in</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.composite.uncovered.image.source-in</h1>+<p class="desc">drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-in';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 40, 40, 10, 10, 40, 50, 10, 10);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.worker.htmlnew file mode 100644index 00000000000..b78fc903af9--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.worker.jsnew file mode 100644index 00000000000..5b6bad7d38c--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-in.worker.js@@ -0,0 +1,22 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.composite.uncovered.image.source-in+// Description:drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-in';+ const response = await fetch('/images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 40, 40, 10, 10, 40, 50, 10, 10);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+}, "drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.htmlnew file mode 100644index 00000000000..c35905c898b--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.html@@ -0,0 +1,29 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.composite.uncovered.image.source-out</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.composite.uncovered.image.source-out</h1>+<p class="desc">drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-out';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 40, 40, 10, 10, 40, 50, 10, 10);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.worker.htmlnew file mode 100644index 00000000000..6e70edcc06a--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.worker.jsnew file mode 100644index 00000000000..fa44cb7556d--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.image.source-out.worker.js@@ -0,0 +1,22 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.composite.uncovered.image.source-out+// Description:drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-out';+ const response = await fetch('/images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 40, 40, 10, 10, 40, 50, 10, 10);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+}, "drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.htmlnew file mode 100644index 00000000000..a4d27aacaf1--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.html@@ -0,0 +1,30 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.composite.uncovered.pattern.copy</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.composite.uncovered.pattern.copy</h1>+<p class="desc">Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'copy';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.fillStyle = ctx.createPattern(bitmap, 'no-repeat');+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.worker.htmlnew file mode 100644index 00000000000..7ca33cb1ba5--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.worker.jsnew file mode 100644index 00000000000..bd59189e6d3--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.copy.worker.js@@ -0,0 +1,23 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.composite.uncovered.pattern.copy+// Description:Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'copy';+ const response = await fetch('/images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.fillStyle = ctx.createPattern(bitmap, 'no-repeat');+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+}, "Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.htmlnew file mode 100644index 00000000000..9129b6c1d4a--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.html@@ -0,0 +1,30 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.composite.uncovered.pattern.destination-atop</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.composite.uncovered.pattern.destination-atop</h1>+<p class="desc">Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-atop';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.fillStyle = ctx.createPattern(bitmap, 'no-repeat');+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.worker.htmlnew file mode 100644index 00000000000..62227edffce--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.worker.jsnew file mode 100644index 00000000000..17ebb53db00--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-atop.worker.js@@ -0,0 +1,23 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.composite.uncovered.pattern.destination-atop+// Description:Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-atop';+ const response = await fetch('/images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.fillStyle = ctx.createPattern(bitmap, 'no-repeat');+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+}, "Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.htmlnew file mode 100644index 00000000000..305eef5f3d3--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.html@@ -0,0 +1,30 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.composite.uncovered.pattern.destination-in</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.composite.uncovered.pattern.destination-in</h1>+<p class="desc">Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-in';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.fillStyle = ctx.createPattern(bitmap, 'no-repeat');+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.worker.htmlnew file mode 100644index 00000000000..3e307610fb0--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.worker.jsnew file mode 100644index 00000000000..62ae7f569d7--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.destination-in.worker.js@@ -0,0 +1,23 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.composite.uncovered.pattern.destination-in+// Description:Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'destination-in';+ const response = await fetch('/images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.fillStyle = ctx.createPattern(bitmap, 'no-repeat');+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+}, "Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.htmlnew file mode 100644index 00000000000..1a379406496--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.html@@ -0,0 +1,30 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.composite.uncovered.pattern.source-in</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.composite.uncovered.pattern.source-in</h1>+<p class="desc">Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-in';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.fillStyle = ctx.createPattern(bitmap, 'no-repeat');+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.worker.htmlnew file mode 100644index 00000000000..aab78831b79--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.worker.jsnew file mode 100644index 00000000000..03a3b2f072f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-in.worker.js@@ -0,0 +1,23 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.composite.uncovered.pattern.source-in+// Description:Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-in';+ const response = await fetch('/images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.fillStyle = ctx.createPattern(bitmap, 'no-repeat');+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+}, "Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.htmlnew file mode 100644index 00000000000..4a88d8dad85--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.html@@ -0,0 +1,30 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.composite.uncovered.pattern.source-out</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.composite.uncovered.pattern.source-out</h1>+<p class="desc">Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-out';+ const response = await fetch('../../../../images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.fillStyle = ctx.createPattern(bitmap, 'no-repeat');+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);++}, "Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.worker.htmlnew file mode 100644index 00000000000..395da510b32--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.worker.jsnew file mode 100644index 00000000000..0fff2442913--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/compositing/2d.composite.uncovered.pattern.source-out.worker.js@@ -0,0 +1,23 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.composite.uncovered.pattern.source-out+// Description:Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';+ ctx.fillRect(0, 0, 100, 50);+ ctx.globalCompositeOperation = 'source-out';+ const response = await fetch('/images/yellow.png')+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.fillStyle = ctx.createPattern(bitmap, 'no-repeat');+ ctx.fillRect(0, 50, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,0,0,0, 5);+}, "Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.htmlnew file mode 100644index 00000000000..c8118d17cd6--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.html@@ -0,0 +1,26 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.drawImage.floatsource</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.drawImage.floatsource</h1>+<p class="desc"></p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ const response = await fetch('../../../../images/green.png');+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 10.1, 10.1, 0.1, 0.1, 0, 0, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);++}, "");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.worker.htmlnew file mode 100644index 00000000000..4373e382de7--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.worker.jsnew file mode 100644index 00000000000..18ecb11aacb--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.worker.js@@ -0,0 +1,19 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.drawImage.floatsource+// Description:+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ const response = await fetch('/images/green.png');+ const blob = await response.blob();+ const bitmap = await createImageBitmap(blob);+ ctx.drawImage(bitmap, 10.1, 10.1, 0.1, 0.1, 0, 0, 100, 50);+ _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);+}, "");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.htmlnew file mode 100644index 00000000000..ccbcb281776--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.strokeRect.zero.2</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.strokeRect.zero.2</h1>+<p class="desc">strokeRect of 0x0 pixels draws nothing, including caps and joins</p>+++<script>+var t = async_test("strokeRect of 0x0 pixels draws nothing, including caps and joins");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 250;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';+ ctx.strokeRect(50, 25, 0, 0);+ _assertPixel(canvas, 50,25, 0,0,0,0);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.worker.htmlnew file mode 100644index 00000000000..d6bc10710af--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.worker.jsnew file mode 100644index 00000000000..973ebec44a0--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.2.worker.js@@ -0,0 +1,27 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.strokeRect.zero.2+// Description:strokeRect of 0x0 pixels draws nothing, including caps and joins+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("strokeRect of 0x0 pixels draws nothing, including caps and joins");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 250;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';+ ctx.strokeRect(50, 25, 0, 0);+ _assertPixel(canvas, 50,25, 0,0,0,0);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.htmlnew file mode 100644index 00000000000..2d69bb98281--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.html@@ -0,0 +1,32 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.strokeRect.zero.4</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.strokeRect.zero.4</h1>+<p class="desc">strokeRect of Nx0 pixels draws a closed line with no caps</p>+++<script>+var t = async_test("strokeRect of Nx0 pixels draws a closed line with no caps");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 250;+ ctx.lineCap = 'round';+ ctx.strokeRect(100, 25, 100, 0);+ _assertPixel(canvas, 50,25, 0,0,0,0);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.worker.htmlnew file mode 100644index 00000000000..66f8386e822--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.worker.jsnew file mode 100644index 00000000000..3cec2063132--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.4.worker.js@@ -0,0 +1,26 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.strokeRect.zero.4+// Description:strokeRect of Nx0 pixels draws a closed line with no caps+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("strokeRect of Nx0 pixels draws a closed line with no caps");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 250;+ ctx.lineCap = 'round';+ ctx.strokeRect(100, 25, 100, 0);+ _assertPixel(canvas, 50,25, 0,0,0,0);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.htmlnew file mode 100644index 00000000000..d727781631e--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.html@@ -0,0 +1,32 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.strokeRect.zero.5</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.strokeRect.zero.5</h1>+<p class="desc">strokeRect of Nx0 pixels draws a closed line with joins</p>+++<script>+var t = async_test("strokeRect of Nx0 pixels draws a closed line with joins");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.strokeStyle = '#0f0';+ ctx.lineWidth = 250;+ ctx.lineJoin = 'round';+ ctx.strokeRect(100, 25, 100, 0);+ _assertPixel(canvas, 50,25, 0,255,0,255);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.worker.htmlnew file mode 100644index 00000000000..ab1a2aaceca--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.worker.jsnew file mode 100644index 00000000000..8591409705f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/drawing-rectangles-to-the-canvas/2d.strokeRect.zero.5.worker.js@@ -0,0 +1,26 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.strokeRect.zero.5+// Description:strokeRect of Nx0 pixels draws a closed line with joins+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("strokeRect of Nx0 pixels draws a closed line with joins");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.strokeStyle = '#0f0';+ ctx.lineWidth = 250;+ ctx.lineJoin = 'round';+ ctx.strokeRect(100, 25, 100, 0);+ _assertPixel(canvas, 50,25, 0,255,0,255);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.htmlnew file mode 100644index 00000000000..464d110ca08--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.gradient.conic.positive.rotation</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.gradient.conic.positive.rotation</h1>+<p class="desc">Conic gradient with positive rotation</p>+++<script>+var t = async_test("Conic gradient with positive rotation");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ const g = ctx.createConicGradient(3*Math.PI/2, 50, 25);+ // It's red in the upper right region and green on the lower left region+ g.addColorStop(0, "#f00");+ g.addColorStop(0.25, "#0f0");+ g.addColorStop(0.50, "#0f0");+ g.addColorStop(0.75, "#f00");+ ctx.fillStyle = g;+ ctx.fillRect(0, 0, 100, 50);+ _assertPixelApprox(canvas, 25,15, 255,0,0,255, 3);+ _assertPixelApprox(canvas, 75,40, 0,255,0,255, 3);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.worker.htmlnew file mode 100644index 00000000000..93edcf5ce49--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.worker.jsnew file mode 100644index 00000000000..45bbf403136--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.conic.positive.rotation.worker.js@@ -0,0 +1,31 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.gradient.conic.positive.rotation+// Description:Conic gradient with positive rotation+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Conic gradient with positive rotation");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ const g = ctx.createConicGradient(3*Math.PI/2, 50, 25);+ // It's red in the upper right region and green on the lower left region+ g.addColorStop(0, "#f00");+ g.addColorStop(0.25, "#0f0");+ g.addColorStop(0.50, "#0f0");+ g.addColorStop(0.75, "#f00");+ ctx.fillStyle = g;+ ctx.fillRect(0, 0, 100, 50);+ _assertPixelApprox(canvas, 25,15, 255,0,0,255, 3);+ _assertPixelApprox(canvas, 75,40, 0,255,0,255, 3);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.htmlnew file mode 100644index 00000000000..458a1f65f4f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.gradient.interpolate.zerosize.fill</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.gradient.interpolate.zerosize.fill</h1>+<p class="desc"></p>+++<script>+var t = async_test("");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction)+ g.addColorStop(0, '#f00');+ g.addColorStop(1, '#f00');+ ctx.fillStyle = g;+ ctx.rect(0, 0, 100, 50);+ ctx.fill();+ _assertPixel(canvas, 40,20, 0,255,0,255);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.worker.htmlnew file mode 100644index 00000000000..f7b42e56bcd--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.worker.jsnew file mode 100644index 00000000000..916b1cb9779--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.worker.js@@ -0,0 +1,31 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.gradient.interpolate.zerosize.fill+// Description:+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction)+ g.addColorStop(0, '#f00');+ g.addColorStop(1, '#f00');+ ctx.fillStyle = g;+ ctx.rect(0, 0, 100, 50);+ ctx.fill();+ _assertPixel(canvas, 40,20, 0,255,0,255);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.htmlnew file mode 100644index 00000000000..69ad648e2b8--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.html@@ -0,0 +1,36 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.gradient.interpolate.zerosize.fillRect</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.gradient.interpolate.zerosize.fillRect</h1>+<p class="desc"></p>+++<script>+var t = async_test("");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction)+ g.addColorStop(0, '#f00');+ g.addColorStop(1, '#f00');+ ctx.fillStyle = g;+ ctx.fillRect(0, 0, 100, 50);+ _assertPixel(canvas, 40,20, 0,255,0,255);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.worker.htmlnew file mode 100644index 00000000000..f261834d862--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.worker.jsnew file mode 100644index 00000000000..607ad85ae74--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.worker.js@@ -0,0 +1,30 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.gradient.interpolate.zerosize.fillRect+// Description:+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction)+ g.addColorStop(0, '#f00');+ g.addColorStop(1, '#f00');+ ctx.fillStyle = g;+ ctx.fillRect(0, 0, 100, 50);+ _assertPixel(canvas, 40,20, 0,255,0,255);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.htmlnew file mode 100644index 00000000000..8cd847d58cc--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.html@@ -0,0 +1,45 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.gradient.interpolate.zerosize.stroke</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.gradient.interpolate.zerosize.stroke</h1>+<p class="desc"></p>+++<script>+var t = async_test("");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction)+ g.addColorStop(0, '#f00');+ g.addColorStop(1, '#f00');+ ctx.strokeStyle = g;+ ctx.rect(20, 20, 60, 10);+ ctx.stroke();+ _assertPixel(canvas, 19,19, 0,255,0,255);+ _assertPixel(canvas, 20,19, 0,255,0,255);+ _assertPixel(canvas, 21,19, 0,255,0,255);+ _assertPixel(canvas, 19,20, 0,255,0,255);+ _assertPixel(canvas, 20,20, 0,255,0,255);+ _assertPixel(canvas, 21,20, 0,255,0,255);+ _assertPixel(canvas, 19,21, 0,255,0,255);+ _assertPixel(canvas, 20,21, 0,255,0,255);+ _assertPixel(canvas, 21,21, 0,255,0,255);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.worker.htmlnew file mode 100644index 00000000000..f7595ed3383--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.worker.jsnew file mode 100644index 00000000000..b969be6f850--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.worker.js@@ -0,0 +1,39 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.gradient.interpolate.zerosize.stroke+// Description:+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction)+ g.addColorStop(0, '#f00');+ g.addColorStop(1, '#f00');+ ctx.strokeStyle = g;+ ctx.rect(20, 20, 60, 10);+ ctx.stroke();+ _assertPixel(canvas, 19,19, 0,255,0,255);+ _assertPixel(canvas, 20,19, 0,255,0,255);+ _assertPixel(canvas, 21,19, 0,255,0,255);+ _assertPixel(canvas, 19,20, 0,255,0,255);+ _assertPixel(canvas, 20,20, 0,255,0,255);+ _assertPixel(canvas, 21,20, 0,255,0,255);+ _assertPixel(canvas, 19,21, 0,255,0,255);+ _assertPixel(canvas, 20,21, 0,255,0,255);+ _assertPixel(canvas, 21,21, 0,255,0,255);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.htmlnew file mode 100644index 00000000000..83fa397cc2a--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.html@@ -0,0 +1,44 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.gradient.interpolate.zerosize.strokeRect</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.gradient.interpolate.zerosize.strokeRect</h1>+<p class="desc"></p>+++<script>+var t = async_test("");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction)+ g.addColorStop(0, '#f00');+ g.addColorStop(1, '#f00');+ ctx.strokeStyle = g;+ ctx.strokeRect(20, 20, 60, 10);+ _assertPixel(canvas, 19,19, 0,255,0,255);+ _assertPixel(canvas, 20,19, 0,255,0,255);+ _assertPixel(canvas, 21,19, 0,255,0,255);+ _assertPixel(canvas, 19,20, 0,255,0,255);+ _assertPixel(canvas, 20,20, 0,255,0,255);+ _assertPixel(canvas, 21,20, 0,255,0,255);+ _assertPixel(canvas, 19,21, 0,255,0,255);+ _assertPixel(canvas, 20,21, 0,255,0,255);+ _assertPixel(canvas, 21,21, 0,255,0,255);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.worker.htmlnew file mode 100644index 00000000000..057ff0c35e3--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.worker.jsnew file mode 100644index 00000000000..b9884d4adf6--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.worker.js@@ -0,0 +1,38 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.gradient.interpolate.zerosize.strokeRect+// Description:+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction)+ g.addColorStop(0, '#f00');+ g.addColorStop(1, '#f00');+ ctx.strokeStyle = g;+ ctx.strokeRect(20, 20, 60, 10);+ _assertPixel(canvas, 19,19, 0,255,0,255);+ _assertPixel(canvas, 20,19, 0,255,0,255);+ _assertPixel(canvas, 21,19, 0,255,0,255);+ _assertPixel(canvas, 19,20, 0,255,0,255);+ _assertPixel(canvas, 20,20, 0,255,0,255);+ _assertPixel(canvas, 21,20, 0,255,0,255);+ _assertPixel(canvas, 19,21, 0,255,0,255);+ _assertPixel(canvas, 20,21, 0,255,0,255);+ _assertPixel(canvas, 21,21, 0,255,0,255);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.equal.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.equal.htmlnew file mode 100644index 00000000000..42c6898eaee--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.equal.html@@ -0,0 +1,45 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.gradient.radial.equal</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.gradient.radial.equal</h1>+<p class="desc"></p>+++<script>+var t = async_test("");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ var g = ctx.createRadialGradient(50, 25, 20, 50, 25, 20);+ g.addColorStop(0, '#f00');+ g.addColorStop(1, '#f00');+ ctx.fillStyle = g;+ ctx.fillRect(0, 0, 100, 50);++ _assertPixel(canvas, 1,1, 0,255,0,255);+ _assertPixel(canvas, 50,1, 0,255,0,255);+ _assertPixel(canvas, 98,1, 0,255,0,255);+ _assertPixel(canvas, 1,25, 0,255,0,255);+ _assertPixel(canvas, 50,25, 0,255,0,255);+ _assertPixelApprox(canvas, 98,25, 0,255,0,255, 1);+ _assertPixel(canvas, 1,48, 0,255,0,255);+ _assertPixelApprox(canvas, 50,48, 0,255,0,255, 1);+ _assertPixel(canvas, 98,48, 0,255,0,255);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.equal.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.equal.worker.htmlnew file mode 100644index 00000000000..a284b16d90c--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.equal.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.equal.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.equal.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.equal.worker.jsnew file mode 100644index 00000000000..c8e6095805a--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.equal.worker.js@@ -0,0 +1,39 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.gradient.radial.equal+// Description:+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ var g = ctx.createRadialGradient(50, 25, 20, 50, 25, 20);+ g.addColorStop(0, '#f00');+ g.addColorStop(1, '#f00');+ ctx.fillStyle = g;+ ctx.fillRect(0, 0, 100, 50);++ _assertPixel(canvas, 1,1, 0,255,0,255);+ _assertPixel(canvas, 50,1, 0,255,0,255);+ _assertPixel(canvas, 98,1, 0,255,0,255);+ _assertPixel(canvas, 1,25, 0,255,0,255);+ _assertPixel(canvas, 50,25, 0,255,0,255);+ _assertPixelApprox(canvas, 98,25, 0,255,0,255, 1);+ _assertPixel(canvas, 1,48, 0,255,0,255);+ _assertPixelApprox(canvas, 50,48, 0,255,0,255, 1);+ _assertPixel(canvas, 98,48, 0,255,0,255);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.arc.twopie.5.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.arc.twopie.5.htmlnew file mode 100644index 00000000000..9ecdd069de2--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.arc.twopie.5.html@@ -0,0 +1,36 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.path.arc.twopie.5</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.path.arc.twopie.5</h1>+<p class="desc">arc() draws correctly when start = 2 and end = start + 2pi+e and clockwise</p>+++<script>+var t = async_test("arc() draws correctly when start = 2 and end = start + 2pi+e and clockwise");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#fff';+ ctx.fillRect(0, 0, 100, 50);+ ctx.fillStyle = '#000';+ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.arc(50, 25, 50, 2, 2 + 2*Math.PI, false);+ ctx.closePath();+ ctx.fill();+ _assertPixel(canvas, 95,25, 0,0,0,255);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.arc.twopie.5.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.arc.twopie.5.worker.htmlnew file mode 100644index 00000000000..d91deae5e6e--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.arc.twopie.5.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/path-objects/2d.path.arc.twopie.5.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.arc.twopie.5.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.arc.twopie.5.worker.jsnew file mode 100644index 00000000000..8fa29d5a972--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.arc.twopie.5.worker.js@@ -0,0 +1,30 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.path.arc.twopie.5+// Description:arc() draws correctly when start = 2 and end = start + 2pi+e and clockwise+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("arc() draws correctly when start = 2 and end = start + 2pi+e and clockwise");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#fff';+ ctx.fillRect(0, 0, 100, 50);+ ctx.fillStyle = '#000';+ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.arc(50, 25, 50, 2, 2 + 2*Math.PI, false);+ ctx.closePath();+ ctx.fill();+ _assertPixel(canvas, 95,25, 0,0,0,255);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.basic.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.basic.htmlnew file mode 100644index 00000000000..1f33546e827--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.basic.html@@ -0,0 +1,36 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<title>OffscreenCanvas test: 2d.path.isPointInStroke.basic</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.path.isPointInStroke.basic</h1>+<p class="desc">detects whether point is in the area contained by the stroke of the path</p>+++<script>+var t = async_test("detects whether point is in the area contained by the stroke of the path");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++var canvas = new OffscreenCanvas(100, 50);+var ctx = canvas.getContext('2d');++ctx.strokeStyle = '#0f0';+ctx.beginPath();+ctx.rect(0, 0, 20, 20);+_assertSame(ctx.isPointInStroke(0, 0), true, "ctx.isPointInStroke(0, 0)", "true");+_assertSame(ctx.isPointInStroke(30, 10), false, "ctx.isPointInStroke(30, 10)", "false");++var path = new Path2D();+path.rect(20, 20, 100, 100);+_assertSame(ctx.isPointInStroke(path, 20, 20), true, "ctx.isPointInStroke(path, 20, 20)", "true");+_assertSame(ctx.isPointInStroke(path, 120, 20), true, "ctx.isPointInStroke(path, 120, 20)", "true");+t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.basic.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.basic.worker.htmlnew file mode 100644index 00000000000..608b42f4f1b--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.basic.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/path-objects/2d.path.isPointInStroke.basic.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.basic.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.basic.worker.jsnew file mode 100644index 00000000000..844f0ef1545--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.basic.worker.js@@ -0,0 +1,32 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.path.isPointInStroke.basic+// Description:detects whether point is in the area contained by the stroke of the path+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("detects whether point is in the area contained by the stroke of the path");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++var canvas = new OffscreenCanvas(100, 50);+var ctx = canvas.getContext('2d');++ctx.strokeStyle = '#0f0';+ctx.beginPath();+ctx.rect(0, 0, 20, 20);+_assertSame(ctx.isPointInStroke(0, 0), true, "ctx.isPointInStroke(0, 0)", "true");+_assertSame(ctx.isPointInStroke(30, 10), false, "ctx.isPointInStroke(30, 10)", "false");++var path = new Path2D();+path.rect(20, 20, 100, 100);+_assertSame(ctx.isPointInStroke(path, 20, 20), true, "ctx.isPointInStroke(path, 20, 20)", "true");+_assertSame(ctx.isPointInStroke(path, 120, 20), true, "ctx.isPointInStroke(path, 120, 20)", "true");+t.done();++});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.scaleddashes.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.scaleddashes.htmlnew file mode 100644index 00000000000..fcd70b9e01d--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.scaleddashes.html@@ -0,0 +1,41 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.path.isPointInStroke.scaleddashes</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.path.isPointInStroke.scaleddashes</h1>+<p class="desc">isPointInStroke() should return correct results on dashed paths at high scale factors</p>+++<script>+var t = async_test("isPointInStroke() should return correct results on dashed paths at high scale factors");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var scale = 20;+ ctx.setLineDash([10, 21.4159]); // dash from t=0 to t=10 along the circle+ ctx.scale(scale, scale);+ ctx.ellipse(6, 10, 5, 5, 0, 2*Math.PI, false);+ ctx.stroke();++ // hit-test the beginning of the dash (t=0)+ _assertSame(ctx.isPointInStroke(11*scale, 10*scale), true, "ctx.isPointInStroke(11*scale, 10*scale)", "true");+ // hit-test the middle of the dash (t=5)+ _assertSame(ctx.isPointInStroke(8.70*scale, 14.21*scale), true, "ctx.isPointInStroke(8.70*scale, 14.21*scale)", "true");+ // hit-test the end of the dash (t=9.8)+ _assertSame(ctx.isPointInStroke(4.10*scale, 14.63*scale), true, "ctx.isPointInStroke(4.10*scale, 14.63*scale)", "true");+ // hit-test past the end of the dash (t=10.2)+ _assertSame(ctx.isPointInStroke(3.74*scale, 14.46*scale), false, "ctx.isPointInStroke(3.74*scale, 14.46*scale)", "false");+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.scaleddashes.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.scaleddashes.worker.htmlnew file mode 100644index 00000000000..e67301710d7--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.scaleddashes.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/path-objects/2d.path.isPointInStroke.scaleddashes.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.scaleddashes.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.scaleddashes.worker.jsnew file mode 100644index 00000000000..240905308e3--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.isPointInStroke.scaleddashes.worker.js@@ -0,0 +1,35 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.path.isPointInStroke.scaleddashes+// Description:isPointInStroke() should return correct results on dashed paths at high scale factors+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("isPointInStroke() should return correct results on dashed paths at high scale factors");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var scale = 20;+ ctx.setLineDash([10, 21.4159]); // dash from t=0 to t=10 along the circle+ ctx.scale(scale, scale);+ ctx.ellipse(6, 10, 5, 5, 0, 2*Math.PI, false);+ ctx.stroke();++ // hit-test the beginning of the dash (t=0)+ _assertSame(ctx.isPointInStroke(11*scale, 10*scale), true, "ctx.isPointInStroke(11*scale, 10*scale)", "true");+ // hit-test the middle of the dash (t=5)+ _assertSame(ctx.isPointInStroke(8.70*scale, 14.21*scale), true, "ctx.isPointInStroke(8.70*scale, 14.21*scale)", "true");+ // hit-test the end of the dash (t=9.8)+ _assertSame(ctx.isPointInStroke(4.10*scale, 14.63*scale), true, "ctx.isPointInStroke(4.10*scale, 14.63*scale)", "true");+ // hit-test past the end of the dash (t=10.2)+ _assertSame(ctx.isPointInStroke(3.74*scale, 14.46*scale), false, "ctx.isPointInStroke(3.74*scale, 14.46*scale)", "false");+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.roundrect.negative.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.roundrect.negative.htmlnew file mode 100644index 00000000000..111d38ac1a9--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.roundrect.negative.html@@ -0,0 +1,46 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.path.roundrect.negative</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.path.roundrect.negative</h1>+<p class="desc"></p>+++<script>+var t = async_test("");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.beginPath();+ ctx.fillStyle = '#0f0';+ ctx.roundRect(0, 0, 50, 25, [10, 0, 0, 0]);+ ctx.roundRect(100, 0, -50, 25, [10, 0, 0, 0]);+ ctx.roundRect(0, 50, 50, -25, [10, 0, 0, 0]);+ ctx.roundRect(100, 50, -50, -25, [10, 0, 0, 0]);+ ctx.fill();+ // All rects drawn+ _assertPixel(canvas, 25,12, 0,255,0,255);+ _assertPixel(canvas, 75,12, 0,255,0,255);+ _assertPixel(canvas, 25,37, 0,255,0,255);+ _assertPixel(canvas, 75,37, 0,255,0,255);+ // Correct corners are rounded.+ _assertPixel(canvas, 1,1, 255,0,0,255);+ _assertPixel(canvas, 98,1, 255,0,0,255);+ _assertPixel(canvas, 1,48, 255,0,0,255);+ _assertPixel(canvas, 98,48, 255,0,0,255);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.roundrect.negative.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.roundrect.negative.worker.htmlnew file mode 100644index 00000000000..465b8c34388--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.roundrect.negative.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/path-objects/2d.path.roundrect.negative.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.roundrect.negative.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.roundrect.negative.worker.jsnew file mode 100644index 00000000000..14459238ed1--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.roundrect.negative.worker.js@@ -0,0 +1,40 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.path.roundrect.negative+// Description:+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.beginPath();+ ctx.fillStyle = '#0f0';+ ctx.roundRect(0, 0, 50, 25, [10, 0, 0, 0]);+ ctx.roundRect(100, 0, -50, 25, [10, 0, 0, 0]);+ ctx.roundRect(0, 50, 50, -25, [10, 0, 0, 0]);+ ctx.roundRect(100, 50, -50, -25, [10, 0, 0, 0]);+ ctx.fill();+ // All rects drawn+ _assertPixel(canvas, 25,12, 0,255,0,255);+ _assertPixel(canvas, 75,12, 0,255,0,255);+ _assertPixel(canvas, 25,37, 0,255,0,255);+ _assertPixel(canvas, 75,37, 0,255,0,255);+ // Correct corners are rounded.+ _assertPixel(canvas, 1,1, 255,0,0,255);+ _assertPixel(canvas, 98,1, 255,0,0,255);+ _assertPixel(canvas, 1,48, 255,0,0,255);+ _assertPixel(canvas, 98,48, 255,0,0,255);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.arc.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.arc.htmlnew file mode 100644index 00000000000..c52bf867a2c--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.arc.html@@ -0,0 +1,46 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.path.stroke.prune.arc</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.path.stroke.prune.arc</h1>+<p class="desc">Zero-length line segments from arcTo and arc are removed before stroking</p>+++<script>+var t = async_test("Zero-length line segments from arcTo and arc are removed before stroking");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 100;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';++ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.arcTo(50, 25, 150, 25, 10);+ ctx.stroke();++ ctx.beginPath();+ ctx.moveTo(60, 25);+ ctx.arc(50, 25, 10, 0, 0, false);+ ctx.stroke();++ _assertPixel(canvas, 50,25, 0,255,0,255);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.arc.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.arc.worker.htmlnew file mode 100644index 00000000000..7c12857ffc1--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.arc.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/path-objects/2d.path.stroke.prune.arc.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.arc.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.arc.worker.jsnew file mode 100644index 00000000000..880e8146ba5--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.arc.worker.js@@ -0,0 +1,40 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.path.stroke.prune.arc+// Description:Zero-length line segments from arcTo and arc are removed before stroking+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Zero-length line segments from arcTo and arc are removed before stroking");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 100;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';++ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.arcTo(50, 25, 150, 25, 10);+ ctx.stroke();++ ctx.beginPath();+ ctx.moveTo(60, 25);+ ctx.arc(50, 25, 10, 0, 0, false);+ ctx.stroke();++ _assertPixel(canvas, 50,25, 0,255,0,255);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.closed.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.closed.htmlnew file mode 100644index 00000000000..9132604ed6f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.closed.html@@ -0,0 +1,42 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.path.stroke.prune.closed</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.path.stroke.prune.closed</h1>+<p class="desc">Zero-length line segments from closed paths are removed before stroking</p>+++<script>+var t = async_test("Zero-length line segments from closed paths are removed before stroking");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 100;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';++ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.lineTo(50, 25);+ ctx.closePath();+ ctx.stroke();++ _assertPixel(canvas, 50,25, 0,255,0,255);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.closed.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.closed.worker.htmlnew file mode 100644index 00000000000..9e74e6b0237--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.closed.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/path-objects/2d.path.stroke.prune.closed.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.closed.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.closed.worker.jsnew file mode 100644index 00000000000..e1d271bf6aa--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.closed.worker.js@@ -0,0 +1,36 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.path.stroke.prune.closed+// Description:Zero-length line segments from closed paths are removed before stroking+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Zero-length line segments from closed paths are removed before stroking");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 100;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';++ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.lineTo(50, 25);+ ctx.closePath();+ ctx.stroke();++ _assertPixel(canvas, 50,25, 0,255,0,255);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.curve.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.curve.htmlnew file mode 100644index 00000000000..efdb9400a5e--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.curve.html@@ -0,0 +1,46 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.path.stroke.prune.curve</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.path.stroke.prune.curve</h1>+<p class="desc">Zero-length line segments from quadraticCurveTo and bezierCurveTo are removed before stroking</p>+++<script>+var t = async_test("Zero-length line segments from quadraticCurveTo and bezierCurveTo are removed before stroking");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 100;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';++ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.quadraticCurveTo(50, 25, 50, 25);+ ctx.stroke();++ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.bezierCurveTo(50, 25, 50, 25, 50, 25);+ ctx.stroke();++ _assertPixel(canvas, 50,25, 0,255,0,255);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.curve.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.curve.worker.htmlnew file mode 100644index 00000000000..9317d602ef1--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.curve.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/path-objects/2d.path.stroke.prune.curve.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.curve.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.curve.worker.jsnew file mode 100644index 00000000000..ed960fdbe7f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.curve.worker.js@@ -0,0 +1,40 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.path.stroke.prune.curve+// Description:Zero-length line segments from quadraticCurveTo and bezierCurveTo are removed before stroking+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Zero-length line segments from quadraticCurveTo and bezierCurveTo are removed before stroking");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 100;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';++ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.quadraticCurveTo(50, 25, 50, 25);+ ctx.stroke();++ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.bezierCurveTo(50, 25, 50, 25, 50, 25);+ ctx.stroke();++ _assertPixel(canvas, 50,25, 0,255,0,255);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.line.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.line.htmlnew file mode 100644index 00000000000..600834fc879--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.line.html@@ -0,0 +1,41 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.path.stroke.prune.line</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.path.stroke.prune.line</h1>+<p class="desc">Zero-length line segments from lineTo are removed before stroking</p>+++<script>+var t = async_test("Zero-length line segments from lineTo are removed before stroking");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 100;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';++ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.lineTo(50, 25);+ ctx.stroke();++ _assertPixel(canvas, 50,25, 0,255,0,255);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.line.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.line.worker.htmlnew file mode 100644index 00000000000..c3b991c4581--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.line.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/path-objects/2d.path.stroke.prune.line.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.line.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.line.worker.jsnew file mode 100644index 00000000000..a00e73bcbbe--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.line.worker.js@@ -0,0 +1,35 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.path.stroke.prune.line+// Description:Zero-length line segments from lineTo are removed before stroking+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Zero-length line segments from lineTo are removed before stroking");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 100;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';++ ctx.beginPath();+ ctx.moveTo(50, 25);+ ctx.lineTo(50, 25);+ ctx.stroke();++ _assertPixel(canvas, 50,25, 0,255,0,255);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.rect.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.rect.htmlnew file mode 100644index 00000000000..709a0c92165--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.rect.html@@ -0,0 +1,42 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.path.stroke.prune.rect</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.path.stroke.prune.rect</h1>+<p class="desc">Zero-length line segments from rect and strokeRect are removed before stroking</p>+++<script>+var t = async_test("Zero-length line segments from rect and strokeRect are removed before stroking");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 100;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';++ ctx.beginPath();+ ctx.rect(50, 25, 0, 0);+ ctx.stroke();++ ctx.strokeRect(50, 25, 0, 0);++ _assertPixel(canvas, 50,25, 0,255,0,255);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.rect.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.rect.worker.htmlnew file mode 100644index 00000000000..1cc33f1c225--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.rect.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/path-objects/2d.path.stroke.prune.rect.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.rect.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.rect.worker.jsnew file mode 100644index 00000000000..87bb533ff9e--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/path-objects/2d.path.stroke.prune.rect.worker.js@@ -0,0 +1,36 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.path.stroke.prune.rect+// Description:Zero-length line segments from rect and strokeRect are removed before stroking+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Zero-length line segments from rect and strokeRect are removed before stroking");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);++ ctx.strokeStyle = '#f00';+ ctx.lineWidth = 100;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';++ ctx.beginPath();+ ctx.rect(50, 25, 0, 0);+ ctx.stroke();++ ctx.strokeRect(50, 25, 0, 0);++ _assertPixel(canvas, 50,25, 0,255,0,255);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/pixel-manipulation/2d.imageData.put.clip.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/pixel-manipulation/2d.imageData.put.clip.htmlnew file mode 100644index 00000000000..7f0fa3ef2cc--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/pixel-manipulation/2d.imageData.put.clip.html@@ -0,0 +1,38 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.imageData.put.clip</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.imageData.put.clip</h1>+<p class="desc">putImageData() is not affected by clipping regions</p>+++<script>+var t = async_test("putImageData() is not affected by clipping regions");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50)+ var imgdata = ctx.getImageData(0, 0, 100, 50);+ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50)+ ctx.beginPath();+ ctx.rect(0, 0, 50, 50);+ ctx.clip();+ ctx.putImageData(imgdata, 0, 0);+ _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/pixel-manipulation/2d.imageData.put.clip.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/pixel-manipulation/2d.imageData.put.clip.worker.htmlnew file mode 100644index 00000000000..4fd203f2235--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/pixel-manipulation/2d.imageData.put.clip.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/pixel-manipulation/2d.imageData.put.clip.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/pixel-manipulation/2d.imageData.put.clip.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/pixel-manipulation/2d.imageData.put.clip.worker.jsnew file mode 100644index 00000000000..b665edbb336--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/pixel-manipulation/2d.imageData.put.clip.worker.js@@ -0,0 +1,32 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.imageData.put.clip+// Description:putImageData() is not affected by clipping regions+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("putImageData() is not affected by clipping regions");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50)+ var imgdata = ctx.getImageData(0, 0, 100, 50);+ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50)+ ctx.beginPath();+ ctx.rect(0, 0, 50, 50);+ ctx.clip();+ ctx.putImageData(imgdata, 0, 0);+ _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_kerning.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_kerning.htmlnew file mode 100644index 00000000000..50da84216d8--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_kerning.html@@ -0,0 +1,34 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.reset.state.font_kerning</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.reset.state.font_kerning</h1>+<p class="desc">check that the state is reset</p>+++<script>+var t = async_test("check that the state is reset");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ const default_value = ctx.fontKerning;++ ctx.fontKerning = 'normal';+ _assert(ctx.fontKerning == 'normal', "ctx.fontKerning == 'normal'");++ ctx.reset();+ _assert(ctx.fontKerning == default_value, "ctx.fontKerning == default_value");+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_kerning.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_kerning.worker.htmlnew file mode 100644index 00000000000..0a1f32d4545--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_kerning.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/reset/2d.reset.state.font_kerning.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_kerning.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_kerning.worker.jsnew file mode 100644index 00000000000..1c21249b9cb--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_kerning.worker.js@@ -0,0 +1,28 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.reset.state.font_kerning+// Description:check that the state is reset+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("check that the state is reset");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ const default_value = ctx.fontKerning;++ ctx.fontKerning = 'normal';+ _assert(ctx.fontKerning == 'normal', "ctx.fontKerning == 'normal'");++ ctx.reset();+ _assert(ctx.fontKerning == default_value, "ctx.fontKerning == default_value");+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_variant_caps.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_variant_caps.htmlnew file mode 100644index 00000000000..95f2df1ae18--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_variant_caps.html@@ -0,0 +1,34 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.reset.state.font_variant_caps</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.reset.state.font_variant_caps</h1>+<p class="desc">check that the state is reset</p>+++<script>+var t = async_test("check that the state is reset");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ const default_value = ctx.fontVariantCaps;++ ctx.fontVariantCaps = 'unicase';+ _assert(ctx.fontVariantCaps == 'unicase', "ctx.fontVariantCaps == 'unicase'");++ ctx.reset();+ _assert(ctx.fontVariantCaps == default_value, "ctx.fontVariantCaps == default_value");+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_variant_caps.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_variant_caps.worker.htmlnew file mode 100644index 00000000000..6cf5d27e634--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_variant_caps.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/reset/2d.reset.state.font_variant_caps.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_variant_caps.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_variant_caps.worker.jsnew file mode 100644index 00000000000..e89a8bda428--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.font_variant_caps.worker.js@@ -0,0 +1,28 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.reset.state.font_variant_caps+// Description:check that the state is reset+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("check that the state is reset");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ const default_value = ctx.fontVariantCaps;++ ctx.fontVariantCaps = 'unicase';+ _assert(ctx.fontVariantCaps == 'unicase', "ctx.fontVariantCaps == 'unicase'");++ ctx.reset();+ _assert(ctx.fontVariantCaps == default_value, "ctx.fontVariantCaps == default_value");+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.text_rendering.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.text_rendering.htmlnew file mode 100644index 00000000000..34fe13bad1b--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.text_rendering.html@@ -0,0 +1,34 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.reset.state.text_rendering</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.reset.state.text_rendering</h1>+<p class="desc">check that the state is reset</p>+++<script>+var t = async_test("check that the state is reset");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ const default_value = ctx.textRendering;++ ctx.textRendering = 'geometricPrecision';+ _assert(ctx.textRendering == 'geometricPrecision', "ctx.textRendering == 'geometricPrecision'");++ ctx.reset();+ _assert(ctx.textRendering == default_value, "ctx.textRendering == default_value");+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.text_rendering.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.text_rendering.worker.htmlnew file mode 100644index 00000000000..b768bcff107--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.text_rendering.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/reset/2d.reset.state.text_rendering.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.text_rendering.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.text_rendering.worker.jsnew file mode 100644index 00000000000..df4cea10445--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.text_rendering.worker.js@@ -0,0 +1,28 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.reset.state.text_rendering+// Description:check that the state is reset+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("check that the state is reset");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ const default_value = ctx.textRendering;++ ctx.textRendering = 'geometricPrecision';+ _assert(ctx.textRendering == 'geometricPrecision', "ctx.textRendering == 'geometricPrecision'");++ ctx.reset();+ _assert(ctx.textRendering == default_value, "ctx.textRendering == default_value");+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.word_spacing.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.word_spacing.htmlnew file mode 100644index 00000000000..e488699b207--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.word_spacing.html@@ -0,0 +1,34 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.reset.state.word_spacing</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.reset.state.word_spacing</h1>+<p class="desc">check that the state is reset</p>+++<script>+var t = async_test("check that the state is reset");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ const default_value = ctx.wordSpacing;++ ctx.wordSpacing = '12px';+ _assert(ctx.wordSpacing == '12px', "ctx.wordSpacing == '12px'");++ ctx.reset();+ _assert(ctx.wordSpacing == default_value, "ctx.wordSpacing == default_value");+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.word_spacing.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.word_spacing.worker.htmlnew file mode 100644index 00000000000..caf1f22503f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.word_spacing.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/reset/2d.reset.state.word_spacing.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.word_spacing.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.word_spacing.worker.jsnew file mode 100644index 00000000000..9e8c717f78a--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/reset/2d.reset.state.word_spacing.worker.js@@ -0,0 +1,28 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.reset.state.word_spacing+// Description:check that the state is reset+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("check that the state is reset");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ const default_value = ctx.wordSpacing;++ ctx.wordSpacing = '12px';+ _assert(ctx.wordSpacing == '12px', "ctx.wordSpacing == '12px'");++ ctx.reset();+ _assert(ctx.wordSpacing == default_value, "ctx.wordSpacing == default_value");+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.alpha.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.alpha.htmlnew file mode 100644index 00000000000..d9f93b1c672--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.alpha.html@@ -0,0 +1,39 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.shadow.canvas.alpha</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.shadow.canvas.alpha</h1>+<p class="desc">Shadows are drawn correctly for partially-transparent canvases</p>+++<script>+var t = async_test("Shadows are drawn correctly for partially-transparent canvases");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var canvas2 = new OffscreenCanvas(100, 50);+ var ctx2 = canvas2.getContext('2d');+ ctx2.fillStyle = 'rgba(255, 0, 0, 0.5)';+ ctx2.fillRect(0, 0, 100, 50);++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#00f';+ ctx.drawImage(canvas2, 0, -50);++ _assertPixelApprox(canvas, 50,25, 127,0,127,255, 2);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.alpha.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.alpha.worker.htmlnew file mode 100644index 00000000000..526a94e0af9--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.alpha.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/shadows/2d.shadow.canvas.alpha.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.alpha.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.alpha.worker.jsnew file mode 100644index 00000000000..0fa74a20706--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.alpha.worker.js@@ -0,0 +1,33 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.shadow.canvas.alpha+// Description:Shadows are drawn correctly for partially-transparent canvases+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Shadows are drawn correctly for partially-transparent canvases");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var canvas2 = new OffscreenCanvas(100, 50);+ var ctx2 = canvas2.getContext('2d');+ ctx2.fillStyle = 'rgba(255, 0, 0, 0.5)';+ ctx2.fillRect(0, 0, 100, 50);++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#00f';+ ctx.drawImage(canvas2, 0, -50);++ _assertPixelApprox(canvas, 50,25, 127,0,127,255, 2);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.basic.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.basic.htmlnew file mode 100644index 00000000000..b669007a0c2--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.basic.html@@ -0,0 +1,39 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.shadow.canvas.basic</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.shadow.canvas.basic</h1>+<p class="desc">Shadows are drawn for canvases</p>+++<script>+var t = async_test("Shadows are drawn for canvases");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var canvas2 = new OffscreenCanvas(100, 50);+ var ctx2 = canvas2.getContext('2d');+ ctx2.fillStyle = '#f00';+ ctx2.fillRect(0, 0, 100, 50);++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowColor = '#0f0';+ ctx.shadowOffsetY = 50;+ ctx.drawImage(canvas2, 0, -50);++ _assertPixel(canvas, 50,25, 0,255,0,255);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.basic.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.basic.worker.htmlnew file mode 100644index 00000000000..50a0cb63782--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.basic.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/shadows/2d.shadow.canvas.basic.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.basic.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.basic.worker.jsnew file mode 100644index 00000000000..6a2d916a754--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.basic.worker.js@@ -0,0 +1,33 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.shadow.canvas.basic+// Description:Shadows are drawn for canvases+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Shadows are drawn for canvases");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var canvas2 = new OffscreenCanvas(100, 50);+ var ctx2 = canvas2.getContext('2d');+ ctx2.fillStyle = '#f00';+ ctx2.fillRect(0, 0, 100, 50);++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowColor = '#0f0';+ ctx.shadowOffsetY = 50;+ ctx.drawImage(canvas2, 0, -50);++ _assertPixel(canvas, 50,25, 0,255,0,255);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.transparent.2.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.transparent.2.htmlnew file mode 100644index 00000000000..6e82984e4f0--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.transparent.2.html@@ -0,0 +1,45 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.shadow.canvas.transparent.2</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.shadow.canvas.transparent.2</h1>+<p class="desc">Shadows are not drawn for transparent parts of canvases</p>+++<script>+var t = async_test("Shadows are not drawn for transparent parts of canvases");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var canvas2 = new OffscreenCanvas(100, 50);+ var ctx2 = canvas2.getContext('2d');+ ctx2.fillStyle = '#f00';+ ctx2.fillRect(0, 0, 50, 50);++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 50, 50);+ ctx.fillStyle = '#f00';+ ctx.fillRect(50, 0, 50, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#0f0';+ ctx.drawImage(canvas2, 50, -50);+ ctx.shadowColor = '#f00';+ ctx.drawImage(canvas2, -50, -50);++ _assertPixel(canvas, 25,25, 0,255,0,255);+ _assertPixel(canvas, 50,25, 0,255,0,255);+ _assertPixel(canvas, 75,25, 0,255,0,255);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.transparent.2.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.transparent.2.worker.htmlnew file mode 100644index 00000000000..62bb8832afa--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.transparent.2.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/shadows/2d.shadow.canvas.transparent.2.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.transparent.2.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.transparent.2.worker.jsnew file mode 100644index 00000000000..6e468e28e00--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.canvas.transparent.2.worker.js@@ -0,0 +1,39 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.shadow.canvas.transparent.2+// Description:Shadows are not drawn for transparent parts of canvases+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Shadows are not drawn for transparent parts of canvases");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var canvas2 = new OffscreenCanvas(100, 50);+ var ctx2 = canvas2.getContext('2d');+ ctx2.fillStyle = '#f00';+ ctx2.fillRect(0, 0, 50, 50);++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 50, 50);+ ctx.fillStyle = '#f00';+ ctx.fillRect(50, 0, 50, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#0f0';+ ctx.drawImage(canvas2, 50, -50);+ ctx.shadowColor = '#f00';+ ctx.drawImage(canvas2, -50, -50);++ _assertPixel(canvas, 25,25, 0,255,0,255);+ _assertPixel(canvas, 50,25, 0,255,0,255);+ _assertPixel(canvas, 75,25, 0,255,0,255);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.gradient.alpha.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.gradient.alpha.htmlnew file mode 100644index 00000000000..e5b143cd9bf--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.gradient.alpha.html@@ -0,0 +1,38 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.shadow.gradient.alpha</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.shadow.gradient.alpha</h1>+<p class="desc">Shadows are drawn correctly for partially-transparent gradient fills</p>+++<script>+var t = async_test("Shadows are drawn correctly for partially-transparent gradient fills");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var gradient = ctx.createLinearGradient(0, 0, 100, 0);+ gradient.addColorStop(0, 'rgba(255,0,0,0.5)');+ gradient.addColorStop(1, 'rgba(255,0,0,0.5)');+ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#00f';+ ctx.fillStyle = gradient;+ ctx.fillRect(0, -50, 100, 50);++ _assertPixelApprox(canvas, 50,25, 127,0,127,255, 2);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.gradient.alpha.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.gradient.alpha.worker.htmlnew file mode 100644index 00000000000..651be6aaf67--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.gradient.alpha.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/shadows/2d.shadow.gradient.alpha.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.gradient.alpha.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.gradient.alpha.worker.jsnew file mode 100644index 00000000000..0f9a6449c4b--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.gradient.alpha.worker.js@@ -0,0 +1,32 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.shadow.gradient.alpha+// Description:Shadows are drawn correctly for partially-transparent gradient fills+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Shadows are drawn correctly for partially-transparent gradient fills");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var gradient = ctx.createLinearGradient(0, 0, 100, 0);+ gradient.addColorStop(0, 'rgba(255,0,0,0.5)');+ gradient.addColorStop(1, 'rgba(255,0,0,0.5)');+ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#00f';+ ctx.fillStyle = gradient;+ ctx.fillRect(0, -50, 100, 50);++ _assertPixelApprox(canvas, 50,25, 127,0,127,255, 2);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.alpha.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.alpha.htmlnew file mode 100644index 00000000000..f924f8e5555--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.alpha.html@@ -0,0 +1,31 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.shadow.image.alpha</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.shadow.image.alpha</h1>+<p class="desc">Shadows are drawn correctly for partially-transparent images</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#00f';+ var response = await fetch('../../../../images/transparent50.png')+ var blob = await response.blob();+ var img = await createImageBitmap(blob);+ ctx.drawImage(img, 0, -50);++ _assertPixelApprox(canvas, 50,25, 127,0,127,255, 2);++}, "Shadows are drawn correctly for partially-transparent images");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.alpha.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.alpha.worker.htmlnew file mode 100644index 00000000000..431fafc2b5b--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.alpha.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/shadows/2d.shadow.image.alpha.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.alpha.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.alpha.worker.jsnew file mode 100644index 00000000000..dee89275641--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.alpha.worker.js@@ -0,0 +1,24 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.shadow.image.alpha+// Description:Shadows are drawn correctly for partially-transparent images+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#00f';+ var response = await fetch('/images/transparent50.png')+ var blob = await response.blob();+ var img = await createImageBitmap(blob);+ ctx.drawImage(img, 0, -50);++ _assertPixelApprox(canvas, 50,25, 127,0,127,255, 2);+}, "Shadows are drawn correctly for partially-transparent images");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.basic.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.basic.htmlnew file mode 100644index 00000000000..02c3830ad88--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.basic.html@@ -0,0 +1,31 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.shadow.image.basic</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.shadow.image.basic</h1>+<p class="desc">Shadows are drawn for images</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowColor = '#0f0';+ ctx.shadowOffsetY = 50;+ var response = await fetch('../../../../images/red.png')+ var blob = await response.blob();+ var img = await createImageBitmap(blob);+ ctx.drawImage(img, 0, -50);++ _assertPixel(canvas, 50,25, 0,255,0,255);++}, "Shadows are drawn for images");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.basic.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.basic.worker.htmlnew file mode 100644index 00000000000..fd22d8d2e21--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.basic.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/shadows/2d.shadow.image.basic.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.basic.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.basic.worker.jsnew file mode 100644index 00000000000..7aa17da784e--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.basic.worker.js@@ -0,0 +1,24 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.shadow.image.basic+// Description:Shadows are drawn for images+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowColor = '#0f0';+ ctx.shadowOffsetY = 50;+ var response = await fetch('/images/red.png')+ var blob = await response.blob();+ var img = await createImageBitmap(blob);+ ctx.drawImage(img, 0, -50);++ _assertPixel(canvas, 50,25, 0,255,0,255);+}, "Shadows are drawn for images");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.scale.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.scale.htmlnew file mode 100644index 00000000000..074543c04fe--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.scale.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.shadow.image.scale</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.shadow.image.scale</h1>+<p class="desc">Shadows are drawn correctly for scaled images</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#0f0';+ var response = await fetch('../../../../images/redtransparent.png')+ var blob = await response.blob();+ var img = await createImageBitmap(blob);+ ctx.drawImage(img, 0, 0, 100, 50, -10, -50, 240, 50);++ _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);++}, "Shadows are drawn correctly for scaled images");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.scale.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.scale.worker.htmlnew file mode 100644index 00000000000..5e7b31a36c6--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.scale.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/shadows/2d.shadow.image.scale.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.scale.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.scale.worker.jsnew file mode 100644index 00000000000..3c1cf872ec2--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.scale.worker.js@@ -0,0 +1,26 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.shadow.image.scale+// Description:Shadows are drawn correctly for scaled images+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#0f0';+ var response = await fetch('/images/redtransparent.png')+ var blob = await response.blob();+ var img = await createImageBitmap(blob);+ ctx.drawImage(img, 0, 0, 100, 50, -10, -50, 240, 50);++ _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);+ _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);+}, "Shadows are drawn correctly for scaled images");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.htmlnew file mode 100644index 00000000000..7cd9705a4f5--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.shadow.image.transparent.2</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.shadow.image.transparent.2</h1>+<p class="desc">Shadows are not drawn for transparent parts of images</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 50, 50);+ ctx.fillStyle = '#f00';+ ctx.fillRect(50, 0, 50, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#0f0';+ var response = await fetch('../../../../images/redtransparent.png')+ var blob = await response.blob();+ var img = await createImageBitmap(blob);+ ctx.drawImage(img, 50, -50);+ ctx.shadowColor = '#f00';+ ctx.drawImage(img, -50, -50);++ _assertPixel(canvas, 25,25, 0,255,0,255);+ _assertPixel(canvas, 50,25, 0,255,0,255);+ _assertPixel(canvas, 75,25, 0,255,0,255);++}, "Shadows are not drawn for transparent parts of images");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.worker.htmlnew file mode 100644index 00000000000..bcf79a73be9--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.worker.jsnew file mode 100644index 00000000000..0554c037504--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.worker.js@@ -0,0 +1,30 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.shadow.image.transparent.2+// Description:Shadows are not drawn for transparent parts of images+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 50, 50);+ ctx.fillStyle = '#f00';+ ctx.fillRect(50, 0, 50, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#0f0';+ var response = await fetch('/images/redtransparent.png')+ var blob = await response.blob();+ var img = await createImageBitmap(blob);+ ctx.drawImage(img, 50, -50);+ ctx.shadowColor = '#f00';+ ctx.drawImage(img, -50, -50);++ _assertPixel(canvas, 25,25, 0,255,0,255);+ _assertPixel(canvas, 50,25, 0,255,0,255);+ _assertPixel(canvas, 75,25, 0,255,0,255);+}, "Shadows are not drawn for transparent parts of images");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.htmlnew file mode 100644index 00000000000..40856643661--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.shadow.pattern.alpha</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.shadow.pattern.alpha</h1>+<p class="desc">Shadows are drawn correctly for partially-transparent fill patterns</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var response = await fetch('../../../../images/transparent50.png')+ var blob = await response.blob();+ var img = await createImageBitmap(blob);+ var pattern = ctx.createPattern(img, 'repeat');+ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#00f';+ ctx.fillStyle = pattern;+ ctx.fillRect(0, -50, 100, 50);++ _assertPixelApprox(canvas, 50,25, 127,0,127,255, 2);++}, "Shadows are drawn correctly for partially-transparent fill patterns");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.worker.htmlnew file mode 100644index 00000000000..6e9e70aeca7--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.worker.jsnew file mode 100644index 00000000000..9d5e5b07a9d--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.worker.js@@ -0,0 +1,26 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.shadow.pattern.alpha+// Description:Shadows are drawn correctly for partially-transparent fill patterns+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var response = await fetch('/images/transparent50.png')+ var blob = await response.blob();+ var img = await createImageBitmap(blob);+ var pattern = ctx.createPattern(img, 'repeat');+ ctx.fillStyle = '#f00';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowOffsetY = 50;+ ctx.shadowColor = '#00f';+ ctx.fillStyle = pattern;+ ctx.fillRect(0, -50, 100, 50);++ _assertPixelApprox(canvas, 50,25, 127,0,127,255, 2);+}, "Shadows are drawn correctly for partially-transparent fill patterns");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.htmlnew file mode 100644index 00000000000..ed134f92c62--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.shadow.pattern.transparent.1</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.shadow.pattern.transparent.1</h1>+<p class="desc">Shadows are not drawn for transparent fill patterns</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var response = await fetch('../../../../images/transparent.png')+ var blob = await response.blob();+ var img = await createImageBitmap(blob);+ var pattern = ctx.createPattern(img, 'repeat');+ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowColor = '#f00';+ ctx.shadowOffsetY = 50;+ ctx.fillStyle = pattern;+ ctx.fillRect(0, -50, 100, 50);++ _assertPixel(canvas, 50,25, 0,255,0,255);++}, "Shadows are not drawn for transparent fill patterns");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.worker.htmlnew file mode 100644index 00000000000..43bb6e74bc7--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.worker.jsnew file mode 100644index 00000000000..af079851e62--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.worker.js@@ -0,0 +1,26 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.shadow.pattern.transparent.1+// Description:Shadows are not drawn for transparent fill patterns+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var response = await fetch('/images/transparent.png')+ var blob = await response.blob();+ var img = await createImageBitmap(blob);+ var pattern = ctx.createPattern(img, 'repeat');+ ctx.fillStyle = '#0f0';+ ctx.fillRect(0, 0, 100, 50);+ ctx.shadowColor = '#f00';+ ctx.shadowOffsetY = 50;+ ctx.fillStyle = pattern;+ ctx.fillRect(0, -50, 100, 50);++ _assertPixel(canvas, 50,25, 0,255,0,255);+}, "Shadows are not drawn for transparent fill patterns");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.absolute.spacing.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.absolute.spacing.htmlnew file mode 100644index 00000000000..c9c17861001--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.absolute.spacing.html@@ -0,0 +1,47 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.text.drawing.style.absolute.spacing</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.text.drawing.style.absolute.spacing</h1>+<p class="desc">Testing letter spacing and word spacing with absolute length</p>+++<script>+var t = async_test("Testing letter spacing and word spacing with absolute length");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");++ ctx.letterSpacing = '3px';+ _assertSame(ctx.letterSpacing, '3px', "ctx.letterSpacing", "'3px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");++ ctx.wordSpacing = '5px';+ _assertSame(ctx.letterSpacing, '3px', "ctx.letterSpacing", "'3px'");+ _assertSame(ctx.wordSpacing, '5px', "ctx.wordSpacing", "'5px'");++ ctx.letterSpacing = '-1px';+ ctx.wordSpacing = '-1px';+ _assertSame(ctx.letterSpacing, '-1px', "ctx.letterSpacing", "'-1px'");+ _assertSame(ctx.wordSpacing, '-1px', "ctx.wordSpacing", "'-1px'");++ ctx.letterSpacing = '1PX';+ ctx.wordSpacing = '10PX';+ _assertSame(ctx.letterSpacing, '1px', "ctx.letterSpacing", "'1px'");+ _assertSame(ctx.wordSpacing, '10px', "ctx.wordSpacing", "'10px'");+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.absolute.spacing.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.absolute.spacing.worker.htmlnew file mode 100644index 00000000000..4b6b4157137--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.absolute.spacing.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/text/2d.text.drawing.style.absolute.spacing.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.absolute.spacing.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.absolute.spacing.worker.jsnew file mode 100644index 00000000000..2b42b3e477e--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.absolute.spacing.worker.js@@ -0,0 +1,41 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.text.drawing.style.absolute.spacing+// Description:Testing letter spacing and word spacing with absolute length+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Testing letter spacing and word spacing with absolute length");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");++ ctx.letterSpacing = '3px';+ _assertSame(ctx.letterSpacing, '3px', "ctx.letterSpacing", "'3px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");++ ctx.wordSpacing = '5px';+ _assertSame(ctx.letterSpacing, '3px', "ctx.letterSpacing", "'3px'");+ _assertSame(ctx.wordSpacing, '5px', "ctx.wordSpacing", "'5px'");++ ctx.letterSpacing = '-1px';+ ctx.wordSpacing = '-1px';+ _assertSame(ctx.letterSpacing, '-1px', "ctx.letterSpacing", "'-1px'");+ _assertSame(ctx.wordSpacing, '-1px', "ctx.wordSpacing", "'-1px'");++ ctx.letterSpacing = '1PX';+ ctx.wordSpacing = '10PX';+ _assertSame(ctx.letterSpacing, '1px', "ctx.letterSpacing", "'1px'");+ _assertSame(ctx.wordSpacing, '10px', "ctx.wordSpacing", "'10px'");+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.font-relative.spacing.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.font-relative.spacing.htmlnew file mode 100644index 00000000000..610183bd167--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.font-relative.spacing.html@@ -0,0 +1,39 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.text.drawing.style.font-relative.spacing</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.text.drawing.style.font-relative.spacing</h1>+<p class="desc">Testing letter spacing and word spacing with font-relative length</p>+++<script>+var t = async_test("Testing letter spacing and word spacing with font-relative length");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");++ ctx.letterSpacing = '1EX';+ ctx.wordSpacing = '1EM';+ _assertSame(ctx.letterSpacing, '1ex', "ctx.letterSpacing", "'1ex'");+ _assertSame(ctx.wordSpacing, '1em', "ctx.wordSpacing", "'1em'");++ ctx.letterSpacing = '1ch';+ ctx.wordSpacing = '1ic';+ _assertSame(ctx.letterSpacing, '1ch', "ctx.letterSpacing", "'1ch'");+ _assertSame(ctx.wordSpacing, '1ic', "ctx.wordSpacing", "'1ic'");+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.font-relative.spacing.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.font-relative.spacing.worker.htmlnew file mode 100644index 00000000000..6bba913687d--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.font-relative.spacing.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/text/2d.text.drawing.style.font-relative.spacing.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.font-relative.spacing.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.font-relative.spacing.worker.jsnew file mode 100644index 00000000000..cd653208e8a--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.font-relative.spacing.worker.js@@ -0,0 +1,33 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.text.drawing.style.font-relative.spacing+// Description:Testing letter spacing and word spacing with font-relative length+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Testing letter spacing and word spacing with font-relative length");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");++ ctx.letterSpacing = '1EX';+ ctx.wordSpacing = '1EM';+ _assertSame(ctx.letterSpacing, '1ex', "ctx.letterSpacing", "'1ex'");+ _assertSame(ctx.wordSpacing, '1em', "ctx.wordSpacing", "'1em'");++ ctx.letterSpacing = '1ch';+ ctx.wordSpacing = '1ic';+ _assertSame(ctx.letterSpacing, '1ch', "ctx.letterSpacing", "'1ch'");+ _assertSame(ctx.wordSpacing, '1ic', "ctx.wordSpacing", "'1ic'");+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontKerning.with.uppercase.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontKerning.with.uppercase.htmlnew file mode 100644index 00000000000..9e00e2ad5e1--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontKerning.with.uppercase.html@@ -0,0 +1,59 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.text.drawing.style.fontKerning.with.uppercase</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.text.drawing.style.fontKerning.with.uppercase</h1>+<p class="desc">Testing basic functionalities of fontKerning for canvas</p>+++<script>+var t = async_test("Testing basic functionalities of fontKerning for canvas");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "Normal";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "normal";+ _assertSame(ctx.fontKerning, "normal", "ctx.fontKerning", "\"normal\"");+ ctx.fontKerning = "Auto";+ _assertSame(ctx.fontKerning, "normal", "ctx.fontKerning", "\"normal\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "noRmal";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "NoRMal";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "NORMAL";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");++ ctx.fontKerning = "None";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "none";+ _assertSame(ctx.fontKerning, "none", "ctx.fontKerning", "\"none\"");+ ctx.fontKerning = "Auto";+ _assertSame(ctx.fontKerning, "none", "ctx.fontKerning", "\"none\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "nOne";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "nonE";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "NONE";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontKerning.with.uppercase.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontKerning.with.uppercase.worker.htmlnew file mode 100644index 00000000000..a1aa951bc4f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontKerning.with.uppercase.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/text/2d.text.drawing.style.fontKerning.with.uppercase.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontKerning.with.uppercase.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontKerning.with.uppercase.worker.jsnew file mode 100644index 00000000000..4e0f32c6927--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontKerning.with.uppercase.worker.js@@ -0,0 +1,53 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.text.drawing.style.fontKerning.with.uppercase+// Description:Testing basic functionalities of fontKerning for canvas+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Testing basic functionalities of fontKerning for canvas");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "Normal";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "normal";+ _assertSame(ctx.fontKerning, "normal", "ctx.fontKerning", "\"normal\"");+ ctx.fontKerning = "Auto";+ _assertSame(ctx.fontKerning, "normal", "ctx.fontKerning", "\"normal\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "noRmal";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "NoRMal";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "NORMAL";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");++ ctx.fontKerning = "None";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "none";+ _assertSame(ctx.fontKerning, "none", "ctx.fontKerning", "\"none\"");+ ctx.fontKerning = "Auto";+ _assertSame(ctx.fontKerning, "none", "ctx.fontKerning", "\"none\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "nOne";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "nonE";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ ctx.fontKerning = "auto";+ ctx.fontKerning = "NONE";+ _assertSame(ctx.fontKerning, "auto", "ctx.fontKerning", "\"auto\"");+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontStretch.settings.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontStretch.settings.htmlnew file mode 100644index 00000000000..ee96a11c302--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontStretch.settings.html@@ -0,0 +1,83 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.text.drawing.style.fontStretch.settings</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.text.drawing.style.fontStretch.settings</h1>+<p class="desc">Testing value setting of fontStretch in Canvas</p>+++<script>+var t = async_test("Testing value setting of fontStretch in Canvas");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ // Setting fontStretch with lower cases+ ctx.fontStretch = "ultra-condensed";+ _assertSame(ctx.fontStretch, "ultra-condensed", "ctx.fontStretch", "\"ultra-condensed\"");++ ctx.fontStretch = "extra-condensed";+ _assertSame(ctx.fontStretch, "extra-condensed", "ctx.fontStretch", "\"extra-condensed\"");++ ctx.fontStretch = "condensed";+ _assertSame(ctx.fontStretch, "condensed", "ctx.fontStretch", "\"condensed\"");++ ctx.fontStretch = "semi-condensed";+ _assertSame(ctx.fontStretch, "semi-condensed", "ctx.fontStretch", "\"semi-condensed\"");++ ctx.fontStretch = "normal";+ _assertSame(ctx.fontStretch, "normal", "ctx.fontStretch", "\"normal\"");++ ctx.fontStretch = "semi-expanded";+ _assertSame(ctx.fontStretch, "semi-expanded", "ctx.fontStretch", "\"semi-expanded\"");++ ctx.fontStretch = "expanded";+ _assertSame(ctx.fontStretch, "expanded", "ctx.fontStretch", "\"expanded\"");++ ctx.fontStretch = "extra-expanded";+ _assertSame(ctx.fontStretch, "extra-expanded", "ctx.fontStretch", "\"extra-expanded\"");++ ctx.fontStretch = "ultra-expanded";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ // Setting fontStretch with lower cases and upper cases word,+ // these values should be ignored.+ ctx.fontStretch = "ulTra-condensed";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "Extra-condensed";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "cOndensed";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "Semi-Condensed";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "normaL";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "semi-Expanded";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "Expanded";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "eXtra-expanded";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "abcd";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontStretch.settings.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontStretch.settings.worker.htmlnew file mode 100644index 00000000000..da869c95707--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontStretch.settings.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/text/2d.text.drawing.style.fontStretch.settings.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontStretch.settings.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontStretch.settings.worker.jsnew file mode 100644index 00000000000..43eca790fe0--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontStretch.settings.worker.js@@ -0,0 +1,77 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.text.drawing.style.fontStretch.settings+// Description:Testing value setting of fontStretch in Canvas+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Testing value setting of fontStretch in Canvas");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ // Setting fontStretch with lower cases+ ctx.fontStretch = "ultra-condensed";+ _assertSame(ctx.fontStretch, "ultra-condensed", "ctx.fontStretch", "\"ultra-condensed\"");++ ctx.fontStretch = "extra-condensed";+ _assertSame(ctx.fontStretch, "extra-condensed", "ctx.fontStretch", "\"extra-condensed\"");++ ctx.fontStretch = "condensed";+ _assertSame(ctx.fontStretch, "condensed", "ctx.fontStretch", "\"condensed\"");++ ctx.fontStretch = "semi-condensed";+ _assertSame(ctx.fontStretch, "semi-condensed", "ctx.fontStretch", "\"semi-condensed\"");++ ctx.fontStretch = "normal";+ _assertSame(ctx.fontStretch, "normal", "ctx.fontStretch", "\"normal\"");++ ctx.fontStretch = "semi-expanded";+ _assertSame(ctx.fontStretch, "semi-expanded", "ctx.fontStretch", "\"semi-expanded\"");++ ctx.fontStretch = "expanded";+ _assertSame(ctx.fontStretch, "expanded", "ctx.fontStretch", "\"expanded\"");++ ctx.fontStretch = "extra-expanded";+ _assertSame(ctx.fontStretch, "extra-expanded", "ctx.fontStretch", "\"extra-expanded\"");++ ctx.fontStretch = "ultra-expanded";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ // Setting fontStretch with lower cases and upper cases word,+ // these values should be ignored.+ ctx.fontStretch = "ulTra-condensed";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "Extra-condensed";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "cOndensed";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "Semi-Condensed";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "normaL";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "semi-Expanded";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "Expanded";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "eXtra-expanded";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");++ ctx.fontStretch = "abcd";+ _assertSame(ctx.fontStretch, "ultra-expanded", "ctx.fontStretch", "\"ultra-expanded\"");+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontVariant.settings.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontVariant.settings.htmlnew file mode 100644index 00000000000..aece4f6c214--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontVariant.settings.html@@ -0,0 +1,80 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.text.drawing.style.fontVariant.settings</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.text.drawing.style.fontVariant.settings</h1>+<p class="desc">Testing basic functionalities of fontVariant for canvas</p>+++<script>+var t = async_test("Testing basic functionalities of fontVariant for canvas");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ // Setting fontVariantCaps with lower cases+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "normal";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "small-caps";+ _assertSame(ctx.fontVariantCaps, "small-caps", "ctx.fontVariantCaps", "\"small-caps\"");++ ctx.fontVariantCaps = "all-small-caps";+ _assertSame(ctx.fontVariantCaps, "all-small-caps", "ctx.fontVariantCaps", "\"all-small-caps\"");++ ctx.fontVariantCaps = "petite-caps";+ _assertSame(ctx.fontVariantCaps, "petite-caps", "ctx.fontVariantCaps", "\"petite-caps\"");++ ctx.fontVariantCaps = "all-petite-caps";+ _assertSame(ctx.fontVariantCaps, "all-petite-caps", "ctx.fontVariantCaps", "\"all-petite-caps\"");++ ctx.fontVariantCaps = "unicase";+ _assertSame(ctx.fontVariantCaps, "unicase", "ctx.fontVariantCaps", "\"unicase\"");++ ctx.fontVariantCaps = "titling-caps";+ _assertSame(ctx.fontVariantCaps, "titling-caps", "ctx.fontVariantCaps", "\"titling-caps\"");++ // Setting fontVariantCaps with mixed-case values is not valid+ ctx.fontVariantCaps = "nORmal";+ _assertSame(ctx.fontVariantCaps, "titling-caps", "ctx.fontVariantCaps", "\"titling-caps\"");++ ctx.fontVariantCaps = "normal";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "smaLL-caps";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "all-small-CAPS";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "pEtitE-caps";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "All-Petite-Caps";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "uNIcase";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "titling-CAPS";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ // Setting fontVariantCaps with non-existing font variant.+ ctx.fontVariantCaps = "titling-caps";+ ctx.fontVariantCaps = "abcd";+ _assertSame(ctx.fontVariantCaps, "titling-caps", "ctx.fontVariantCaps", "\"titling-caps\"");+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontVariant.settings.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontVariant.settings.worker.htmlnew file mode 100644index 00000000000..7ad813822fb--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontVariant.settings.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/text/2d.text.drawing.style.fontVariant.settings.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontVariant.settings.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontVariant.settings.worker.jsnew file mode 100644index 00000000000..30c78388ae4--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.fontVariant.settings.worker.js@@ -0,0 +1,74 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.text.drawing.style.fontVariant.settings+// Description:Testing basic functionalities of fontVariant for canvas+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Testing basic functionalities of fontVariant for canvas");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ // Setting fontVariantCaps with lower cases+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "normal";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "small-caps";+ _assertSame(ctx.fontVariantCaps, "small-caps", "ctx.fontVariantCaps", "\"small-caps\"");++ ctx.fontVariantCaps = "all-small-caps";+ _assertSame(ctx.fontVariantCaps, "all-small-caps", "ctx.fontVariantCaps", "\"all-small-caps\"");++ ctx.fontVariantCaps = "petite-caps";+ _assertSame(ctx.fontVariantCaps, "petite-caps", "ctx.fontVariantCaps", "\"petite-caps\"");++ ctx.fontVariantCaps = "all-petite-caps";+ _assertSame(ctx.fontVariantCaps, "all-petite-caps", "ctx.fontVariantCaps", "\"all-petite-caps\"");++ ctx.fontVariantCaps = "unicase";+ _assertSame(ctx.fontVariantCaps, "unicase", "ctx.fontVariantCaps", "\"unicase\"");++ ctx.fontVariantCaps = "titling-caps";+ _assertSame(ctx.fontVariantCaps, "titling-caps", "ctx.fontVariantCaps", "\"titling-caps\"");++ // Setting fontVariantCaps with mixed-case values is not valid+ ctx.fontVariantCaps = "nORmal";+ _assertSame(ctx.fontVariantCaps, "titling-caps", "ctx.fontVariantCaps", "\"titling-caps\"");++ ctx.fontVariantCaps = "normal";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "smaLL-caps";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "all-small-CAPS";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "pEtitE-caps";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "All-Petite-Caps";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "uNIcase";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ ctx.fontVariantCaps = "titling-CAPS";+ _assertSame(ctx.fontVariantCaps, "normal", "ctx.fontVariantCaps", "\"normal\"");++ // Setting fontVariantCaps with non-existing font variant.+ ctx.fontVariantCaps = "titling-caps";+ ctx.fontVariantCaps = "abcd";+ _assertSame(ctx.fontVariantCaps, "titling-caps", "ctx.fontVariantCaps", "\"titling-caps\"");+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.invalid.spacing.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.invalid.spacing.htmlnew file mode 100644index 00000000000..639458329ce--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.invalid.spacing.html@@ -0,0 +1,44 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.text.drawing.style.invalid.spacing</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.text.drawing.style.invalid.spacing</h1>+<p class="desc">Testing letter spacing and word spacing with invalid units</p>+++<script>+var t = async_test("Testing letter spacing and word spacing with invalid units");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");++ function test_word_spacing(value) {+ ctx.wordSpacing = value;+ ctx.letterSpacing = value;+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ }+ test_word_spacing('0s');+ test_word_spacing('1min');+ test_word_spacing('1deg');+ test_word_spacing('1pp');+ test_word_spacing('initial');+ test_word_spacing('inherit');+ test_word_spacing('normal');+ test_word_spacing('none');+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.invalid.spacing.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.invalid.spacing.worker.htmlnew file mode 100644index 00000000000..4f43624707f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.invalid.spacing.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/text/2d.text.drawing.style.invalid.spacing.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.invalid.spacing.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.invalid.spacing.worker.jsnew file mode 100644index 00000000000..06207b2c6c6--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.invalid.spacing.worker.js@@ -0,0 +1,38 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.text.drawing.style.invalid.spacing+// Description:Testing letter spacing and word spacing with invalid units+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Testing letter spacing and word spacing with invalid units");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");++ function test_word_spacing(value) {+ ctx.wordSpacing = value;+ ctx.letterSpacing = value;+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ }+ test_word_spacing('0s');+ test_word_spacing('1min');+ test_word_spacing('1deg');+ test_word_spacing('1pp');+ test_word_spacing('initial');+ test_word_spacing('inherit');+ test_word_spacing('normal');+ test_word_spacing('none');+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.htmlnew file mode 100644index 00000000000..a97b57b622c--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.html@@ -0,0 +1,47 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.text.drawing.style.letterSpacing.change.font</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.text.drawing.style.letterSpacing.change.font</h1>+<p class="desc">Set letter spacing and word spacing to font dependent value and verify it works after font change.</p>+++<script>+var t = async_test("Set letter spacing and word spacing to font dependent value and verify it works after font change.");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ // Get the width for 'Hello World' at default size, 10px.+ var width_normal = ctx.measureText('Hello World').width;++ ctx.letterSpacing = '1em';+ _assertSame(ctx.letterSpacing, '1em', "ctx.letterSpacing", "'1em'");+ // 1em = 10px. Add 10px after each letter in "Hello World",+ // makes it 110px longer.+ var width_with_spacing = ctx.measureText('Hello World').width;+ assert_approx_equals(width_with_spacing, width_normal + 110, 0.1, "letter-spacing error");++ // Changing font to 20px. Without resetting the spacing, 1em letterSpacing+ // is now 20px, so it's suppose to be 220px longer without any letterSpacing set.+ ctx.font = '20px serif';+ width_with_spacing = ctx.measureText('Hello World').width;+ // Now calculate the reference spacing for "Hello World" with no spacing.+ ctx.letterSpacing = '0em';+ width_normal = ctx.measureText('Hello World').width;+ assert_approx_equals(width_with_spacing, width_normal + 220, 0.1, "letter-spacing error after font change");+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.worker.htmlnew file mode 100644index 00000000000..eaf68d4a2b9--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.worker.jsnew file mode 100644index 00000000000..510845c885a--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.worker.js@@ -0,0 +1,41 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.text.drawing.style.letterSpacing.change.font+// Description:Set letter spacing and word spacing to font dependent value and verify it works after font change.+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Set letter spacing and word spacing to font dependent value and verify it works after font change.");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ // Get the width for 'Hello World' at default size, 10px.+ var width_normal = ctx.measureText('Hello World').width;++ ctx.letterSpacing = '1em';+ _assertSame(ctx.letterSpacing, '1em', "ctx.letterSpacing", "'1em'");+ // 1em = 10px. Add 10px after each letter in "Hello World",+ // makes it 110px longer.+ var width_with_spacing = ctx.measureText('Hello World').width;+ assert_approx_equals(width_with_spacing, width_normal + 110, 0.1, "letter-spacing error");++ // Changing font to 20px. Without resetting the spacing, 1em letterSpacing+ // is now 20px, so it's suppose to be 220px longer without any letterSpacing set.+ ctx.font = '20px serif';+ width_with_spacing = ctx.measureText('Hello World').width;+ // Now calculate the reference spacing for "Hello World" with no spacing.+ ctx.letterSpacing = '0em';+ width_normal = ctx.measureText('Hello World').width;+ assert_approx_equals(width_with_spacing, width_normal + 220, 0.1, "letter-spacing error after font change");+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.measure.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.measure.htmlnew file mode 100644index 00000000000..f22b4e763cb--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.measure.html@@ -0,0 +1,56 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.text.drawing.style.letterSpacing.measure</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.text.drawing.style.letterSpacing.measure</h1>+<p class="desc">Testing letter spacing with different length units</p>+++<script>+var t = async_test("Testing letter spacing with different length units");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ var width_normal = ctx.measureText('Hello World').width;++ function test_letter_spacing(value, difference_spacing, epsilon) {+ ctx.letterSpacing = value;+ _assertSame(ctx.letterSpacing, value, "ctx.letterSpacing", "value");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ width_with_letter_spacing = ctx.measureText('Hello World').width;+ assert_approx_equals(width_with_letter_spacing, width_normal + difference_spacing, epsilon, "letter spacing doesn't work.");+ }++ // The first value is the letter Spacing to be set, the second value the+ // change in length of string 'Hello World', note that there are 11 letters+ // in 'hello world', so the length difference is always letterSpacing * 11.+ // and the third value is the acceptable differencee for the length change,+ // note that unit such as 1cm/1mm doesn't map to an exact pixel value.+ test_cases = [['3px', 33, 0.1],+ ['5px', 55, 0.1],+ ['-2px', -22, 0.1],+ ['1em', 110, 0.1],+ ['-0.1em', -11, 0.1],+ ['1in', 1056, 0.1],+ ['-0.1cm', -41.65, 0.2],+ ['-0.6mm', -24.95, 0.2]]++ for (const test_case of test_cases) {+ test_letter_spacing(test_case[0], test_case[1], test_case[2]);+ }+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.measure.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.measure.worker.htmlnew file mode 100644index 00000000000..1e6102dbd88--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.measure.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.measure.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.measure.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.measure.worker.jsnew file mode 100644index 00000000000..eaa04106e9a--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.measure.worker.js@@ -0,0 +1,50 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.text.drawing.style.letterSpacing.measure+// Description:Testing letter spacing with different length units+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Testing letter spacing with different length units");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ var width_normal = ctx.measureText('Hello World').width;++ function test_letter_spacing(value, difference_spacing, epsilon) {+ ctx.letterSpacing = value;+ _assertSame(ctx.letterSpacing, value, "ctx.letterSpacing", "value");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ width_with_letter_spacing = ctx.measureText('Hello World').width;+ assert_approx_equals(width_with_letter_spacing, width_normal + difference_spacing, epsilon, "letter spacing doesn't work.");+ }++ // The first value is the letter Spacing to be set, the second value the+ // change in length of string 'Hello World', note that there are 11 letters+ // in 'hello world', so the length difference is always letterSpacing * 11.+ // and the third value is the acceptable differencee for the length change,+ // note that unit such as 1cm/1mm doesn't map to an exact pixel value.+ test_cases = [['3px', 33, 0.1],+ ['5px', 55, 0.1],+ ['-2px', -22, 0.1],+ ['1em', 110, 0.1],+ ['-0.1em', -11, 0.1],+ ['1in', 1056, 0.1],+ ['-0.1cm', -41.65, 0.2],+ ['-0.6mm', -24.95, 0.2]]++ for (const test_case of test_cases) {+ test_letter_spacing(test_case[0], test_case[1], test_case[2]);+ }+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.direction.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.direction.htmlnew file mode 100644index 00000000000..589155d8e90--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.direction.html@@ -0,0 +1,34 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.text.drawing.style.measure.direction</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.text.drawing.style.measure.direction</h1>+<p class="desc">Measurement should follow text direction</p>+++<script>+var t = async_test("Measurement should follow text direction");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.direction = "ltr";+ metrics = ctx.measureText('hello');+ _assert(metrics.actualBoundingBoxLeft < metrics.actualBoundingBoxRight, "metrics.actualBoundingBoxLeft < metrics.actualBoundingBoxRight");++ ctx.direction = "rtl";+ metrics = ctx.measureText('hello');+ _assert(metrics.actualBoundingBoxLeft > metrics.actualBoundingBoxRight, "metrics.actualBoundingBoxLeft > metrics.actualBoundingBoxRight");+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.direction.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.direction.worker.htmlnew file mode 100644index 00000000000..811de389075--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.direction.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/text/2d.text.drawing.style.measure.direction.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.direction.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.direction.worker.jsnew file mode 100644index 00000000000..852f372101e--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.direction.worker.js@@ -0,0 +1,28 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.text.drawing.style.measure.direction+// Description:Measurement should follow text direction+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Measurement should follow text direction");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.direction = "ltr";+ metrics = ctx.measureText('hello');+ _assert(metrics.actualBoundingBoxLeft < metrics.actualBoundingBoxRight, "metrics.actualBoundingBoxLeft < metrics.actualBoundingBoxRight");++ ctx.direction = "rtl";+ metrics = ctx.measureText('hello');+ _assert(metrics.actualBoundingBoxLeft > metrics.actualBoundingBoxRight, "metrics.actualBoundingBoxLeft > metrics.actualBoundingBoxRight");+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.textAlign.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.textAlign.htmlnew file mode 100644index 00000000000..86a4ba199d8--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.textAlign.html@@ -0,0 +1,34 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.text.drawing.style.measure.textAlign</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.text.drawing.style.measure.textAlign</h1>+<p class="desc">Measurement should be related to textAlignment</p>+++<script>+var t = async_test("Measurement should be related to textAlignment");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.textAlign = "right";+ metrics = ctx.measureText('hello');+ _assert(metrics.actualBoundingBoxLeft > metrics.actualBoundingBoxRight, "metrics.actualBoundingBoxLeft > metrics.actualBoundingBoxRight");++ ctx.textAlign = "left"+ metrics = ctx.measureText('hello');+ _assert(metrics.actualBoundingBoxLeft < metrics.actualBoundingBoxRight, "metrics.actualBoundingBoxLeft < metrics.actualBoundingBoxRight");+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.textAlign.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.textAlign.worker.htmlnew file mode 100644index 00000000000..127506fdf32--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.textAlign.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/text/2d.text.drawing.style.measure.textAlign.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.textAlign.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.textAlign.worker.jsnew file mode 100644index 00000000000..bc6f167be5b--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.measure.textAlign.worker.js@@ -0,0 +1,28 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.text.drawing.style.measure.textAlign+// Description:Measurement should be related to textAlignment+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Measurement should be related to textAlignment");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ ctx.textAlign = "right";+ metrics = ctx.measureText('hello');+ _assert(metrics.actualBoundingBoxLeft > metrics.actualBoundingBoxRight, "metrics.actualBoundingBoxLeft > metrics.actualBoundingBoxRight");++ ctx.textAlign = "left"+ metrics = ctx.measureText('hello');+ _assert(metrics.actualBoundingBoxLeft < metrics.actualBoundingBoxRight, "metrics.actualBoundingBoxLeft < metrics.actualBoundingBoxRight");+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.nonfinite.spacing.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.nonfinite.spacing.htmlnew file mode 100644index 00000000000..d225f82a6e4--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.nonfinite.spacing.html@@ -0,0 +1,39 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.text.drawing.style.nonfinite.spacing</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.text.drawing.style.nonfinite.spacing</h1>+<p class="desc">Testing letter spacing and word spacing with nonfinite inputs</p>+++<script>+var t = async_test("Testing letter spacing and word spacing with nonfinite inputs");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");++ function test_word_spacing(value) {+ ctx.wordSpacing = value;+ ctx.letterSpacing = value;+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ }+ test_word_spacing(NaN);+ test_word_spacing(Infinity);+ test_word_spacing(-Infinity);+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.nonfinite.spacing.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.nonfinite.spacing.worker.htmlnew file mode 100644index 00000000000..737cf4ac393--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.nonfinite.spacing.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/text/2d.text.drawing.style.nonfinite.spacing.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.nonfinite.spacing.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.nonfinite.spacing.worker.jsnew file mode 100644index 00000000000..4cf20b28c07--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.nonfinite.spacing.worker.js@@ -0,0 +1,33 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.text.drawing.style.nonfinite.spacing+// Description:Testing letter spacing and word spacing with nonfinite inputs+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Testing letter spacing and word spacing with nonfinite inputs");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");++ function test_word_spacing(value) {+ ctx.wordSpacing = value;+ ctx.letterSpacing = value;+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ }+ test_word_spacing(NaN);+ test_word_spacing(Infinity);+ test_word_spacing(-Infinity);+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.textRendering.settings.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.textRendering.settings.htmlnew file mode 100644index 00000000000..4e2444ee12d--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.textRendering.settings.html@@ -0,0 +1,82 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.text.drawing.style.textRendering.settings</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.text.drawing.style.textRendering.settings</h1>+<p class="desc">Testing basic functionalities of textRendering in Canvas</p>+++<script>+var t = async_test("Testing basic functionalities of textRendering in Canvas");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ // Setting textRendering with correct case.+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "optimizeSpeed";+ _assertSame(ctx.textRendering, "optimizeSpeed", "ctx.textRendering", "\"optimizeSpeed\"");++ ctx.textRendering = "optimizeLegibility";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "geometricPrecision";+ _assertSame(ctx.textRendering, "geometricPrecision", "ctx.textRendering", "\"geometricPrecision\"");++ ctx.textRendering = "auto";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ // Setting textRendering with incorrect case is ignored.+ ctx.textRendering = "OPtimizeSpeed";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "OPtimizELEgibility";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "GeometricPrecision";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "optimizespeed";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "optimizelegibility";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "geometricprecision";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "optimizeLegibility";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "AUTO";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "Auto";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ // Setting textRendering with non-existing font variant.+ ctx.textRendering = "abcd";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "normal";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "auto";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.textRendering.settings.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.textRendering.settings.worker.htmlnew file mode 100644index 00000000000..53703066d62--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.textRendering.settings.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/text/2d.text.drawing.style.textRendering.settings.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.textRendering.settings.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.textRendering.settings.worker.jsnew file mode 100644index 00000000000..a4381963f7b--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.textRendering.settings.worker.js@@ -0,0 +1,76 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.text.drawing.style.textRendering.settings+// Description:Testing basic functionalities of textRendering in Canvas+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Testing basic functionalities of textRendering in Canvas");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ // Setting textRendering with correct case.+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "optimizeSpeed";+ _assertSame(ctx.textRendering, "optimizeSpeed", "ctx.textRendering", "\"optimizeSpeed\"");++ ctx.textRendering = "optimizeLegibility";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "geometricPrecision";+ _assertSame(ctx.textRendering, "geometricPrecision", "ctx.textRendering", "\"geometricPrecision\"");++ ctx.textRendering = "auto";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ // Setting textRendering with incorrect case is ignored.+ ctx.textRendering = "OPtimizeSpeed";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "OPtimizELEgibility";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "GeometricPrecision";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "optimizespeed";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "optimizelegibility";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "geometricprecision";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");++ ctx.textRendering = "optimizeLegibility";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "AUTO";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "Auto";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ // Setting textRendering with non-existing font variant.+ ctx.textRendering = "abcd";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "normal";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "";+ _assertSame(ctx.textRendering, "optimizeLegibility", "ctx.textRendering", "\"optimizeLegibility\"");++ ctx.textRendering = "auto";+ _assertSame(ctx.textRendering, "auto", "ctx.textRendering", "\"auto\"");+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.htmlnew file mode 100644index 00000000000..692dba44db4--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.html@@ -0,0 +1,47 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.text.drawing.style.wordSpacing.change.font</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.text.drawing.style.wordSpacing.change.font</h1>+<p class="desc">Set word spacing and word spacing to font dependent value and verify it works after font change.</p>+++<script>+var t = async_test("Set word spacing and word spacing to font dependent value and verify it works after font change.");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ // Get the width for 'Hello World, again' at default size, 10px.+ var width_normal = ctx.measureText('Hello World, again').width;++ ctx.wordSpacing = '1em';+ _assertSame(ctx.wordSpacing, '1em', "ctx.wordSpacing", "'1em'");+ // 1em = 10px. Add 10px after each word in "Hello World, again",+ // makes it 20px longer.+ var width_with_spacing = ctx.measureText('Hello World, again').width;+ _assertSame(width_with_spacing, width_normal + 20, "width_with_spacing", "width_normal + 20");++ // Changing font to 20px. Without resetting the spacing, 1em wordSpacing+ // is now 20px, so it's suppose to be 40px longer without any wordSpacing set.+ ctx.font = '20px serif';+ width_with_spacing = ctx.measureText('Hello World, again').width;+ // Now calculate the reference spacing for "Hello World, again" with no spacing.+ ctx.wordSpacing = '0em';+ width_normal = ctx.measureText('Hello World, again').width;+ _assertSame(width_with_spacing, width_normal + 40, "width_with_spacing", "width_normal + 40");+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.worker.htmlnew file mode 100644index 00000000000..4a8540a5bcf--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.worker.jsnew file mode 100644index 00000000000..e1415ea2873--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.worker.js@@ -0,0 +1,41 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.text.drawing.style.wordSpacing.change.font+// Description:Set word spacing and word spacing to font dependent value and verify it works after font change.+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Set word spacing and word spacing to font dependent value and verify it works after font change.");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ // Get the width for 'Hello World, again' at default size, 10px.+ var width_normal = ctx.measureText('Hello World, again').width;++ ctx.wordSpacing = '1em';+ _assertSame(ctx.wordSpacing, '1em', "ctx.wordSpacing", "'1em'");+ // 1em = 10px. Add 10px after each word in "Hello World, again",+ // makes it 20px longer.+ var width_with_spacing = ctx.measureText('Hello World, again').width;+ _assertSame(width_with_spacing, width_normal + 20, "width_with_spacing", "width_normal + 20");++ // Changing font to 20px. Without resetting the spacing, 1em wordSpacing+ // is now 20px, so it's suppose to be 40px longer without any wordSpacing set.+ ctx.font = '20px serif';+ width_with_spacing = ctx.measureText('Hello World, again').width;+ // Now calculate the reference spacing for "Hello World, again" with no spacing.+ ctx.wordSpacing = '0em';+ width_normal = ctx.measureText('Hello World, again').width;+ _assertSame(width_with_spacing, width_normal + 40, "width_with_spacing", "width_normal + 40");+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.measure.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.measure.htmlnew file mode 100644index 00000000000..fa2b70ccac7--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.measure.html@@ -0,0 +1,56 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.text.drawing.style.wordSpacing.measure</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.text.drawing.style.wordSpacing.measure</h1>+<p class="desc">Testing word spacing with different length units</p>+++<script>+var t = async_test("Testing word spacing with different length units");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ var width_normal = ctx.measureText('Hello World, again').width;++ function test_word_spacing(value, difference_spacing, epsilon) {+ ctx.wordSpacing = value;+ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, value, "ctx.wordSpacing", "value");+ width_with_word_spacing = ctx.measureText('Hello World, again').width;+ assert_approx_equals(width_with_word_spacing, width_normal + difference_spacing, epsilon, "word spacing doesn't work.");+ }++ // The first value is the word Spacing to be set, the second value the+ // change in length of string 'Hello World', note that there are 2 words+ // in 'Hello World, again', so the length difference is always wordSpacing * 2.+ // and the third value is the acceptable differencee for the length change,+ // note that unit such as 1cm/1mm doesn't map to an exact pixel value.+ test_cases = [['3px', 6, 0.1],+ ['5px', 10, 0.1],+ ['-2px', -4, 0.1],+ ['1em', 20, 0.1],+ ['-0.5em', -10, 0.1],+ ['1in', 192, 0.1],+ ['-0.1cm', -7.57, 0.2],+ ['-0.6mm', -4.54, 0.2]]++ for (const test_case of test_cases) {+ test_word_spacing(test_case[0], test_case[1], test_case[2]);+ }+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.measure.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.measure.worker.htmlnew file mode 100644index 00000000000..8ff6eefcf6d--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.measure.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.measure.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.measure.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.measure.worker.jsnew file mode 100644index 00000000000..b7acecb0ebb--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.measure.worker.js@@ -0,0 +1,50 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.text.drawing.style.wordSpacing.measure+// Description:Testing word spacing with different length units+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("Testing word spacing with different length units");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, '0px', "ctx.wordSpacing", "'0px'");+ var width_normal = ctx.measureText('Hello World, again').width;++ function test_word_spacing(value, difference_spacing, epsilon) {+ ctx.wordSpacing = value;+ _assertSame(ctx.letterSpacing, '0px', "ctx.letterSpacing", "'0px'");+ _assertSame(ctx.wordSpacing, value, "ctx.wordSpacing", "value");+ width_with_word_spacing = ctx.measureText('Hello World, again').width;+ assert_approx_equals(width_with_word_spacing, width_normal + difference_spacing, epsilon, "word spacing doesn't work.");+ }++ // The first value is the word Spacing to be set, the second value the+ // change in length of string 'Hello World', note that there are 2 words+ // in 'Hello World, again', so the length difference is always wordSpacing * 2.+ // and the third value is the acceptable differencee for the length change,+ // note that unit such as 1cm/1mm doesn't map to an exact pixel value.+ test_cases = [['3px', 6, 0.1],+ ['5px', 10, 0.1],+ ['-2px', -4, 0.1],+ ['1em', 20, 0.1],+ ['-0.5em', -10, 0.1],+ ['1in', 192, 0.1],+ ['-0.1cm', -7.57, 0.2],+ ['-0.6mm', -4.54, 0.2]]++ for (const test_case of test_cases) {+ test_word_spacing(test_case[0], test_case[1], test_case[2]);+ }+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.lang.default.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.lang.default.htmlnew file mode 100644index 00000000000..d12764b56a4--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.lang.default.html@@ -0,0 +1,28 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.text.lang.default</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.text.lang.default</h1>+<p class="desc"></p>+++<script>+var t = async_test("");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.lang, 'inherit', "ctx.lang", "'inherit'");+ t.done();++});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.lang.default.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.lang.default.worker.htmlnew file mode 100644index 00000000000..8b8d43c0ce9--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.lang.default.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/text/2d.text.lang.default.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.lang.default.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.lang.default.worker.jsnew file mode 100644index 00000000000..08a29cce4b4--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.lang.default.worker.js@@ -0,0 +1,22 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.text.lang.default+// Description:+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++var t = async_test("");+var t_pass = t.done.bind(t);+var t_fail = t.step_func(function(reason) {+ throw reason;+});+t.step(function() {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ _assertSame(ctx.lang, 'inherit', "ctx.lang", "'inherit'");+ t.done();+});+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.htmlnew file mode 100644index 00000000000..7f26a316fcb--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.html@@ -0,0 +1,51 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.text.measure.actualBoundingBox</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.text.measure.actualBoundingBox</h1>+<p class="desc">Testing actualBoundingBox</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var f = new FontFace("CanvasTest", "url('/fonts/CanvasTest.ttf')");+ f.load();+ document.fonts.add(f);+ await document.fonts.ready;+ ctx.font = '50px CanvasTest';+ ctx.direction = 'ltr';+ ctx.align = 'left'+ ctx.baseline = 'alphabetic'+ // Different platforms may render text slightly different.+ // Values that are nominally expected to be zero might actually vary by a+ // pixel or so if the UA accounts for antialiasing at glyph edges, so we+ // allow a slight deviation.+ _assert(Math.abs(ctx.measureText('A').actualBoundingBoxLeft) <= 1, "Math.abs(ctx.measureText('A').actualBoundingBoxLeft) <= 1");+ _assert(ctx.measureText('A').actualBoundingBoxRight >= 50, "ctx.measureText('A').actualBoundingBoxRight >= 50");+ _assert(ctx.measureText('A').actualBoundingBoxAscent >= 35, "ctx.measureText('A').actualBoundingBoxAscent >= 35");+ _assert(Math.abs(ctx.measureText('A').actualBoundingBoxDescent) <= 1, "Math.abs(ctx.measureText('A').actualBoundingBoxDescent) <= 1");++ _assert(ctx.measureText('D').actualBoundingBoxLeft >= 48, "ctx.measureText('D').actualBoundingBoxLeft >= 48");+ _assert(ctx.measureText('D').actualBoundingBoxLeft <= 52, "ctx.measureText('D').actualBoundingBoxLeft <= 52");+ _assert(ctx.measureText('D').actualBoundingBoxRight >= 75, "ctx.measureText('D').actualBoundingBoxRight >= 75");+ _assert(ctx.measureText('D').actualBoundingBoxRight <= 80, "ctx.measureText('D').actualBoundingBoxRight <= 80");+ _assert(ctx.measureText('D').actualBoundingBoxAscent >= 35, "ctx.measureText('D').actualBoundingBoxAscent >= 35");+ _assert(ctx.measureText('D').actualBoundingBoxAscent <= 40, "ctx.measureText('D').actualBoundingBoxAscent <= 40");+ _assert(ctx.measureText('D').actualBoundingBoxDescent >= 12, "ctx.measureText('D').actualBoundingBoxDescent >= 12");+ _assert(ctx.measureText('D').actualBoundingBoxDescent <= 15, "ctx.measureText('D').actualBoundingBoxDescent <= 15");++ _assert(Math.abs(ctx.measureText('ABCD').actualBoundingBoxLeft) <= 1, "Math.abs(ctx.measureText('ABCD').actualBoundingBoxLeft) <= 1");+ _assert(ctx.measureText('ABCD').actualBoundingBoxRight >= 200, "ctx.measureText('ABCD').actualBoundingBoxRight >= 200");+ _assert(ctx.measureText('ABCD').actualBoundingBoxAscent >= 85, "ctx.measureText('ABCD').actualBoundingBoxAscent >= 85");+ _assert(ctx.measureText('ABCD').actualBoundingBoxDescent >= 37, "ctx.measureText('ABCD').actualBoundingBoxDescent >= 37");++}, "Testing actualBoundingBox");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.htmlnew file mode 100644index 00000000000..667ecfb76d3--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.html@@ -0,0 +1,43 @@+<!DOCTYPE html>+<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->+<meta charset="UTF-8">+<title>OffscreenCanvas test: 2d.text.measure.actualBoundingBox.whitespace</title>+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<script src="../../../../html/canvas/resources/canvas-tests.js"></script>++<h1>2d.text.measure.actualBoundingBox.whitespace</h1>+<p class="desc">Testing actualBoundingBox with leading/trailing whitespace</p>+++<script>+promise_test(async t => {++ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var f = new FontFace("CanvasTest", "url('/fonts/CanvasTest.ttf')");+ f.load();+ document.fonts.add(f);+ await document.fonts.ready;+ ctx.font = '50px CanvasTest';+ ctx.direction = 'ltr';+ ctx.align = 'left'+ ctx.baseline = 'alphabetic'+ // Different platforms may render text slightly different.+ // Values that are nominally expected to be zero might actually vary by a+ // pixel or so if the UA accounts for antialiasing at glyph edges, so we+ // allow a slight deviation.+ var whitespaces = [0x9, 0xa, 0xc, 0xd, 0x20, 0x3000];+ for (var codepoint of whitespaces) {+ let whitespace = String.fromCharCode(codepoint);++ _assert(Math.abs(ctx.measureText('A' + whitespace).actualBoundingBoxLeft) <= 1, "Math.abs(ctx.measureText('A' + whitespace).actualBoundingBoxLeft) <= 1");+ _assert(ctx.measureText('A' + whitespace).actualBoundingBoxRight >= 50, "ctx.measureText('A' + whitespace).actualBoundingBoxRight >= 50");++ _assert(Math.abs(ctx.measureText(whitespace + 'A').actualBoundingBoxLeft) >= 49, "Math.abs(ctx.measureText(whitespace + 'A').actualBoundingBoxLeft) >= 49");+ _assert(ctx.measureText(whitespace + 'A').actualBoundingBoxRight <= 101, "ctx.measureText(whitespace + 'A').actualBoundingBoxRight <= 101");+ }++}, "Testing actualBoundingBox with leading/trailing whitespace");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.worker.htmlnew file mode 100644index 00000000000..173170eb514--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.worker.jsnew file mode 100644index 00000000000..e3b74443e42--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.worker.js@@ -0,0 +1,36 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.text.measure.actualBoundingBox.whitespace+// Description:Testing actualBoundingBox with leading/trailing whitespace+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var f = new FontFace("CanvasTest", "url('/fonts/CanvasTest.ttf')");+ f.load();+ self.fonts.add(f);+ await self.fonts.ready;+ ctx.font = '50px CanvasTest';+ ctx.direction = 'ltr';+ ctx.align = 'left'+ ctx.baseline = 'alphabetic'+ // Different platforms may render text slightly different.+ // Values that are nominally expected to be zero might actually vary by a+ // pixel or so if the UA accounts for antialiasing at glyph edges, so we+ // allow a slight deviation.+ var whitespaces = [0x9, 0xa, 0xc, 0xd, 0x20, 0x3000];+ for (var codepoint of whitespaces) {+ let whitespace = String.fromCharCode(codepoint);++ _assert(Math.abs(ctx.measureText('A' + whitespace).actualBoundingBoxLeft) <= 1, "Math.abs(ctx.measureText('A' + whitespace).actualBoundingBoxLeft) <= 1");+ _assert(ctx.measureText('A' + whitespace).actualBoundingBoxRight >= 50, "ctx.measureText('A' + whitespace).actualBoundingBoxRight >= 50");++ _assert(Math.abs(ctx.measureText(whitespace + 'A').actualBoundingBoxLeft) >= 49, "Math.abs(ctx.measureText(whitespace + 'A').actualBoundingBoxLeft) >= 49");+ _assert(ctx.measureText(whitespace + 'A').actualBoundingBoxRight <= 101, "ctx.measureText(whitespace + 'A').actualBoundingBoxRight <= 101");+ }+}, "Testing actualBoundingBox with leading/trailing whitespace");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.worker.html b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.worker.htmlnew file mode 100644index 00000000000..01424ea30bc--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.worker.html@@ -0,0 +1,9 @@+<!doctype html>+<meta charset=utf-8>++<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<div id=log></div>+<script>+fetch_tests_from_worker(new Worker("../../../../html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.worker.js"));+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.worker.js b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.worker.jsnew file mode 100644index 00000000000..aaec2e7e8e0--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.worker.js@@ -0,0 +1,44 @@+// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.+// OffscreenCanvas test in a worker:2d.text.measure.actualBoundingBox+// Description:Testing actualBoundingBox+// Note:++importScripts("/resources/testharness.js");+importScripts("/html/canvas/resources/canvas-tests.js");++promise_test(async t => {+ var canvas = new OffscreenCanvas(100, 50);+ var ctx = canvas.getContext('2d');++ var f = new FontFace("CanvasTest", "url('/fonts/CanvasTest.ttf')");+ f.load();+ self.fonts.add(f);+ await self.fonts.ready;+ ctx.font = '50px CanvasTest';+ ctx.direction = 'ltr';+ ctx.align = 'left'+ ctx.baseline = 'alphabetic'+ // Different platforms may render text slightly different.+ // Values that are nominally expected to be zero might actually vary by a+ // pixel or so if the UA accounts for antialiasing at glyph edges, so we+ // allow a slight deviation.+ _assert(Math.abs(ctx.measureText('A').actualBoundingBoxLeft) <= 1, "Math.abs(ctx.measureText('A').actualBoundingBoxLeft) <= 1");+ _assert(ctx.measureText('A').actualBoundingBoxRight >= 50, "ctx.measureText('A').actualBoundingBoxRight >= 50");+ _assert(ctx.measureText('A').actualBoundingBoxAscent >= 35, "ctx.measureText('A').actualBoundingBoxAscent >= 35");+ _assert(Math.abs(ctx.measureText('A').actualBoundingBoxDescent) <= 1, "Math.abs(ctx.measureText('A').actualBoundingBoxDescent) <= 1");++ _assert(ctx.measureText('D').actualBoundingBoxLeft >= 48, "ctx.measureText('D').actualBoundingBoxLeft >= 48");+ _assert(ctx.measureText('D').actualBoundingBoxLeft <= 52, "ctx.measureText('D').actualBoundingBoxLeft <= 52");+ _assert(ctx.measureText('D').actualBoundingBoxRight >= 75, "ctx.measureText('D').actualBoundingBoxRight >= 75");+ _assert(ctx.measureText('D').actualBoundingBoxRight <= 80, "ctx.measureText('D').actualBoundingBoxRight <= 80");+ _assert(ctx.measureText('D').actualBoundingBoxAscent >= 35, "ctx.measureText('D').actualBoundingBoxAscent >= 35");+ _assert(ctx.measureText('D').actualBoundingBoxAscent <= 40, "ctx.measureText('D').actualBoundingBoxAscent <= 40");+ _assert(ctx.measureText('D').actualBoundingBoxDescent >= 12, "ctx.measureText('D').actualBoundingBoxDescent >= 12");+ _assert(ctx.measureText('D').actualBoundingBoxDescent <= 15, "ctx.measureText('D').actualBoundingBoxDescent <= 15");++ _assert(Math.abs(ctx.measureText('ABCD').actualBoundingBoxLeft) <= 1, "Math.abs(ctx.measureText('ABCD').actualBoundingBoxLeft) <= 1");+ _assert(ctx.measureText('ABCD').actualBoundingBoxRight >= 200, "ctx.measureText('ABCD').actualBoundingBoxRight >= 200");+ _assert(ctx.measureText('ABCD').actualBoundingBoxAscent >= 85, "ctx.measureText('ABCD').actualBoundingBoxAscent >= 85");+ _assert(ctx.measureText('ABCD').actualBoundingBoxDescent >= 37, "ctx.measureText('ABCD').actualBoundingBoxDescent >= 37");+}, "Testing actualBoundingBox");+done();diff --git a/Tests/LibWeb/Text/input/wpt-import/images/clear-100x50.png b/Tests/LibWeb/Text/input/wpt-import/images/clear-100x50.pngnew file mode 100644index 00000000000..eeedd0ff058Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/images/clear-100x50.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/images/red.png b/Tests/LibWeb/Text/input/wpt-import/images/red.pngnew file mode 100644index 00000000000..a6e195d59ccBinary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/images/red.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/images/redtransparent.png b/Tests/LibWeb/Text/input/wpt-import/images/redtransparent.pngnew file mode 100644index 00000000000..75da08c3d66Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/images/redtransparent.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/images/transparent.png b/Tests/LibWeb/Text/input/wpt-import/images/transparent.pngnew file mode 100644index 00000000000..2b498699a80Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/images/transparent.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/images/transparent50.png b/Tests/LibWeb/Text/input/wpt-import/images/transparent50.pngnew file mode 100644index 00000000000..55f8e69325bBinary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/images/transparent50.png differdiff --git a/Tests/LibWeb/Text/input/wpt-import/images/yellow.png b/Tests/LibWeb/Text/input/wpt-import/images/yellow.pngnew file mode 100644index 00000000000..51e8aaf38c1Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/images/yellow.png differ