Skip to content

Commit

Permalink
Bug 1868321 [wpt PR 43513] - Change parentheses for css math function…
Browse files Browse the repository at this point in the history
…s serialization test, a=testonly

Automatic update from web-platform-tests
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:
web-platform-tests/wpt#43364

Change-Id: I7879bfc2cc62af63dd7598d380e10e96426ff5dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5087987
Reviewed-by: Anders Hartvoll Ruud <andruudchromium.org>
Commit-Queue: Daniil Sakhapov <sakhapovchromium.org>
Cr-Commit-Position: refs/heads/main{#1233345}

--

wpt-commits: 27ed8f45421a9329cb918aa82c3c22f634925061
wpt-pr: 43513

UltraBlame original commit: 2047dad9ea5945b66b3c548e8e56391b3528568d
  • Loading branch information
marco-c committed Dec 16, 2023
1 parent 598337b commit a912faf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
</script>

0 comments on commit a912faf

Please sign in to comment.