From b7efb61fbee45766af1b5e77150b44ce0fa54c66 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Tue, 5 Nov 2024 12:49:08 +0000 Subject: [PATCH] Tests/LibWeb: Restructure Ref and Screenshot test dirs to match others Now each test type has the same directories: - input - expected - data Also, tests can be in subdirectories within ./input. --- Documentation/Testing.md | 4 +- Ladybird/Headless/Test.cpp | 23 ++-- Tests/LibWeb/Ref/body-link-attribute.html | 4 - .../Ref/{assets => data}/2x2checkerboard.png | Bin .../Ref/{assets => data}/nested-svg.svg | 0 .../LibWeb/Ref/{assets => data}/rectangle.png | Bin .../Ref/{assets => data}/vertical-rect.svg | 0 .../abspos-escapes-scroll-container-ref.html | 0 .../abspos-z-index-painting-order-ref.html | 0 .../alternative-style-sheets-ref.html | 0 .../anonymous-wrapper-css-visibility-ref.html | 2 +- ...round-clip-text-inside-scrollable-ref.html | 0 .../background-clip-text-ref.html | 0 .../background-size-calc-ref.html | 4 +- .../body-link-attribute-ref.html | 2 +- ...rder-radius-shrink-zero-sized-box-ref.html | 0 .../border-radius-with-padding-ref.html | 0 ...sform-should-be-above-other-boxes-ref.html | 0 ...-should-not-consume-scroll-events-ref.html | 0 .../button-inside-scroll-container-ref.html | 0 .../calc-border-radius-ref.html | 0 .../change-opacity-ref.html | 0 .../clip-abspos-children-ref.html | 0 ...-border-radius-with-css-transform-ref.html | 0 .../Ref/{reference => expected}/clip-ref.html | 0 .../color-hsl-ref.html | 0 .../color-hwb-ref.html | 0 .../color-oklab-ref.html | 0 .../color-oklch-ref.html | 0 .../color-rgb-ref.html | 0 .../corner-clip-inside-scrollable-ref.html | 0 .../css-any-link-selector-ref.html | 0 .../css-attr-typed-ref.html | 0 ...ensitive-html-attributes-selector-ref.html | 0 .../css-gradient-currentcolor-ref.html | 0 .../css-has-compound.html | 0 .../css-has-descendant.html | 0 .../css-has-direct-child.html | 0 .../css-has-next-sibling.html | 0 .../css-has-subsequent-sibling.html | 0 .../css-invalid-var-ref.html | 0 .../css-keyframe-fill-forwards-ref.html | 0 ...valid-transform-should-not-render-ref.html | 0 .../css-lang-selector-ref.html | 0 .../css-local-link-selector-ref.html | 0 .../css-nested-declarations-ref.html | 0 .../css-nested-has.html | 0 .../css-nesting-ref.html | 0 .../css-open-closed-selectors-ref.html | 0 .../css-placeholder-shown-selector-ref.html | 0 .../css-pseudo-element-in-has.html | 0 .../css-quotes-ref.html | 0 ...ss-read-only-read-write-selectors-ref.html | 0 ...le-font-should-include-whitespace-ref.html | 0 .../grid-item-and-css-filter-ref.html | 0 .../grid-items-painting-order-ref.html | 0 .../iframe-contains-scrollable-box-ref.html | 0 ...mg-srcset-viewport-relative-sizes-ref.html | 0 .../inline-block-with-css-background-ref.html | 0 ...ne-paintable-background-clip-text-ref.html | 0 ...table-inside-translated-container-ref.html | 2 +- .../inline-stacking-context-ref.html | 0 .../inline-visibility-hidden-ref.html | 0 .../input-background.html | 0 ...invalidate-css-transform-property-ref.html | 0 .../item-with-negative-z-index-ref.html | 0 .../nested-svg-as-img-ref.html | 0 ...d-stacking-context-with-z-index-0-ref.html | 0 .../options-set-index.html | 0 .../{reference => expected}/outlines-ref.html | 2 +- .../overflow-hidden-2-ref.html | 0 .../overflow-hidden-3-ref.html | 2 +- .../overflow-hidden-4-ref.html | 2 +- .../overflow-hidden-5-ref.html | 2 +- .../overflow-hidden-6-ref.html | 2 +- .../overflow-hidden-7-ref.html | 0 .../overflow-hidden-ref.html | 0 ...-text-inside-translated-container-ref.html | 0 ...s-corner-clip-in-scroll-container-ref.html | 0 .../position-sticky-bottom-ref.html | 0 .../position-sticky-left-ref.html | 0 .../position-sticky-right-ref.html | 0 ...ould-stay-within-containing-block-ref.html | 0 .../position-sticky-top-ref.html | 0 ...oned-elements-in-scroll-container-ref.html | 2 +- ...aint-only-properties-after-layout-ref.html | 2 +- .../scroll-iframe-ref.html | 0 .../scroll-using-mousewheel-event-ref.html | 0 ...-box-with-nested-stacking-context-ref.html | 0 ...ains-box-with-gradient-background-ref.html | 0 ...ains-boxes-with-hidden-overflow-1-ref.html | 0 ...ains-boxes-with-hidden-overflow-2-ref.html | 0 ...-with-hidden-overflow-and-opacity-ref.html | 0 .../scrollable-contains-iframe-ref.html | 0 ...scrollable-contains-rotated-boxes-ref.html | 0 .../scrollable-contains-table-ref.html | 0 ...content-inside-fixed-position-box-ref.html | 2 +- ...crolled-text-with-clipped-corners-ref.html | 0 .../separate-borders-ref.html | 0 .../simple-svg-mask-ref.html | 0 .../space-glyph-width-ref.html | 0 .../{reference => expected}/square-ref.html | 0 ...sticky-box-with-percentage-insets-ref.html | 0 ...sticky-positioned-box-with-border-ref.html | 0 .../svg-clipPathUnits.html | 2 +- .../svg-display-attr.html | 0 .../svg-file-matches-html-file.html | 0 .../svg-image-positioning-ref.html | 0 .../svg-inside-scroll-container-ref.html | 0 .../svg-invalid-number-arguments-ref.html | 0 ...-non-local-clip-path-display-none-ref.html | 0 .../svg-overflow-hidden-ref.html | 0 .../svg-overflow-visible-ref.html | 0 .../svg-path-incomplete-args-ref.html | 0 ...vg-polygon-with-incomplete-points-ref.html | 0 .../svg-symbol-ref.html | 0 .../svg-use-defined-earlier.html | 0 ...t-decoration-in-anonymous-wrapper-ref.html | 0 .../Ref/{reference => expected}/text-div.html | 0 .../text-overflow.html | 0 .../textnode-segmenter-invalidation.html | 0 .../transform-2d-translate-ref.html | 0 .../transform-box-ref.html | 0 .../transform-calc-length-percentage-ref.html | 0 .../unicode-range-ref.html | 0 .../webkit-box-shadow.html | 0 .../webkit-text-fill-color.html | 0 ...uld-not-affect-svg-painting-order-ref.html | 0 .../abspos-escapes-scroll-container.html | 2 +- .../abspos-z-index-painting-order.html | 2 +- .../{ => input}/alternative-style-sheets.html | 2 +- .../anonymous-wrapper-css-visibility.html | 2 +- ...ackground-clip-text-inside-scrollable.html | 2 +- .../Ref/{ => input}/background-clip-text.html | 2 +- .../Ref/{ => input}/background-size-calc.html | 6 +- .../LibWeb/Ref/input/body-link-attribute.html | 4 + .../border-radius-shrink-zero-sized-box.html | 2 +- .../border-radius-with-padding.html | 2 +- ...transform-should-be-above-other-boxes.html | 2 +- ...flow-should-not-consume-scroll-events.html | 2 +- .../button-inside-scroll-container.html | 2 +- .../Ref/{ => input}/calc-border-radius.html | 2 +- .../Ref/{ => input}/change-opacity.html | 2 +- .../Ref/{ => input}/clip-abspos-children.html | 2 +- ...clip-border-radius-with-css-transform.html | 2 +- Tests/LibWeb/Ref/{ => input}/clip.html | 2 +- Tests/LibWeb/Ref/{ => input}/color-hsl.html | 2 +- Tests/LibWeb/Ref/{ => input}/color-hwb.html | 2 +- Tests/LibWeb/Ref/{ => input}/color-oklab.html | 2 +- Tests/LibWeb/Ref/{ => input}/color-oklch.html | 2 +- Tests/LibWeb/Ref/{ => input}/color-rgb.html | 2 +- .../corner-clip-inside-scrollable.html | 2 +- .../{ => input}/css-any-link-selector.html | 2 +- .../Ref/{ => input}/css-attr-basic.html | 2 +- .../Ref/{ => input}/css-attr-fallback.html | 2 +- .../{ => input}/css-attr-typed-fallback.html | 2 +- .../Ref/{ => input}/css-attr-typed.html | 2 +- ...-insensitive-html-attributes-selector.html | 2 +- ...ctional-unknown-webkit-pseudo-element.html | 2 +- .../css-gradient-currentcolor.html | 2 +- .../Ref/{ => input}/css-has-compound.html | 2 +- .../Ref/{ => input}/css-has-descendant.html | 2 +- .../Ref/{ => input}/css-has-direct-child.html | 2 +- .../Ref/{ => input}/css-has-next-sibling.html | 2 +- .../css-has-subsequent-sibling.html | 2 +- .../Ref/{ => input}/css-invalid-var.html | 2 +- .../css-keyframe-fill-forwards.html | 2 +- ...e-invalid-transform-should-not-render.html | 2 +- .../Ref/{ => input}/css-lang-selector.html | 2 +- .../{ => input}/css-local-link-selector.html | 2 +- .../{ => input}/css-nested-declarations.html | 2 +- .../Ref/{ => input}/css-nested-has.html | 2 +- Tests/LibWeb/Ref/{ => input}/css-nesting.html | 2 +- .../css-open-closed-selectors.html | 2 +- .../css-placeholder-shown-selector.html | 2 +- .../css-pseudo-element-in-has.html | 2 +- Tests/LibWeb/Ref/{ => input}/css-quotes.html | 2 +- .../css-read-only-read-write-selectors.html | 2 +- .../css-unknown-webkit-pseudo-element.html | 2 +- ...ilable-font-should-include-whitespace.html | 4 +- .../{ => input}/grid-item-and-css-filter.html | 2 +- .../grid-items-painting-order.html | 2 +- .../iframe-contains-scrollable-box.html | 2 +- .../img-srcset-viewport-relative-sizes.html | 2 +- .../inline-block-with-css-background.html | 2 +- ...inline-paintable-background-clip-text.html | 2 +- ...paintable-inside-translated-container.html | 2 +- .../{ => input}/inline-stacking-context.html | 2 +- .../{ => input}/inline-visibility-hidden.html | 2 +- .../Ref/{ => input}/input-background.html | 2 +- .../invalidate-css-transform-property.html | 2 +- .../item-with-negative-z-index.html | 2 +- Tests/LibWeb/Ref/input/nested-svg-as-img.html | 5 + ...ioned-stacking-context-with-z-index-0.html | 2 +- .../Ref/{ => input}/options-set-index.html | 2 +- Tests/LibWeb/Ref/{ => input}/outlines.html | 2 +- .../Ref/{ => input}/overflow-hidden-2.html | 2 +- .../Ref/{ => input}/overflow-hidden-3.html | 2 +- .../Ref/{ => input}/overflow-hidden-4.html | 2 +- .../Ref/{ => input}/overflow-hidden-5.html | 2 +- .../Ref/{ => input}/overflow-hidden-6.html | 2 +- .../Ref/{ => input}/overflow-hidden-7.html | 2 +- ...dden-text-inside-translated-container.html | 2 +- .../Ref/{ => input}/overflow-hidden.html | 2 +- ...lines-corner-clip-in-scroll-container.html | 2 +- .../{ => input}/position-sticky-bottom.html | 2 +- .../Ref/{ => input}/position-sticky-left.html | 2 +- .../{ => input}/position-sticky-right.html | 2 +- ...y-should-stay-within-containing-block.html | 2 +- .../Ref/{ => input}/position-sticky-top.html | 2 +- ...sitioned-elements-in-scroll-container.html | 2 +- ...ve-paint-only-properties-after-layout.html | 2 +- .../LibWeb/Ref/{ => input}/scroll-iframe.html | 2 +- .../scroll-using-mousewheel-event.html | 2 +- ...able-box-with-nested-stacking-context.html | 2 +- ...contains-box-with-gradient-background.html | 2 +- ...contains-boxes-with-hidden-overflow-1.html | 2 +- ...contains-boxes-with-hidden-overflow-2.html | 2 +- ...oxes-with-hidden-overflow-and-opacity.html | 2 +- .../scrollable-contains-iframe.html | 2 +- .../scrollable-contains-rotated-boxes.html | 2 +- .../scrollable-contains-table.html | 2 +- ...ble-content-inside-fixed-position-box.html | 2 +- .../scrolled-text-with-clipped-corners.html | 2 +- .../separate-borders-inline-table.html | 2 +- .../Ref/{ => input}/simple-svg-mask.html | 2 +- .../Ref/{ => input}/space-glyph-width.html | 4 +- Tests/LibWeb/Ref/{ => input}/square-flex.html | 2 +- .../sticky-box-with-percentage-insets.html | 2 +- .../sticky-positioned-box-with-border.html | 2 +- .../{ => input}/svg-alpha-mask-attribute.html | 2 +- .../Ref/{ => input}/svg-alpha-mask.html | 2 +- .../Ref/{ => input}/svg-display-attr.html | 2 +- .../svg-file-matches-html-file.svg | 2 +- .../{ => input}/svg-image-positioning.html | 26 ++--- .../svg-inside-scroll-container.html | 2 +- .../svg-invalid-number-arguments.html | 2 +- .../Ref/{ => input}/svg-mask-in-defs.html | 2 +- .../svg-mask-maskUnits-userSpaceOnUse.html | 2 +- .../svg-non-local-clip-path-display-none.html | 2 +- .../Ref/{ => input}/svg-overflow-hidden.html | 2 +- .../Ref/{ => input}/svg-overflow-visible.html | 2 +- .../{ => input}/svg-path-incomplete-args.html | 2 +- .../svg-polygon-with-incomplete-points.html | 2 +- Tests/LibWeb/Ref/{ => input}/svg-symbol.html | 2 +- .../{ => input}/svg-use-defined-later.html | 2 +- .../text-decoration-in-anonymous-wrapper.html | 2 +- .../LibWeb/Ref/{ => input}/text-overflow.html | 2 +- .../textnode-segmenter-invalidation.html | 2 +- .../{ => input}/transform-2d-translate.html | 2 +- .../LibWeb/Ref/{ => input}/transform-box.html | 2 +- .../transform-calc-length-percentage.html | 2 +- .../LibWeb/Ref/{ => input}/unicode-range.html | 4 +- .../Ref/{ => input}/webkit-box-shadow.html | 2 +- .../{ => input}/webkit-text-fill-color.html | 2 +- ...-should-not-affect-svg-painting-order.html | 2 +- Tests/LibWeb/Ref/nested-svg-as-img.html | 5 - Tests/LibWeb/Screenshot/alt-frame.html | 3 - Tests/LibWeb/Screenshot/css-backgrounds.html | 82 --------------- Tests/LibWeb/Screenshot/css-filter.html | 74 ------------- .../background-no-repeat.html | 0 .../{assets => data}/background-repeat-x.html | 0 .../{assets => data}/background-repeat-y.html | 0 .../{assets => data}/background-repeat.html | 0 .../Screenshot/{assets => data}/car.png | Bin .../Screenshot/{assets => data}/smiley.png | Bin .../{assets => data}/vertical-rect.svg | 0 .../alt-frame-ref.html | 0 .../border-radius-ref.html | 0 .../canvas-arcs-and-ellipses-ref.html | 0 .../canvas-fillstyle-rgb-ref.html | 0 .../canvas-implict-moves-and-lines-ref.html | 0 .../canvas-path-rect-ref.html | 0 .../canvas-shadow-ref.html | 0 .../canvas-text-ref.html | 0 .../canvas-unpremultiplied-image-ref.html | 0 .../clip-path-basic-shapes-ref.html | 0 .../clip-path-polygon-ref.html | 0 .../clip-path-transformed-ref.html | 0 .../css-background-clip-text-ref.html | 0 .../css-background-position-ref.html | 0 .../css-background-repeat-ref.html | 0 .../css-backgrounds-ref.html | 0 .../css-color-functions-ref.html | 0 .../css-filter-drop-shadow-ref.html | 0 .../css-filter-ref.html | 0 .../css-gradients-ref.html | 0 .../css-transform-box-ref.html | 0 .../inline-node-ref.html | 0 .../input-placeholder-ref.html | 0 .../{reference => expected}/meter-ref.html | 0 ...hidden-overflow-and-border-radius-ref.html | 0 .../object-fit-position-ref.html | 0 .../opacity-stacking-ref.html | 0 .../outer-box-shadow-ref.html | 0 .../svg-axis-aligned-lines-ref.html | 0 .../svg-background-no-natural-size-ref.html | 0 .../svg-clip-path-and-mask-ref.html | 0 .../svg-clip-rule-ref.html | 0 .../svg-foreign-object-mask-ref.html | 0 .../svg-gradient-spreadMethod-ref.html | 0 .../svg-gradient-userSpaceOnUse-ref.html | 0 .../svg-maskContentUnits-ref.html | 0 .../svg-non-local-clip-path-ref.html | 0 .../svg-path-offset-rounding-ref.html | 0 .../svg-radialGradient-ref.html | 0 .../svg-simple-clipPath-ref.html | 0 ...vg-stroke-paintstyle-with-opacity-ref.html | 0 .../svg-text-effects-ref.html | 0 .../svg-textPath-ref.html | 0 .../text-decorations-ref.html | 0 .../text-direction-ref.html | 0 .../text-shadow-ref.html | 0 Tests/LibWeb/Screenshot/input/alt-frame.html | 3 + .../Screenshot/{ => input}/border-radius.html | 16 +-- .../{ => input}/canvas-arcs-and-ellipses.html | 2 +- .../{ => input}/canvas-fillstyle-rgb.html | 2 +- .../canvas-implict-moves-and-lines.html | 2 +- .../{ => input}/canvas-path-rect.html | 2 +- .../Screenshot/{ => input}/canvas-shadow.html | 2 +- .../Screenshot/{ => input}/canvas-text.html | 2 +- .../canvas-unpremultiplied-image.html | 2 +- .../{ => input}/clip-path-basic-shapes.html | 2 +- .../{ => input}/clip-path-polygon.html | 2 +- .../{ => input}/clip-path-transformed.html | 2 +- .../{ => input}/css-background-clip-text.html | 6 +- .../{ => input}/css-background-position.html | 6 +- .../{ => input}/css-background-repeat.html | 12 +-- .../Screenshot/input/css-backgrounds.html | 82 +++++++++++++++ .../{ => input}/css-color-functions.html | 2 +- .../{ => input}/css-filter-drop-shadow.html | 2 +- Tests/LibWeb/Screenshot/input/css-filter.html | 74 +++++++++++++ .../Screenshot/{ => input}/css-gradients.html | 2 +- .../{ => input}/css-transform-box.html | 2 +- .../Screenshot/{ => input}/inline-node.html | 2 +- .../{ => input}/input-placeholder.html | 2 +- .../LibWeb/Screenshot/{ => input}/meter.html | 2 +- ...ith-hidden-overflow-and-border-radius.html | 2 +- .../{ => input}/object-fit-position.html | 98 +++++++++--------- .../{ => input}/opacity-stacking.html | 2 +- .../{ => input}/outer-box-shadow.html | 2 +- .../{ => input}/svg-axis-aligned-lines.html | 2 +- .../svg-background-no-natural-size.html | 6 +- .../{ => input}/svg-clip-path-and-mask.html | 2 +- .../Screenshot/{ => input}/svg-clip-rule.html | 2 +- .../{ => input}/svg-foreign-object-mask.html | 2 +- .../svg-gradient-spreadMethod.html | 2 +- .../svg-gradient-userSpaceOnUse.html | 2 +- .../{ => input}/svg-maskContentUnits.html | 2 +- .../{ => input}/svg-non-local-clip-path.html | 2 +- .../{ => input}/svg-path-offset-rounding.html | 2 +- .../{ => input}/svg-radialGradient.html | 2 +- .../{ => input}/svg-simple-clipPath.html | 2 +- .../svg-stroke-paintstyle-with-opacity.html | 2 +- .../{ => input}/svg-text-effects.html | 2 +- .../Screenshot/{ => input}/svg-textPath.html | 2 +- .../{ => input}/text-decorations.html | 2 +- .../{ => input}/text-direction.html | 2 +- .../Screenshot/{ => input}/text-shadow.html | 2 +- Tests/LibWeb/TestConfig.ini | 4 +- 360 files changed, 451 insertions(+), 448 deletions(-) delete mode 100644 Tests/LibWeb/Ref/body-link-attribute.html rename Tests/LibWeb/Ref/{assets => data}/2x2checkerboard.png (100%) rename Tests/LibWeb/Ref/{assets => data}/nested-svg.svg (100%) rename Tests/LibWeb/Ref/{assets => data}/rectangle.png (100%) rename Tests/LibWeb/Ref/{assets => data}/vertical-rect.svg (100%) rename Tests/LibWeb/Ref/{reference => expected}/abspos-escapes-scroll-container-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/abspos-z-index-painting-order-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/alternative-style-sheets-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/anonymous-wrapper-css-visibility-ref.html (64%) rename Tests/LibWeb/Ref/{reference => expected}/background-clip-text-inside-scrollable-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/background-clip-text-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/background-size-calc-ref.html (64%) rename Tests/LibWeb/Ref/{reference => expected}/body-link-attribute-ref.html (54%) rename Tests/LibWeb/Ref/{reference => expected}/border-radius-shrink-zero-sized-box-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/border-radius-with-padding-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/box-with-transform-should-be-above-other-boxes-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/box-without-scrollable-overflow-should-not-consume-scroll-events-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/button-inside-scroll-container-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/calc-border-radius-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/change-opacity-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/clip-abspos-children-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/clip-border-radius-with-css-transform-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/clip-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/color-hsl-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/color-hwb-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/color-oklab-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/color-oklch-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/color-rgb-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/corner-clip-inside-scrollable-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-any-link-selector-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-attr-typed-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-case-insensitive-html-attributes-selector-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-gradient-currentcolor-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-has-compound.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-has-descendant.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-has-direct-child.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-has-next-sibling.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-has-subsequent-sibling.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-invalid-var-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-keyframe-fill-forwards-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-keyframe-invalid-transform-should-not-render-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-lang-selector-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-local-link-selector-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-nested-declarations-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-nested-has.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-nesting-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-open-closed-selectors-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-placeholder-shown-selector-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-pseudo-element-in-has.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-quotes-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/css-read-only-read-write-selectors-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/first-available-font-should-include-whitespace-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/grid-item-and-css-filter-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/grid-items-painting-order-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/iframe-contains-scrollable-box-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/img-srcset-viewport-relative-sizes-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/inline-block-with-css-background-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/inline-paintable-background-clip-text-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/inline-paintable-inside-translated-container-ref.html (61%) rename Tests/LibWeb/Ref/{reference => expected}/inline-stacking-context-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/inline-visibility-hidden-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/input-background.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/invalidate-css-transform-property-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/item-with-negative-z-index-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/nested-svg-as-img-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/non-positioned-stacking-context-with-z-index-0-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/options-set-index.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/outlines-ref.html (82%) rename Tests/LibWeb/Ref/{reference => expected}/overflow-hidden-2-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/overflow-hidden-3-ref.html (65%) rename Tests/LibWeb/Ref/{reference => expected}/overflow-hidden-4-ref.html (70%) rename Tests/LibWeb/Ref/{reference => expected}/overflow-hidden-5-ref.html (85%) rename Tests/LibWeb/Ref/{reference => expected}/overflow-hidden-6-ref.html (70%) rename Tests/LibWeb/Ref/{reference => expected}/overflow-hidden-7-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/overflow-hidden-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/overflow-hidden-text-inside-translated-container-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/paintablewithlines-corner-clip-in-scroll-container-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/position-sticky-bottom-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/position-sticky-left-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/position-sticky-right-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/position-sticky-should-stay-within-containing-block-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/position-sticky-top-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/positioned-elements-in-scroll-container-ref.html (96%) rename Tests/LibWeb/Ref/{reference => expected}/resolve-paint-only-properties-after-layout-ref.html (66%) rename Tests/LibWeb/Ref/{reference => expected}/scroll-iframe-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/scroll-using-mousewheel-event-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/scrollable-box-with-nested-stacking-context-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/scrollable-contains-box-with-gradient-background-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/scrollable-contains-boxes-with-hidden-overflow-1-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/scrollable-contains-boxes-with-hidden-overflow-2-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/scrollable-contains-boxes-with-hidden-overflow-and-opacity-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/scrollable-contains-iframe-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/scrollable-contains-rotated-boxes-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/scrollable-contains-table-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/scrollable-content-inside-fixed-position-box-ref.html (92%) rename Tests/LibWeb/Ref/{reference => expected}/scrolled-text-with-clipped-corners-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/separate-borders-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/simple-svg-mask-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/space-glyph-width-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/square-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/sticky-box-with-percentage-insets-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/sticky-positioned-box-with-border-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/svg-clipPathUnits.html (92%) rename Tests/LibWeb/Ref/{reference => expected}/svg-display-attr.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/svg-file-matches-html-file.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/svg-image-positioning-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/svg-inside-scroll-container-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/svg-invalid-number-arguments-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/svg-non-local-clip-path-display-none-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/svg-overflow-hidden-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/svg-overflow-visible-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/svg-path-incomplete-args-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/svg-polygon-with-incomplete-points-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/svg-symbol-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/svg-use-defined-earlier.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/text-decoration-in-anonymous-wrapper-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/text-div.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/text-overflow.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/textnode-segmenter-invalidation.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/transform-2d-translate-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/transform-box-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/transform-calc-length-percentage-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/unicode-range-ref.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/webkit-box-shadow.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/webkit-text-fill-color.html (100%) rename Tests/LibWeb/Ref/{reference => expected}/z-index-should-not-affect-svg-painting-order-ref.html (100%) rename Tests/LibWeb/Ref/{ => input}/abspos-escapes-scroll-container.html (88%) rename Tests/LibWeb/Ref/{ => input}/abspos-z-index-painting-order.html (77%) rename Tests/LibWeb/Ref/{ => input}/alternative-style-sheets.html (83%) rename Tests/LibWeb/Ref/{ => input}/anonymous-wrapper-css-visibility.html (65%) rename Tests/LibWeb/Ref/{ => input}/background-clip-text-inside-scrollable.html (87%) rename Tests/LibWeb/Ref/{ => input}/background-clip-text.html (79%) rename Tests/LibWeb/Ref/{ => input}/background-size-calc.html (54%) create mode 100644 Tests/LibWeb/Ref/input/body-link-attribute.html rename Tests/LibWeb/Ref/{ => input}/border-radius-shrink-zero-sized-box.html (62%) rename Tests/LibWeb/Ref/{ => input}/border-radius-with-padding.html (71%) rename Tests/LibWeb/Ref/{ => input}/box-with-transform-should-be-above-other-boxes.html (78%) rename Tests/LibWeb/Ref/{ => input}/box-without-scrollable-overflow-should-not-consume-scroll-events.html (82%) rename Tests/LibWeb/Ref/{ => input}/button-inside-scroll-container.html (91%) rename Tests/LibWeb/Ref/{ => input}/calc-border-radius.html (81%) rename Tests/LibWeb/Ref/{ => input}/change-opacity.html (79%) rename Tests/LibWeb/Ref/{ => input}/clip-abspos-children.html (87%) rename Tests/LibWeb/Ref/{ => input}/clip-border-radius-with-css-transform.html (87%) rename Tests/LibWeb/Ref/{ => input}/clip.html (87%) rename Tests/LibWeb/Ref/{ => input}/color-hsl.html (96%) rename Tests/LibWeb/Ref/{ => input}/color-hwb.html (92%) rename Tests/LibWeb/Ref/{ => input}/color-oklab.html (91%) rename Tests/LibWeb/Ref/{ => input}/color-oklch.html (91%) rename Tests/LibWeb/Ref/{ => input}/color-rgb.html (86%) rename Tests/LibWeb/Ref/{ => input}/corner-clip-inside-scrollable.html (90%) rename Tests/LibWeb/Ref/{ => input}/css-any-link-selector.html (56%) rename Tests/LibWeb/Ref/{ => input}/css-attr-basic.html (71%) rename Tests/LibWeb/Ref/{ => input}/css-attr-fallback.html (71%) rename Tests/LibWeb/Ref/{ => input}/css-attr-typed-fallback.html (91%) rename Tests/LibWeb/Ref/{ => input}/css-attr-typed.html (89%) rename Tests/LibWeb/Ref/{ => input}/css-case-insensitive-html-attributes-selector.html (78%) rename Tests/LibWeb/Ref/{ => input}/css-functional-unknown-webkit-pseudo-element.html (76%) rename Tests/LibWeb/Ref/{ => input}/css-gradient-currentcolor.html (71%) rename Tests/LibWeb/Ref/{ => input}/css-has-compound.html (85%) rename Tests/LibWeb/Ref/{ => input}/css-has-descendant.html (74%) rename Tests/LibWeb/Ref/{ => input}/css-has-direct-child.html (74%) rename Tests/LibWeb/Ref/{ => input}/css-has-next-sibling.html (82%) rename Tests/LibWeb/Ref/{ => input}/css-has-subsequent-sibling.html (83%) rename Tests/LibWeb/Ref/{ => input}/css-invalid-var.html (66%) rename Tests/LibWeb/Ref/{ => input}/css-keyframe-fill-forwards.html (84%) rename Tests/LibWeb/Ref/{ => input}/css-keyframe-invalid-transform-should-not-render.html (80%) rename Tests/LibWeb/Ref/{ => input}/css-lang-selector.html (82%) rename Tests/LibWeb/Ref/{ => input}/css-local-link-selector.html (62%) rename Tests/LibWeb/Ref/{ => input}/css-nested-declarations.html (75%) rename Tests/LibWeb/Ref/{ => input}/css-nested-has.html (73%) rename Tests/LibWeb/Ref/{ => input}/css-nesting.html (96%) rename Tests/LibWeb/Ref/{ => input}/css-open-closed-selectors.html (75%) rename Tests/LibWeb/Ref/{ => input}/css-placeholder-shown-selector.html (74%) rename Tests/LibWeb/Ref/{ => input}/css-pseudo-element-in-has.html (73%) rename Tests/LibWeb/Ref/{ => input}/css-quotes.html (83%) rename Tests/LibWeb/Ref/{ => input}/css-read-only-read-write-selectors.html (75%) rename Tests/LibWeb/Ref/{ => input}/css-unknown-webkit-pseudo-element.html (76%) rename Tests/LibWeb/Ref/{ => input}/first-available-font-should-include-whitespace.html (61%) rename Tests/LibWeb/Ref/{ => input}/grid-item-and-css-filter.html (76%) rename Tests/LibWeb/Ref/{ => input}/grid-items-painting-order.html (79%) rename Tests/LibWeb/Ref/{ => input}/iframe-contains-scrollable-box.html (92%) rename Tests/LibWeb/Ref/{ => input}/img-srcset-viewport-relative-sizes.html (81%) rename Tests/LibWeb/Ref/{ => input}/inline-block-with-css-background.html (81%) rename Tests/LibWeb/Ref/{ => input}/inline-paintable-background-clip-text.html (69%) rename Tests/LibWeb/Ref/{ => input}/inline-paintable-inside-translated-container.html (67%) rename Tests/LibWeb/Ref/{ => input}/inline-stacking-context.html (75%) rename Tests/LibWeb/Ref/{ => input}/inline-visibility-hidden.html (51%) rename Tests/LibWeb/Ref/{ => input}/input-background.html (58%) rename Tests/LibWeb/Ref/{ => input}/invalidate-css-transform-property.html (79%) rename Tests/LibWeb/Ref/{ => input}/item-with-negative-z-index.html (80%) create mode 100644 Tests/LibWeb/Ref/input/nested-svg-as-img.html rename Tests/LibWeb/Ref/{ => input}/non-positioned-stacking-context-with-z-index-0.html (57%) rename Tests/LibWeb/Ref/{ => input}/options-set-index.html (73%) rename Tests/LibWeb/Ref/{ => input}/outlines.html (81%) rename Tests/LibWeb/Ref/{ => input}/overflow-hidden-2.html (93%) rename Tests/LibWeb/Ref/{ => input}/overflow-hidden-3.html (83%) rename Tests/LibWeb/Ref/{ => input}/overflow-hidden-4.html (87%) rename Tests/LibWeb/Ref/{ => input}/overflow-hidden-5.html (89%) rename Tests/LibWeb/Ref/{ => input}/overflow-hidden-6.html (96%) rename Tests/LibWeb/Ref/{ => input}/overflow-hidden-7.html (83%) rename Tests/LibWeb/Ref/{ => input}/overflow-hidden-text-inside-translated-container.html (69%) rename Tests/LibWeb/Ref/{ => input}/overflow-hidden.html (89%) rename Tests/LibWeb/Ref/{ => input}/paintablewithlines-corner-clip-in-scroll-container.html (92%) rename Tests/LibWeb/Ref/{ => input}/position-sticky-bottom.html (95%) rename Tests/LibWeb/Ref/{ => input}/position-sticky-left.html (94%) rename Tests/LibWeb/Ref/{ => input}/position-sticky-right.html (94%) rename Tests/LibWeb/Ref/{ => input}/position-sticky-should-stay-within-containing-block.html (93%) rename Tests/LibWeb/Ref/{ => input}/position-sticky-top.html (95%) rename Tests/LibWeb/Ref/{ => input}/positioned-elements-in-scroll-container.html (96%) rename Tests/LibWeb/Ref/{ => input}/resolve-paint-only-properties-after-layout.html (78%) rename Tests/LibWeb/Ref/{ => input}/scroll-iframe.html (92%) rename Tests/LibWeb/Ref/{ => input}/scroll-using-mousewheel-event.html (87%) rename Tests/LibWeb/Ref/{ => input}/scrollable-box-with-nested-stacking-context.html (91%) rename Tests/LibWeb/Ref/{ => input}/scrollable-contains-box-with-gradient-background.html (86%) rename Tests/LibWeb/Ref/{ => input}/scrollable-contains-boxes-with-hidden-overflow-1.html (97%) rename Tests/LibWeb/Ref/{ => input}/scrollable-contains-boxes-with-hidden-overflow-2.html (94%) rename Tests/LibWeb/Ref/{ => input}/scrollable-contains-boxes-with-hidden-overflow-and-opacity.html (97%) rename Tests/LibWeb/Ref/{ => input}/scrollable-contains-iframe.html (87%) rename Tests/LibWeb/Ref/{ => input}/scrollable-contains-rotated-boxes.html (93%) rename Tests/LibWeb/Ref/{ => input}/scrollable-contains-table.html (97%) rename Tests/LibWeb/Ref/{ => input}/scrollable-content-inside-fixed-position-box.html (93%) rename Tests/LibWeb/Ref/{ => input}/scrolled-text-with-clipped-corners.html (92%) rename Tests/LibWeb/Ref/{ => input}/separate-borders-inline-table.html (80%) rename Tests/LibWeb/Ref/{ => input}/simple-svg-mask.html (87%) rename Tests/LibWeb/Ref/{ => input}/space-glyph-width.html (72%) rename Tests/LibWeb/Ref/{ => input}/square-flex.html (77%) rename Tests/LibWeb/Ref/{ => input}/sticky-box-with-percentage-insets.html (87%) rename Tests/LibWeb/Ref/{ => input}/sticky-positioned-box-with-border.html (89%) rename Tests/LibWeb/Ref/{ => input}/svg-alpha-mask-attribute.html (85%) rename Tests/LibWeb/Ref/{ => input}/svg-alpha-mask.html (86%) rename Tests/LibWeb/Ref/{ => input}/svg-display-attr.html (82%) rename Tests/LibWeb/Ref/{ => input}/svg-file-matches-html-file.svg (74%) rename Tests/LibWeb/Ref/{ => input}/svg-image-positioning.html (61%) rename Tests/LibWeb/Ref/{ => input}/svg-inside-scroll-container.html (91%) rename Tests/LibWeb/Ref/{ => input}/svg-invalid-number-arguments.html (92%) rename Tests/LibWeb/Ref/{ => input}/svg-mask-in-defs.html (88%) rename Tests/LibWeb/Ref/{ => input}/svg-mask-maskUnits-userSpaceOnUse.html (89%) rename Tests/LibWeb/Ref/{ => input}/svg-non-local-clip-path-display-none.html (74%) rename Tests/LibWeb/Ref/{ => input}/svg-overflow-hidden.html (76%) rename Tests/LibWeb/Ref/{ => input}/svg-overflow-visible.html (76%) rename Tests/LibWeb/Ref/{ => input}/svg-path-incomplete-args.html (97%) rename Tests/LibWeb/Ref/{ => input}/svg-polygon-with-incomplete-points.html (91%) rename Tests/LibWeb/Ref/{ => input}/svg-symbol.html (75%) rename Tests/LibWeb/Ref/{ => input}/svg-use-defined-later.html (78%) rename Tests/LibWeb/Ref/{ => input}/text-decoration-in-anonymous-wrapper.html (80%) rename Tests/LibWeb/Ref/{ => input}/text-overflow.html (85%) rename Tests/LibWeb/Ref/{ => input}/textnode-segmenter-invalidation.html (73%) rename Tests/LibWeb/Ref/{ => input}/transform-2d-translate.html (70%) rename Tests/LibWeb/Ref/{ => input}/transform-box.html (72%) rename Tests/LibWeb/Ref/{ => input}/transform-calc-length-percentage.html (78%) rename Tests/LibWeb/Ref/{ => input}/unicode-range.html (74%) rename Tests/LibWeb/Ref/{ => input}/webkit-box-shadow.html (61%) rename Tests/LibWeb/Ref/{ => input}/webkit-text-fill-color.html (58%) rename Tests/LibWeb/Ref/{ => input}/z-index-should-not-affect-svg-painting-order.html (81%) delete mode 100644 Tests/LibWeb/Ref/nested-svg-as-img.html delete mode 100644 Tests/LibWeb/Screenshot/alt-frame.html delete mode 100644 Tests/LibWeb/Screenshot/css-backgrounds.html delete mode 100644 Tests/LibWeb/Screenshot/css-filter.html rename Tests/LibWeb/Screenshot/{assets => data}/background-no-repeat.html (100%) rename Tests/LibWeb/Screenshot/{assets => data}/background-repeat-x.html (100%) rename Tests/LibWeb/Screenshot/{assets => data}/background-repeat-y.html (100%) rename Tests/LibWeb/Screenshot/{assets => data}/background-repeat.html (100%) rename Tests/LibWeb/Screenshot/{assets => data}/car.png (100%) rename Tests/LibWeb/Screenshot/{assets => data}/smiley.png (100%) rename Tests/LibWeb/Screenshot/{assets => data}/vertical-rect.svg (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/alt-frame-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/border-radius-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/canvas-arcs-and-ellipses-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/canvas-fillstyle-rgb-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/canvas-implict-moves-and-lines-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/canvas-path-rect-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/canvas-shadow-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/canvas-text-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/canvas-unpremultiplied-image-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/clip-path-basic-shapes-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/clip-path-polygon-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/clip-path-transformed-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/css-background-clip-text-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/css-background-position-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/css-background-repeat-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/css-backgrounds-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/css-color-functions-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/css-filter-drop-shadow-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/css-filter-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/css-gradients-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/css-transform-box-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/inline-node-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/input-placeholder-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/meter-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/nested-boxes-with-hidden-overflow-and-border-radius-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/object-fit-position-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/opacity-stacking-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/outer-box-shadow-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/svg-axis-aligned-lines-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/svg-background-no-natural-size-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/svg-clip-path-and-mask-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/svg-clip-rule-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/svg-foreign-object-mask-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/svg-gradient-spreadMethod-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/svg-gradient-userSpaceOnUse-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/svg-maskContentUnits-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/svg-non-local-clip-path-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/svg-path-offset-rounding-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/svg-radialGradient-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/svg-simple-clipPath-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/svg-stroke-paintstyle-with-opacity-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/svg-text-effects-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/svg-textPath-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/text-decorations-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/text-direction-ref.html (100%) rename Tests/LibWeb/Screenshot/{reference => expected}/text-shadow-ref.html (100%) create mode 100644 Tests/LibWeb/Screenshot/input/alt-frame.html rename Tests/LibWeb/Screenshot/{ => input}/border-radius.html (93%) rename Tests/LibWeb/Screenshot/{ => input}/canvas-arcs-and-ellipses.html (92%) rename Tests/LibWeb/Screenshot/{ => input}/canvas-fillstyle-rgb.html (92%) rename Tests/LibWeb/Screenshot/{ => input}/canvas-implict-moves-and-lines.html (93%) rename Tests/LibWeb/Screenshot/{ => input}/canvas-path-rect.html (93%) rename Tests/LibWeb/Screenshot/{ => input}/canvas-shadow.html (89%) rename Tests/LibWeb/Screenshot/{ => input}/canvas-text.html (94%) rename Tests/LibWeb/Screenshot/{ => input}/canvas-unpremultiplied-image.html (85%) rename Tests/LibWeb/Screenshot/{ => input}/clip-path-basic-shapes.html (98%) rename Tests/LibWeb/Screenshot/{ => input}/clip-path-polygon.html (85%) rename Tests/LibWeb/Screenshot/{ => input}/clip-path-transformed.html (97%) rename Tests/LibWeb/Screenshot/{ => input}/css-background-clip-text.html (93%) rename Tests/LibWeb/Screenshot/{ => input}/css-background-position.html (97%) rename Tests/LibWeb/Screenshot/{ => input}/css-background-repeat.html (72%) create mode 100644 Tests/LibWeb/Screenshot/input/css-backgrounds.html rename Tests/LibWeb/Screenshot/{ => input}/css-color-functions.html (97%) rename Tests/LibWeb/Screenshot/{ => input}/css-filter-drop-shadow.html (91%) create mode 100644 Tests/LibWeb/Screenshot/input/css-filter.html rename Tests/LibWeb/Screenshot/{ => input}/css-gradients.html (99%) rename Tests/LibWeb/Screenshot/{ => input}/css-transform-box.html (94%) rename Tests/LibWeb/Screenshot/{ => input}/inline-node.html (92%) rename Tests/LibWeb/Screenshot/{ => input}/input-placeholder.html (72%) rename Tests/LibWeb/Screenshot/{ => input}/meter.html (92%) rename Tests/LibWeb/Screenshot/{ => input}/nested-boxes-with-hidden-overflow-and-border-radius.html (85%) rename Tests/LibWeb/Screenshot/{ => input}/object-fit-position.html (67%) rename Tests/LibWeb/Screenshot/{ => input}/opacity-stacking.html (79%) rename Tests/LibWeb/Screenshot/{ => input}/outer-box-shadow.html (96%) rename Tests/LibWeb/Screenshot/{ => input}/svg-axis-aligned-lines.html (77%) rename Tests/LibWeb/Screenshot/{ => input}/svg-background-no-natural-size.html (64%) rename Tests/LibWeb/Screenshot/{ => input}/svg-clip-path-and-mask.html (85%) rename Tests/LibWeb/Screenshot/{ => input}/svg-clip-rule.html (88%) rename Tests/LibWeb/Screenshot/{ => input}/svg-foreign-object-mask.html (85%) rename Tests/LibWeb/Screenshot/{ => input}/svg-gradient-spreadMethod.html (97%) rename Tests/LibWeb/Screenshot/{ => input}/svg-gradient-userSpaceOnUse.html (86%) rename Tests/LibWeb/Screenshot/{ => input}/svg-maskContentUnits.html (93%) rename Tests/LibWeb/Screenshot/{ => input}/svg-non-local-clip-path.html (76%) rename Tests/LibWeb/Screenshot/{ => input}/svg-path-offset-rounding.html (80%) rename Tests/LibWeb/Screenshot/{ => input}/svg-radialGradient.html (99%) rename Tests/LibWeb/Screenshot/{ => input}/svg-simple-clipPath.html (82%) rename Tests/LibWeb/Screenshot/{ => input}/svg-stroke-paintstyle-with-opacity.html (82%) rename Tests/LibWeb/Screenshot/{ => input}/svg-text-effects.html (94%) rename Tests/LibWeb/Screenshot/{ => input}/svg-textPath.html (83%) rename Tests/LibWeb/Screenshot/{ => input}/text-decorations.html (92%) rename Tests/LibWeb/Screenshot/{ => input}/text-direction.html (91%) rename Tests/LibWeb/Screenshot/{ => input}/text-shadow.html (93%) diff --git a/Documentation/Testing.md b/Documentation/Testing.md index a21953d6fca..8362a5a2e54 100644 --- a/Documentation/Testing.md +++ b/Documentation/Testing.md @@ -158,7 +158,7 @@ are identical. These are ideal for testing visual effects such as background ima difficult to recreate the effect in the reference page, (such as for SVG or canvas,) consider using a Screenshot test instead. -Each Ref test includes a special `` tag, which the test runner +Each Ref test includes a special `` tag, which the test runner uses to locate the reference page. In this way, multiple tests can use the same reference. ### Screenshot @@ -167,5 +167,5 @@ Screenshot tests can be thought of as a subtype of Ref tests, where the referenc to a screenshot of the expected output. In general, try to avoid using them if a regular Ref test would do, as they are sensitive to small rendering changes, and won't work on all platforms. -Like Ref tests, they require a `` tag to indicate the reference +Like Ref tests, they require a `` tag to indicate the reference page to use. diff --git a/Ladybird/Headless/Test.cpp b/Ladybird/Headless/Test.cpp index 0215bf36f80..665bb6639a0 100644 --- a/Ladybird/Headless/Test.cpp +++ b/Ladybird/Headless/Test.cpp @@ -80,17 +80,20 @@ static ErrorOr collect_dump_tests(Vector& tests, StringView path, St return {}; } -static ErrorOr collect_ref_tests(Vector& tests, StringView path) +static ErrorOr collect_ref_tests(Vector& tests, StringView path, StringView trail) { - TRY(Core::Directory::for_each_entry(path, Core::DirIterator::SkipDots, [&](Core::DirectoryEntry const& entry, Core::Directory const&) -> ErrorOr { - if (entry.type == Core::DirectoryEntry::Type::Directory) - return IterationDecision::Continue; + Core::DirIterator it(ByteString::formatted("{}/input/{}", path, trail), Core::DirIterator::Flags::SkipDots); + while (it.has_next()) { + auto name = it.next_path(); + auto input_path = TRY(FileSystem::real_path(ByteString::formatted("{}/input/{}/{}", path, trail, name))); + + if (FileSystem::is_directory(input_path)) { + TRY(collect_ref_tests(tests, path, ByteString::formatted("{}/{}", trail, name))); + continue; + } - auto input_path = TRY(FileSystem::real_path(ByteString::formatted("{}/{}", path, entry.name))); tests.append({ TestMode::Ref, input_path, {}, {} }); - - return IterationDecision::Continue; - })); + } return {}; } @@ -374,9 +377,9 @@ ErrorOr run_tests(Core::AnonymousBuffer const& theme, Gfx::IntSize window_ TRY(collect_dump_tests(tests, ByteString::formatted("{}/Layout", app.test_root_path), "."sv, TestMode::Layout)); TRY(collect_dump_tests(tests, ByteString::formatted("{}/Text", app.test_root_path), "."sv, TestMode::Text)); - TRY(collect_ref_tests(tests, ByteString::formatted("{}/Ref", app.test_root_path))); + TRY(collect_ref_tests(tests, ByteString::formatted("{}/Ref", app.test_root_path), "."sv)); #if !defined(AK_OS_MACOS) - TRY(collect_ref_tests(tests, ByteString::formatted("{}/Screenshot", app.test_root_path))); + TRY(collect_ref_tests(tests, ByteString::formatted("{}/Screenshot", app.test_root_path), "."sv)); #endif tests.remove_all_matching([&](auto const& test) { diff --git a/Tests/LibWeb/Ref/body-link-attribute.html b/Tests/LibWeb/Ref/body-link-attribute.html deleted file mode 100644 index defc9b9c019..00000000000 --- a/Tests/LibWeb/Ref/body-link-attribute.html +++ /dev/null @@ -1,4 +0,0 @@ - - - -link diff --git a/Tests/LibWeb/Ref/assets/2x2checkerboard.png b/Tests/LibWeb/Ref/data/2x2checkerboard.png similarity index 100% rename from Tests/LibWeb/Ref/assets/2x2checkerboard.png rename to Tests/LibWeb/Ref/data/2x2checkerboard.png diff --git a/Tests/LibWeb/Ref/assets/nested-svg.svg b/Tests/LibWeb/Ref/data/nested-svg.svg similarity index 100% rename from Tests/LibWeb/Ref/assets/nested-svg.svg rename to Tests/LibWeb/Ref/data/nested-svg.svg diff --git a/Tests/LibWeb/Ref/assets/rectangle.png b/Tests/LibWeb/Ref/data/rectangle.png similarity index 100% rename from Tests/LibWeb/Ref/assets/rectangle.png rename to Tests/LibWeb/Ref/data/rectangle.png diff --git a/Tests/LibWeb/Ref/assets/vertical-rect.svg b/Tests/LibWeb/Ref/data/vertical-rect.svg similarity index 100% rename from Tests/LibWeb/Ref/assets/vertical-rect.svg rename to Tests/LibWeb/Ref/data/vertical-rect.svg diff --git a/Tests/LibWeb/Ref/reference/abspos-escapes-scroll-container-ref.html b/Tests/LibWeb/Ref/expected/abspos-escapes-scroll-container-ref.html similarity index 100% rename from Tests/LibWeb/Ref/reference/abspos-escapes-scroll-container-ref.html rename to Tests/LibWeb/Ref/expected/abspos-escapes-scroll-container-ref.html diff --git a/Tests/LibWeb/Ref/reference/abspos-z-index-painting-order-ref.html b/Tests/LibWeb/Ref/expected/abspos-z-index-painting-order-ref.html similarity index 100% rename from Tests/LibWeb/Ref/reference/abspos-z-index-painting-order-ref.html rename to Tests/LibWeb/Ref/expected/abspos-z-index-painting-order-ref.html diff --git a/Tests/LibWeb/Ref/reference/alternative-style-sheets-ref.html b/Tests/LibWeb/Ref/expected/alternative-style-sheets-ref.html similarity index 100% rename from Tests/LibWeb/Ref/reference/alternative-style-sheets-ref.html rename to Tests/LibWeb/Ref/expected/alternative-style-sheets-ref.html diff --git a/Tests/LibWeb/Ref/reference/anonymous-wrapper-css-visibility-ref.html b/Tests/LibWeb/Ref/expected/anonymous-wrapper-css-visibility-ref.html similarity index 64% rename from Tests/LibWeb/Ref/reference/anonymous-wrapper-css-visibility-ref.html rename to Tests/LibWeb/Ref/expected/anonymous-wrapper-css-visibility-ref.html index eca160cbe3d..40b708b350e 100644 --- a/Tests/LibWeb/Ref/reference/anonymous-wrapper-css-visibility-ref.html +++ b/Tests/LibWeb/Ref/expected/anonymous-wrapper-css-visibility-ref.html @@ -1,5 +1,5 @@ - + - + diff --git a/Tests/LibWeb/Ref/reference/body-link-attribute-ref.html b/Tests/LibWeb/Ref/expected/body-link-attribute-ref.html similarity index 54% rename from Tests/LibWeb/Ref/reference/body-link-attribute-ref.html rename to Tests/LibWeb/Ref/expected/body-link-attribute-ref.html index 94fc993a07b..a7540c7f602 100644 --- a/Tests/LibWeb/Ref/reference/body-link-attribute-ref.html +++ b/Tests/LibWeb/Ref/expected/body-link-attribute-ref.html @@ -1,5 +1,5 @@ - + - + diff --git a/Tests/LibWeb/Ref/input/body-link-attribute.html b/Tests/LibWeb/Ref/input/body-link-attribute.html new file mode 100644 index 00000000000..f84c3228765 --- /dev/null +++ b/Tests/LibWeb/Ref/input/body-link-attribute.html @@ -0,0 +1,4 @@ + + + +link diff --git a/Tests/LibWeb/Ref/border-radius-shrink-zero-sized-box.html b/Tests/LibWeb/Ref/input/border-radius-shrink-zero-sized-box.html similarity index 62% rename from Tests/LibWeb/Ref/border-radius-shrink-zero-sized-box.html rename to Tests/LibWeb/Ref/input/border-radius-shrink-zero-sized-box.html index 5bdae7aadde..4a439a5d0ad 100644 --- a/Tests/LibWeb/Ref/border-radius-shrink-zero-sized-box.html +++ b/Tests/LibWeb/Ref/input/border-radius-shrink-zero-sized-box.html @@ -1,4 +1,4 @@ - +
hello friends diff --git a/Tests/LibWeb/Ref/grid-item-and-css-filter.html b/Tests/LibWeb/Ref/input/grid-item-and-css-filter.html similarity index 76% rename from Tests/LibWeb/Ref/grid-item-and-css-filter.html rename to Tests/LibWeb/Ref/input/grid-item-and-css-filter.html index 367bee8d945..13306173bcc 100644 --- a/Tests/LibWeb/Ref/grid-item-and-css-filter.html +++ b/Tests/LibWeb/Ref/input/grid-item-and-css-filter.html @@ -1,5 +1,5 @@ - + + + diff --git a/Tests/LibWeb/Ref/non-positioned-stacking-context-with-z-index-0.html b/Tests/LibWeb/Ref/input/non-positioned-stacking-context-with-z-index-0.html similarity index 57% rename from Tests/LibWeb/Ref/non-positioned-stacking-context-with-z-index-0.html rename to Tests/LibWeb/Ref/input/non-positioned-stacking-context-with-z-index-0.html index ebbd9b040eb..2fe2145df7f 100644 --- a/Tests/LibWeb/Ref/non-positioned-stacking-context-with-z-index-0.html +++ b/Tests/LibWeb/Ref/input/non-positioned-stacking-context-with-z-index-0.html @@ -1,5 +1,5 @@ - + - - diff --git a/Tests/LibWeb/Screenshot/alt-frame.html b/Tests/LibWeb/Screenshot/alt-frame.html deleted file mode 100644 index 94b502ca8a6..00000000000 --- a/Tests/LibWeb/Screenshot/alt-frame.html +++ /dev/null @@ -1,3 +0,0 @@ - - -Hello!! diff --git a/Tests/LibWeb/Screenshot/css-backgrounds.html b/Tests/LibWeb/Screenshot/css-backgrounds.html deleted file mode 100644 index 86e221ffa87..00000000000 --- a/Tests/LibWeb/Screenshot/css-backgrounds.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - CSS Background Tests - - - - - - - -
-
-
-
-
-
- -
-
-
-
-
-
- -
-
-
-
-
-
- -
-
- - -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- - - diff --git a/Tests/LibWeb/Screenshot/css-filter.html b/Tests/LibWeb/Screenshot/css-filter.html deleted file mode 100644 index 4344a29075b..00000000000 --- a/Tests/LibWeb/Screenshot/css-filter.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Tests/LibWeb/Screenshot/assets/background-no-repeat.html b/Tests/LibWeb/Screenshot/data/background-no-repeat.html similarity index 100% rename from Tests/LibWeb/Screenshot/assets/background-no-repeat.html rename to Tests/LibWeb/Screenshot/data/background-no-repeat.html diff --git a/Tests/LibWeb/Screenshot/assets/background-repeat-x.html b/Tests/LibWeb/Screenshot/data/background-repeat-x.html similarity index 100% rename from Tests/LibWeb/Screenshot/assets/background-repeat-x.html rename to Tests/LibWeb/Screenshot/data/background-repeat-x.html diff --git a/Tests/LibWeb/Screenshot/assets/background-repeat-y.html b/Tests/LibWeb/Screenshot/data/background-repeat-y.html similarity index 100% rename from Tests/LibWeb/Screenshot/assets/background-repeat-y.html rename to Tests/LibWeb/Screenshot/data/background-repeat-y.html diff --git a/Tests/LibWeb/Screenshot/assets/background-repeat.html b/Tests/LibWeb/Screenshot/data/background-repeat.html similarity index 100% rename from Tests/LibWeb/Screenshot/assets/background-repeat.html rename to Tests/LibWeb/Screenshot/data/background-repeat.html diff --git a/Tests/LibWeb/Screenshot/assets/car.png b/Tests/LibWeb/Screenshot/data/car.png similarity index 100% rename from Tests/LibWeb/Screenshot/assets/car.png rename to Tests/LibWeb/Screenshot/data/car.png diff --git a/Tests/LibWeb/Screenshot/assets/smiley.png b/Tests/LibWeb/Screenshot/data/smiley.png similarity index 100% rename from Tests/LibWeb/Screenshot/assets/smiley.png rename to Tests/LibWeb/Screenshot/data/smiley.png diff --git a/Tests/LibWeb/Screenshot/assets/vertical-rect.svg b/Tests/LibWeb/Screenshot/data/vertical-rect.svg similarity index 100% rename from Tests/LibWeb/Screenshot/assets/vertical-rect.svg rename to Tests/LibWeb/Screenshot/data/vertical-rect.svg diff --git a/Tests/LibWeb/Screenshot/reference/alt-frame-ref.html b/Tests/LibWeb/Screenshot/expected/alt-frame-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/alt-frame-ref.html rename to Tests/LibWeb/Screenshot/expected/alt-frame-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/border-radius-ref.html b/Tests/LibWeb/Screenshot/expected/border-radius-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/border-radius-ref.html rename to Tests/LibWeb/Screenshot/expected/border-radius-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/canvas-arcs-and-ellipses-ref.html b/Tests/LibWeb/Screenshot/expected/canvas-arcs-and-ellipses-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/canvas-arcs-and-ellipses-ref.html rename to Tests/LibWeb/Screenshot/expected/canvas-arcs-and-ellipses-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/canvas-fillstyle-rgb-ref.html b/Tests/LibWeb/Screenshot/expected/canvas-fillstyle-rgb-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/canvas-fillstyle-rgb-ref.html rename to Tests/LibWeb/Screenshot/expected/canvas-fillstyle-rgb-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/canvas-implict-moves-and-lines-ref.html b/Tests/LibWeb/Screenshot/expected/canvas-implict-moves-and-lines-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/canvas-implict-moves-and-lines-ref.html rename to Tests/LibWeb/Screenshot/expected/canvas-implict-moves-and-lines-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/canvas-path-rect-ref.html b/Tests/LibWeb/Screenshot/expected/canvas-path-rect-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/canvas-path-rect-ref.html rename to Tests/LibWeb/Screenshot/expected/canvas-path-rect-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/canvas-shadow-ref.html b/Tests/LibWeb/Screenshot/expected/canvas-shadow-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/canvas-shadow-ref.html rename to Tests/LibWeb/Screenshot/expected/canvas-shadow-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/canvas-text-ref.html b/Tests/LibWeb/Screenshot/expected/canvas-text-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/canvas-text-ref.html rename to Tests/LibWeb/Screenshot/expected/canvas-text-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/canvas-unpremultiplied-image-ref.html b/Tests/LibWeb/Screenshot/expected/canvas-unpremultiplied-image-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/canvas-unpremultiplied-image-ref.html rename to Tests/LibWeb/Screenshot/expected/canvas-unpremultiplied-image-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/clip-path-basic-shapes-ref.html b/Tests/LibWeb/Screenshot/expected/clip-path-basic-shapes-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/clip-path-basic-shapes-ref.html rename to Tests/LibWeb/Screenshot/expected/clip-path-basic-shapes-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/clip-path-polygon-ref.html b/Tests/LibWeb/Screenshot/expected/clip-path-polygon-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/clip-path-polygon-ref.html rename to Tests/LibWeb/Screenshot/expected/clip-path-polygon-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/clip-path-transformed-ref.html b/Tests/LibWeb/Screenshot/expected/clip-path-transformed-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/clip-path-transformed-ref.html rename to Tests/LibWeb/Screenshot/expected/clip-path-transformed-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/css-background-clip-text-ref.html b/Tests/LibWeb/Screenshot/expected/css-background-clip-text-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/css-background-clip-text-ref.html rename to Tests/LibWeb/Screenshot/expected/css-background-clip-text-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/css-background-position-ref.html b/Tests/LibWeb/Screenshot/expected/css-background-position-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/css-background-position-ref.html rename to Tests/LibWeb/Screenshot/expected/css-background-position-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/css-background-repeat-ref.html b/Tests/LibWeb/Screenshot/expected/css-background-repeat-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/css-background-repeat-ref.html rename to Tests/LibWeb/Screenshot/expected/css-background-repeat-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/css-backgrounds-ref.html b/Tests/LibWeb/Screenshot/expected/css-backgrounds-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/css-backgrounds-ref.html rename to Tests/LibWeb/Screenshot/expected/css-backgrounds-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/css-color-functions-ref.html b/Tests/LibWeb/Screenshot/expected/css-color-functions-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/css-color-functions-ref.html rename to Tests/LibWeb/Screenshot/expected/css-color-functions-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/css-filter-drop-shadow-ref.html b/Tests/LibWeb/Screenshot/expected/css-filter-drop-shadow-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/css-filter-drop-shadow-ref.html rename to Tests/LibWeb/Screenshot/expected/css-filter-drop-shadow-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/css-filter-ref.html b/Tests/LibWeb/Screenshot/expected/css-filter-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/css-filter-ref.html rename to Tests/LibWeb/Screenshot/expected/css-filter-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/css-gradients-ref.html b/Tests/LibWeb/Screenshot/expected/css-gradients-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/css-gradients-ref.html rename to Tests/LibWeb/Screenshot/expected/css-gradients-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/css-transform-box-ref.html b/Tests/LibWeb/Screenshot/expected/css-transform-box-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/css-transform-box-ref.html rename to Tests/LibWeb/Screenshot/expected/css-transform-box-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/inline-node-ref.html b/Tests/LibWeb/Screenshot/expected/inline-node-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/inline-node-ref.html rename to Tests/LibWeb/Screenshot/expected/inline-node-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/input-placeholder-ref.html b/Tests/LibWeb/Screenshot/expected/input-placeholder-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/input-placeholder-ref.html rename to Tests/LibWeb/Screenshot/expected/input-placeholder-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/meter-ref.html b/Tests/LibWeb/Screenshot/expected/meter-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/meter-ref.html rename to Tests/LibWeb/Screenshot/expected/meter-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/nested-boxes-with-hidden-overflow-and-border-radius-ref.html b/Tests/LibWeb/Screenshot/expected/nested-boxes-with-hidden-overflow-and-border-radius-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/nested-boxes-with-hidden-overflow-and-border-radius-ref.html rename to Tests/LibWeb/Screenshot/expected/nested-boxes-with-hidden-overflow-and-border-radius-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/object-fit-position-ref.html b/Tests/LibWeb/Screenshot/expected/object-fit-position-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/object-fit-position-ref.html rename to Tests/LibWeb/Screenshot/expected/object-fit-position-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/opacity-stacking-ref.html b/Tests/LibWeb/Screenshot/expected/opacity-stacking-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/opacity-stacking-ref.html rename to Tests/LibWeb/Screenshot/expected/opacity-stacking-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/outer-box-shadow-ref.html b/Tests/LibWeb/Screenshot/expected/outer-box-shadow-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/outer-box-shadow-ref.html rename to Tests/LibWeb/Screenshot/expected/outer-box-shadow-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/svg-axis-aligned-lines-ref.html b/Tests/LibWeb/Screenshot/expected/svg-axis-aligned-lines-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/svg-axis-aligned-lines-ref.html rename to Tests/LibWeb/Screenshot/expected/svg-axis-aligned-lines-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/svg-background-no-natural-size-ref.html b/Tests/LibWeb/Screenshot/expected/svg-background-no-natural-size-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/svg-background-no-natural-size-ref.html rename to Tests/LibWeb/Screenshot/expected/svg-background-no-natural-size-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/svg-clip-path-and-mask-ref.html b/Tests/LibWeb/Screenshot/expected/svg-clip-path-and-mask-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/svg-clip-path-and-mask-ref.html rename to Tests/LibWeb/Screenshot/expected/svg-clip-path-and-mask-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/svg-clip-rule-ref.html b/Tests/LibWeb/Screenshot/expected/svg-clip-rule-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/svg-clip-rule-ref.html rename to Tests/LibWeb/Screenshot/expected/svg-clip-rule-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/svg-foreign-object-mask-ref.html b/Tests/LibWeb/Screenshot/expected/svg-foreign-object-mask-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/svg-foreign-object-mask-ref.html rename to Tests/LibWeb/Screenshot/expected/svg-foreign-object-mask-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/svg-gradient-spreadMethod-ref.html b/Tests/LibWeb/Screenshot/expected/svg-gradient-spreadMethod-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/svg-gradient-spreadMethod-ref.html rename to Tests/LibWeb/Screenshot/expected/svg-gradient-spreadMethod-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/svg-gradient-userSpaceOnUse-ref.html b/Tests/LibWeb/Screenshot/expected/svg-gradient-userSpaceOnUse-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/svg-gradient-userSpaceOnUse-ref.html rename to Tests/LibWeb/Screenshot/expected/svg-gradient-userSpaceOnUse-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/svg-maskContentUnits-ref.html b/Tests/LibWeb/Screenshot/expected/svg-maskContentUnits-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/svg-maskContentUnits-ref.html rename to Tests/LibWeb/Screenshot/expected/svg-maskContentUnits-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/svg-non-local-clip-path-ref.html b/Tests/LibWeb/Screenshot/expected/svg-non-local-clip-path-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/svg-non-local-clip-path-ref.html rename to Tests/LibWeb/Screenshot/expected/svg-non-local-clip-path-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/svg-path-offset-rounding-ref.html b/Tests/LibWeb/Screenshot/expected/svg-path-offset-rounding-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/svg-path-offset-rounding-ref.html rename to Tests/LibWeb/Screenshot/expected/svg-path-offset-rounding-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/svg-radialGradient-ref.html b/Tests/LibWeb/Screenshot/expected/svg-radialGradient-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/svg-radialGradient-ref.html rename to Tests/LibWeb/Screenshot/expected/svg-radialGradient-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/svg-simple-clipPath-ref.html b/Tests/LibWeb/Screenshot/expected/svg-simple-clipPath-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/svg-simple-clipPath-ref.html rename to Tests/LibWeb/Screenshot/expected/svg-simple-clipPath-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/svg-stroke-paintstyle-with-opacity-ref.html b/Tests/LibWeb/Screenshot/expected/svg-stroke-paintstyle-with-opacity-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/svg-stroke-paintstyle-with-opacity-ref.html rename to Tests/LibWeb/Screenshot/expected/svg-stroke-paintstyle-with-opacity-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/svg-text-effects-ref.html b/Tests/LibWeb/Screenshot/expected/svg-text-effects-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/svg-text-effects-ref.html rename to Tests/LibWeb/Screenshot/expected/svg-text-effects-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/svg-textPath-ref.html b/Tests/LibWeb/Screenshot/expected/svg-textPath-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/svg-textPath-ref.html rename to Tests/LibWeb/Screenshot/expected/svg-textPath-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/text-decorations-ref.html b/Tests/LibWeb/Screenshot/expected/text-decorations-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/text-decorations-ref.html rename to Tests/LibWeb/Screenshot/expected/text-decorations-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/text-direction-ref.html b/Tests/LibWeb/Screenshot/expected/text-direction-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/text-direction-ref.html rename to Tests/LibWeb/Screenshot/expected/text-direction-ref.html diff --git a/Tests/LibWeb/Screenshot/reference/text-shadow-ref.html b/Tests/LibWeb/Screenshot/expected/text-shadow-ref.html similarity index 100% rename from Tests/LibWeb/Screenshot/reference/text-shadow-ref.html rename to Tests/LibWeb/Screenshot/expected/text-shadow-ref.html diff --git a/Tests/LibWeb/Screenshot/input/alt-frame.html b/Tests/LibWeb/Screenshot/input/alt-frame.html new file mode 100644 index 00000000000..d468d49853f --- /dev/null +++ b/Tests/LibWeb/Screenshot/input/alt-frame.html @@ -0,0 +1,3 @@ + + +Hello!! diff --git a/Tests/LibWeb/Screenshot/border-radius.html b/Tests/LibWeb/Screenshot/input/border-radius.html similarity index 93% rename from Tests/LibWeb/Screenshot/border-radius.html rename to Tests/LibWeb/Screenshot/input/border-radius.html index 4f6c24af188..8e25d701e52 100644 --- a/Tests/LibWeb/Screenshot/border-radius.html +++ b/Tests/LibWeb/Screenshot/input/border-radius.html @@ -1,6 +1,6 @@ - + - +
diff --git a/Tests/LibWeb/Screenshot/css-background-repeat.html b/Tests/LibWeb/Screenshot/input/css-background-repeat.html similarity index 72% rename from Tests/LibWeb/Screenshot/css-background-repeat.html rename to Tests/LibWeb/Screenshot/input/css-background-repeat.html index e0e71a374df..14743636fba 100644 --- a/Tests/LibWeb/Screenshot/css-background-repeat.html +++ b/Tests/LibWeb/Screenshot/input/css-background-repeat.html @@ -1,7 +1,7 @@ - + - - - - + + + +
diff --git a/Tests/LibWeb/Screenshot/input/css-backgrounds.html b/Tests/LibWeb/Screenshot/input/css-backgrounds.html new file mode 100644 index 00000000000..2575662a937 --- /dev/null +++ b/Tests/LibWeb/Screenshot/input/css-backgrounds.html @@ -0,0 +1,82 @@ + + + + + CSS Background Tests + + + + + + + +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+ + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + + diff --git a/Tests/LibWeb/Screenshot/css-color-functions.html b/Tests/LibWeb/Screenshot/input/css-color-functions.html similarity index 97% rename from Tests/LibWeb/Screenshot/css-color-functions.html rename to Tests/LibWeb/Screenshot/input/css-color-functions.html index df4f0bf4927..72b6749c864 100644 --- a/Tests/LibWeb/Screenshot/css-color-functions.html +++ b/Tests/LibWeb/Screenshot/input/css-color-functions.html @@ -1,5 +1,5 @@ - +

legacy rgb with numbers

diff --git a/Tests/LibWeb/Screenshot/css-filter-drop-shadow.html b/Tests/LibWeb/Screenshot/input/css-filter-drop-shadow.html similarity index 91% rename from Tests/LibWeb/Screenshot/css-filter-drop-shadow.html rename to Tests/LibWeb/Screenshot/input/css-filter-drop-shadow.html index ef380851ac9..a3f4b25db5b 100644 --- a/Tests/LibWeb/Screenshot/css-filter-drop-shadow.html +++ b/Tests/LibWeb/Screenshot/input/css-filter-drop-shadow.html @@ -1,6 +1,6 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tests/LibWeb/Screenshot/css-gradients.html b/Tests/LibWeb/Screenshot/input/css-gradients.html similarity index 99% rename from Tests/LibWeb/Screenshot/css-gradients.html rename to Tests/LibWeb/Screenshot/input/css-gradients.html index af32ba62997..4e7f23b4a4a 100644 --- a/Tests/LibWeb/Screenshot/css-gradients.html +++ b/Tests/LibWeb/Screenshot/input/css-gradients.html @@ -1,6 +1,6 @@ - + - + diff --git a/Tests/LibWeb/Screenshot/svg-background-no-natural-size.html b/Tests/LibWeb/Screenshot/input/svg-background-no-natural-size.html similarity index 64% rename from Tests/LibWeb/Screenshot/svg-background-no-natural-size.html rename to Tests/LibWeb/Screenshot/input/svg-background-no-natural-size.html index 386a2e7d653..184a3cb85ea 100644 --- a/Tests/LibWeb/Screenshot/svg-background-no-natural-size.html +++ b/Tests/LibWeb/Screenshot/input/svg-background-no-natural-size.html @@ -1,5 +1,5 @@ - +
- + diff --git a/Tests/LibWeb/Screenshot/svg-clip-path-and-mask.html b/Tests/LibWeb/Screenshot/input/svg-clip-path-and-mask.html similarity index 85% rename from Tests/LibWeb/Screenshot/svg-clip-path-and-mask.html rename to Tests/LibWeb/Screenshot/input/svg-clip-path-and-mask.html index 1406390f004..0242b45746d 100644 --- a/Tests/LibWeb/Screenshot/svg-clip-path-and-mask.html +++ b/Tests/LibWeb/Screenshot/input/svg-clip-path-and-mask.html @@ -1,4 +1,4 @@ - +