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 <[email protected]>
Commit-Queue: Daniil Sakhapov <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1233345}

--

wpt-commits: 27ed8f45421a9329cb918aa82c3c22f634925061
wpt-pr: 43513
  • Loading branch information
danielsakhapov authored and moz-wptsync-bot committed Dec 14, 2023
1 parent fe23ac1 commit 8cb4d9f
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 8cb4d9f

Please sign in to comment.