From 859a40789360180929cc3d43e24d6f155f7f7eef Mon Sep 17 00:00:00 2001 From: Daniil Sakhapov Date: Tue, 5 Dec 2023 07:31:59 -0800 Subject: [PATCH] Change parentheses for css math functions serialization test Add parentheses around multiplication operation as per spec: https://drafts.csswg.org/css-values/#serialize-a-calculation-tree we should add parentheses around the product node. Github discussion: https://github.com/web-platform-tests/wpt/pull/43364 Change-Id: I7879bfc2cc62af63dd7598d380e10e96426ff5dd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5087987 Reviewed-by: Anders Hartvoll Ruud Commit-Queue: Daniil Sakhapov Cr-Commit-Position: refs/heads/main@{#1233345} --- css/css-values/minmax-length-percent-serialize.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/css/css-values/minmax-length-percent-serialize.html b/css/css-values/minmax-length-percent-serialize.html index 20d54d8cb0c4f3..0a109d7c18ecfb 100644 --- a/css/css-values/minmax-length-percent-serialize.html +++ b/css/css-values/minmax-length-percent-serialize.html @@ -126,8 +126,8 @@ test_serialization( 'max((min(10%, 30px) + 10px) * 2 + 10px, 5em + 5%)', - 'max(10px + (10px + min(10%, 30px)) * 2, 5% + 5em)', - 'max(10px + (10px + min(10%, 30px)) * 2, 5% + 80px)', + 'max(10px + ((10px + min(10%, 30px)) * 2), 5% + 5em)', + 'max(10px + ((10px + min(10%, 30px)) * 2), 5% + 80px)', '85px', prop='width');