1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-20 03:11:01 +00:00
serenity/Tests/LibWeb/Layout/input/svg
MacDue 5cf1570f40 LibWeb: Add initial support for nesting SVG viewports
Previously, we were handling viewBoxes/viewports in a slightly hacky
way, asking graphics elements to figure out what viewBox to use during
layout. This does not work in all cases, and can't allow for more
complex SVGs where it is possible to have nested viewports.

This commit makes the SVGFormattingContext keep track of the
viewport/boxes, and it now lays out each viewport recursively, where
each nested `<svg>` or `<symbol>` can establish a new viewport.

This fixes some previous edge cases, and starts to allow nested
viewports (there's still some issues to resolve there).

Fixes #22931
2024-01-27 18:12:13 +01:00
..
dont-stretch-fit-svg-with-indefinite-containing-block-width.html LibWeb: Make stretch-fit return 0 when the available size is indefinite 2023-06-13 16:14:45 +02:00
nested-viewports.html LibWeb: Add initial support for nesting SVG viewports 2024-01-27 18:12:13 +01:00
objectBoundingBox-mask.html LibWeb: Do not crash when svg mask calculation failed 2023-12-16 19:48:36 +01:00
rectangle.svg LibWeb: Add a very basic test for SVG-as-image 2023-05-21 07:44:29 +02:00
svg-as-image-implicit-viewbox.html LibWeb: Use width & height to create fallback viewBox for SVG-as-image 2023-06-20 11:34:09 +02:00
svg-as-image-invalid.html LibWeb: Do not crash inside SVGDecodedImageData on invalid SVG input 2023-06-21 19:10:37 +02:00
svg-as-image.html LibWeb: Add a very basic test for SVG-as-image 2023-05-21 07:44:29 +02:00
svg-different-types-of-opacity.html LibWeb: Fix parsing bug for SVG attributes 2023-08-17 17:48:34 +02:00
svg-fill-with-bogus-url.html LibWeb: Fix null dereference on SVG element with bogus fill URL 2023-05-19 15:41:34 +02:00
svg-g-with-opacity.html LibWeb: Size SVG G container according to children 2023-08-17 17:48:34 +02:00
svg-inside-svg.html LibWeb: Layout <svg> nested inside <svg> 2023-04-19 07:52:26 +02:00
svg-intrinsic-size-in-one-dimension.html LibWeb: Support <svg> elements with display: block 2023-05-20 08:49:42 +02:00
svg-negative-elliptical-arg-number.html LibWeb: Consume sign in SVG::parse_elliptical_arg_argument 2023-05-26 14:54:00 +02:00
svg-path-with-implicit-lineto.html LibWeb: Support implicit lineto commands after moveto in SVG paths 2023-04-17 14:18:45 +02:00
svg-symbol-with-viewbox.html LibWeb: Use viewbox attribute in SVG symbol element 2023-08-01 14:40:51 +02:00
svg-with-css-variable-in-presentation-hint.html LibWeb: Resolve CSS variables if present in SVG presentation attributes 2023-05-24 06:43:21 +02:00
svg-with-display-block.html LibWeb: Support <svg> elements with display: block 2023-05-20 08:49:42 +02:00
svg-with-zero-intrinsic-size-and-no-viewbox.html LibWeb: Don't infer SVG viewBox if width and/or height is zero 2023-06-20 20:55:12 +02:00
svg-with-zero-intrinsic-size-and-no-viewbox.svg LibWeb: Don't infer SVG viewBox if width and/or height is zero 2023-06-20 20:55:12 +02:00
svg-with-zero-sized-viewBox.html LibWeb: Check for invalid SVG viewBox sizes 2023-11-11 22:41:57 +01:00
svg-without-viewbox.svg LibWeb: Use width & height to create fallback viewBox for SVG-as-image 2023-06-20 11:34:09 +02:00
text-fill-none.html LibWeb: Do not crash if "fill: none" is specified for svg text 2023-07-13 18:43:21 +02:00
use-honor-outer-viewBox.html LibWeb: Add initial support for nesting SVG viewports 2024-01-27 18:12:13 +01:00