Skip to content

Commit

Permalink
Bug 1780964 [wpt PR 35212] - Add cos() function for CSSTrigonometrcFu…
Browse files Browse the repository at this point in the history
…nctions, a=testonly

Automatic update from web-platform-tests
Add cos() function for CSSTrigonometrcFunctions

According to the CSS Values and Units Module Level 4 [1], the trigonometric function should be parsed and evaluated.

This CL adds cos() function and testcases for cos().

Feature status: [2]
Intent to prototype: [3]

[1] https://www.w3.org/TR/css-values-4/#trig-funcs
[2] https://chromestatus.com/feature/5165381072191488
[3] https://groups.google.com/a/chromium.org/g/blink-dev/c/-c9p-Sq_gWg

Bug: 1190444
Change-Id: Ib445b634f6862ad6f4a4afef5d9b97f33945a530
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3783853
Reviewed-by: Xiaocheng Hu <[email protected]>
Commit-Queue: Seokho Song <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1029641}

--

wpt-commits: 57fdb8bad3473e3f69029e74c93d1a632b132a50
wpt-pr: 35212
  • Loading branch information
DevSDK authored and moz-wptsync-bot committed Aug 3, 2022
1 parent 85ab48d commit 4c02425
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
"sin(33.333333grad)" :"calc(0.5)",
"sin(0.08333333turn)" :"calc(0.5)",
"cos(60deg)" :"calc(0.5)",
"cos(66.66666666grad)" :"calc(0.5)",
"cos(1.047197551)" :"calc(0.5)",
"cos(1.047197551rad)" :"calc(0.5)",
"cos(0.16666666666turn)" :"calc(0.5)",
"tan(45deg)" :"calc(1)",
"tan(45deg)" :"calc(1)",
"calc(sin(30deg) + cos(60deg) + tan(45deg)" :"calc(2)",
Expand Down

0 comments on commit 4c02425

Please sign in to comment.