From 82ccc49b5250ab1fe3d93c0ca1c8dfee75bc9399 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 24 Aug 2023 12:01:28 +0100 Subject: [PATCH] LibWeb: Adjust ref-tests to reduce flakiness These two ref-tests involve two boxes positioned in the same place, with outlines. Outlines always have a border-radius, meaning that the corner pixels are not 100% opaque. (It seems to be 254 instead of 255.) With the test files painting two outlines, and the ref test only painting one, slight changes in the background color of the page would make that slight variation visible sometimes. So, let's avoid that inconsistency by always painting one outline instead of two. --- Tests/LibWeb/Ref/grid-items-painting-order-ref.html | 2 +- Tests/LibWeb/Ref/grid-items-painting-order.html | 2 +- Tests/LibWeb/Ref/item-with-negative-z-index-ref.html | 2 +- Tests/LibWeb/Ref/item-with-negative-z-index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/LibWeb/Ref/grid-items-painting-order-ref.html b/Tests/LibWeb/Ref/grid-items-painting-order-ref.html index c80af531c37..250fb706ac4 100644 --- a/Tests/LibWeb/Ref/grid-items-painting-order-ref.html +++ b/Tests/LibWeb/Ref/grid-items-painting-order-ref.html @@ -1,7 +1,7 @@