From 2985a9997f18b83a9cd48d32b2d46b3b38f0bcb8 Mon Sep 17 00:00:00 2001 From: Tim Nguyen Date: Fri, 22 Sep 2023 05:54:52 +0200 Subject: [PATCH] WebKit export: CSS should never serialize to a single value (#42112) https://bugs.webkit.org/show_bug.cgi?id=258585 --- .../parsing/mask-position-valid.html | 22 +++++++++---------- css/cssom/serialize-values.html | 16 -------------- 2 files changed, 11 insertions(+), 27 deletions(-) diff --git a/css/css-masking/parsing/mask-position-valid.html b/css/css-masking/parsing/mask-position-valid.html index c70e18c47a3d36..858bb4b68ac695 100644 --- a/css/css-masking/parsing/mask-position-valid.html +++ b/css/css-masking/parsing/mask-position-valid.html @@ -11,28 +11,28 @@ diff --git a/css/cssom/serialize-values.html b/css/cssom/serialize-values.html index 1482e711897427..2d20f263f4fd6d 100644 --- a/css/cssom/serialize-values.html +++ b/css/cssom/serialize-values.html @@ -150,23 +150,7 @@ return null; } - // A more elegant way of doing this would be better, but for now this exception list handles cases where "center" must be omitted. var minimal_results = { - "background-position: 5% center": "5%", - "background-position: 0.5% center": "0.5%", - "background-position: -5% center": "-5%", - "background-position: -0.5% center": "-0.5%", - "background-position: 0px center": "0px", - "background-position: 1px center": "1px", - "background-position: 0.1em center": "0.1em", - "background-position: 0px center": "0px", - "background-position: -1px center": "-1px", - "background-position: -0.1em center": "-0.1em", - "background-position: left center": "left", - "background-position: center top": "top", - "background-position: center center": "center", - "background-position: center bottom": "bottom", - "background-position: right center": "right", }; function create_result(propertyName, actual, expected) {