1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00
ladybird/Tests/LibWeb/Screenshot
Sam Atkins 3af6a69f1e LibWeb: Introduce color-function-specific style values
Instead of CSSColorValue holding a Gfx::Color, make it an abstract class
with subclasses for each different color function, to match the Typed-OM
spec. This means moving the color calculations from the parsing code to
the `to_color()` method on the style value.

This lets us have calc() inside a color function, instead of having to
fully resolve the color at parse time. The canvas fillStyle tests have
been updated to reflect this.

The other test change is Screenshot/css-color-functions.html: previously
we produced slightly different colors for an alpha of 0.5 and one of
50%, and this incorrect behavior was baked into the test. So now it's
more correct. :^)
2024-08-21 10:51:48 +01:00
..
assets
images LibWeb: Introduce color-function-specific style values 2024-08-21 10:51:48 +01:00
reference LibGfx: Implement Gfx::AlphaType for SkiaPainter 2024-08-20 20:39:09 +02:00
alt-frame.html
border-radius.html
canvas-arcs-and-ellipses.html
canvas-fillstyle-rgb.html LibWeb: Introduce color-function-specific style values 2024-08-21 10:51:48 +01:00
canvas-implict-moves-and-lines.html
canvas-path-rect.html
canvas-text.html
canvas-unpremultiplied-image.html LibGfx: Implement Gfx::AlphaType for SkiaPainter 2024-08-20 20:39:09 +02:00
clip-path-polygon.html
css-background-clip-text.html
css-background-position.html
css-background-repeat.html
css-backgrounds.html
css-color-functions.html
css-gradients.html
css-transform-box.html
inline-node.html
input-placeholder.html
meter.html
nested-boxes-with-hidden-overflow-and-border-radius.html
object-fit-position.html
opacity-stacking.html
outer-box-shadow.html
svg-axis-aligned-lines.html
svg-background-no-natural-size.html
svg-clip-path-and-mask.html
svg-clip-rule.html
svg-foreign-object-mask.html
svg-gradient-spreadMethod.html
svg-maskContentUnits.html
svg-non-local-clip-path.html
svg-radialGradient.html
svg-simple-clipPath.html
svg-stroke-paintstyle-with-opacity.html
svg-text-effects.html
svg-textPath.html
text-decorations.html
text-shadow.html