1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:08:13 +00:00
serenity/Tests/LibWeb/Layout/expected/svg
Andreas Kling f0560fd087 LibWeb: Support <svg> elements with display: block
There are a couple of things that went into this:

- We now calculate the intrinsic width/height and aspect ratio of <svg>
  elements based on the spec algorithm instead of our previous ad-hoc
  guesswork solution.

- Replaced elements with automatic size and intrinsic aspect ratio but
  no intrinsic dimensions are now sized with the stretch-fit width
  formula.

- We take care to assign both used width and used height to <svg>
  elements before running their SVG formatting contexts. This ensures
  that the inside SVG content is laid out with knowledge of its
  viewport geometry.

- We avoid infinite recursion in tentative_height_for_replaced_element()
  by using the already-calculated used width instead of calling the
  function that calculates the used width (since that may call us right
  back again).
2023-05-20 08:49:42 +02:00
..
svg-fill-with-bogus-url.txt LibWeb: Support <svg> elements with display: block 2023-05-20 08:49:42 +02:00
svg-inside-svg.txt LibWeb: Show formatting context roots in layout tree dumps 2023-05-03 13:14:36 +02:00
svg-intrinsic-size-in-one-dimension.txt LibWeb: Support <svg> elements with display: block 2023-05-20 08:49:42 +02:00
svg-path-with-implicit-lineto.txt LibWeb: Show formatting context roots in layout tree dumps 2023-05-03 13:14:36 +02:00
svg-with-display-block.txt LibWeb: Support <svg> elements with display: block 2023-05-20 08:49:42 +02:00