Bug 238371

Summary: [CSS Shapes] Add support for shape()
Product: WebKit Reporter: Noam Rosenthal <noam>
Component: CSSAssignee: Simon Fraser (smfr) <simon.fraser>
Status: NEW ---    
Severity: Normal CC: annulen, changseok, clopez, darin, esprehn+autocc, ews-watchlist, glenn, graouts, gyuyoung.kim, koivisto, kondapallykalyan, macpherson, menard, pdr, ryuan.choi, sam, sebastianzartner, sergio, simon.fraser, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 238373, 277183, 277211    
Bug Blocks:    
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch
ews-feeder: commit-queue-
Patch
ews-feeder: commit-queue-
Patch
ews-feeder: commit-queue-
Patch
none
Patch
ews-feeder: commit-queue-
Patch
ews-feeder: commit-queue-
Patch
none
Patch
none
Patch
ews-feeder: commit-queue-
Patch
ews-feeder: commit-queue-
Patch
none
Patch none

Description Noam Rosenthal 2022-03-25 05:39:44 PDT
See https://drafts.csswg.org/css-shapes-2/#shape-function
Comment 1 Radar WebKit Bug Importer 2022-03-28 06:43:16 PDT
<rdar://problem/90919476>
Comment 2 Noam Rosenthal 2022-04-19 00:25:21 PDT
Created attachment 457864 [details]
Patch
Comment 3 EWS Watchlist 2022-04-19 00:27:00 PDT
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Comment 4 Noam Rosenthal 2022-04-19 00:28:56 PDT
Corresponding Chromium bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1308431
Corresponding Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1758784
Comment 5 Noam Rosenthal 2022-04-19 00:44:05 PDT
Created attachment 457866 [details]
Patch
Comment 6 Noam Rosenthal 2022-04-19 01:11:50 PDT
Created attachment 457867 [details]
Patch
Comment 7 Noam Rosenthal 2022-04-19 02:42:57 PDT
Created attachment 457870 [details]
Patch
Comment 8 Noam Rosenthal 2022-04-19 03:00:33 PDT
Created attachment 457874 [details]
Patch
Comment 9 Noam Rosenthal 2022-04-19 04:37:54 PDT
Created attachment 457877 [details]
Patch
Comment 10 Noam Rosenthal 2022-04-19 05:58:30 PDT
Created attachment 457881 [details]
Patch
Comment 11 Noam Rosenthal 2022-04-19 06:57:10 PDT
Created attachment 457885 [details]
Patch
Comment 12 Noam Rosenthal 2022-04-19 07:24:20 PDT
Created attachment 457889 [details]
Patch
Comment 13 Noam Rosenthal 2022-04-19 07:34:25 PDT
Created attachment 457891 [details]
Patch
Comment 14 Noam Rosenthal 2022-04-19 08:56:20 PDT
Created attachment 457901 [details]
Patch
Comment 15 Noam Rosenthal 2022-04-19 10:30:30 PDT
Created attachment 457914 [details]
Patch
Comment 16 Antoine Quint 2022-04-19 11:39:36 PDT
Hi Noam. Do you know whether there are existing animation tests for shape()? I don't see any new PASS results in the diff for tests that would improve. Do we need to import more? If so, I think it would be nice to import them first as failures, so this patch shows the progress. If not, then it would be GREAT for this patch to add animation testing coverage and upstream it to WPT.
Comment 17 Noam Rosenthal 2022-04-19 11:48:39 PDT
(In reply to Antoine Quint from comment #16)
> Hi Noam. Do you know whether there are existing animation tests for shape()?
> I don't see any new PASS results in the diff for tests that would improve.
> Do we need to import more? If so, I think it would be nice to import them
> first as failures, so this patch shows the progress. If not, then it would
> be GREAT for this patch to add animation testing coverage and upstream it to
> WPT.

Yes of course, those tests are already upstreamed to WPT and imported to webkit, and this patch unskips them.

imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-shape-interpolation-001.html
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-shape-interpolation-002.html
Comment 18 Noam Rosenthal 2022-04-19 23:27:12 PDT
Created attachment 457962 [details]
Patch
Comment 19 Noam Rosenthal 2022-05-09 02:01:23 PDT
Review anyone?
Comment 20 Simon Fraser (smfr) 2023-01-26 14:13:10 PST
https://github.com/w3c/csswg-drafts/issues/5841
Comment 21 Noam Rosenthal 2023-01-26 21:11:21 PST
(In reply to Simon Fraser (smfr) from comment #20)
> https://github.com/w3c/csswg-drafts/issues/5841

I believe these were addressed 2 years ago already, Tab added a lot regarding animation support for example.
Comment 22 Noam Rosenthal 2023-01-26 23:11:10 PST
Apologies, I see that only some of the comments (the animation related ones) were addressed and I missed the other ones. Will get back to the issue.
Comment 23 Simon Fraser (smfr) 2024-07-23 15:01:45 PDT
Noam, do you mind if I take this over?
Comment 24 Noam Rosenthal 2024-07-24 01:02:36 PDT
(In reply to Simon Fraser (smfr) from comment #23)
> Noam, do you mind if I take this over?

Please do, that would make me very happy! I suspect that my patch from 2 years ago is still mostly valid, and https://github.com/w3c/csswg-drafts/issues/5841 is still up and I think not far from a resolution. Hopefully if WebKit takes this on I can make the case for prioritizing this work in chrome as well.