ladybird/Tests/LibWeb/Text/input/canvas
Aliaksandr Kalenik 4f54b16315 LibWeb: Preserve non-ASCII characters in canvas text preparation
The whitespace-normalization loop in prepare_text() called
StringBuilder::append() on each code point, which resolves to the
`char` overload and truncates non-ASCII characters. measureText("ó")
therefore returned a width of 0, despite fillText painting the glyph.

Use append_code_point() instead, and add a regression test for both
precomposed and decomposed accented text.
2026-04-25 14:54:18 +02:00
..
2d-canvas-create-imagedata.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
2d-offscreencanvas-create-imagedata.html LibWeb: Add OffscreenCanvas tests 2025-06-30 09:46:21 -06:00
add-color-stop-color-function-should-not-throw.html LibWeb/HTML: Correct color parsing for CanvasGradient color 2025-10-06 12:13:31 +02:00
basic.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
convert-dims.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
export-offscreencanvas.html LibWeb: Add OffscreenCanvas tests 2025-06-30 09:46:21 -06:00
export.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
fill-0-height-canvas-should-not-crash.html LibWeb: Add missing empty size check before allocating PaintingSurface 2024-12-05 17:21:05 +01:00
fill-0x0-canvas-should-not-crash.html LibWeb: Null-check surface before allocating painter for context2d 2024-12-04 16:58:55 +01:00
fillStyle-bogus-rgba-color.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
fillStyle-serialization.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
fillstyle.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
invalid-font-property.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
letter-spacing.html LibGfx+LibWeb: Implement CanvasTextDrawingStyles.letterSpacing 2026-03-12 17:13:16 +01:00
offscreencanvas-basic.html LibWeb: Add OffscreenCanvas tests 2025-06-30 09:46:21 -06:00
pattern-from-image.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
pattern-from-video.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
random-function.html LibWeb: Disallow random() in canvas context value setters 2026-04-08 14:31:43 +01:00
resize-canvas-and-keep-painting.html LibWeb: Create a new painter after resizing canvas element backing store 2025-08-24 16:36:24 +02:00
style-up-to-date-before-font-absolutization.html LibWeb: Ensure canvas style is updated before absolutizing canvas font 2026-04-08 14:31:43 +01:00
textmetrics-actual-bounding-box-accent.html LibWeb: Preserve non-ASCII characters in canvas text preparation 2026-04-25 14:54:18 +02:00
transform.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
tree-counting-function.html LibWeb: Disallow tree counting functions in most canvas context setters 2026-04-08 14:31:43 +01:00
webgl-create-canvas.html LibWeb: Add stubbed-out WebGL2RenderingContext 2024-12-06 15:35:36 +01:00
webgl-present-with-bound-offscreen-framebuffer.html Tests: Add a test for WebGL framebuffers retaining data after present 2025-10-29 22:06:31 -07:00