RESOLVED FIXED 187888
[css-masking] Unprefix -webkit-clip-path
https://bugs.webkit.org/show_bug.cgi?id=187888
Summary [css-masking] Unprefix -webkit-clip-path
Dirk Schulze
Reported 2018-07-22 01:23:51 PDT
In my testing, -webkit-clip-path covers the current support of clip-path as defined in SVG and currently implemented and is compatible to CSS Masking. There are open issues for fragments/inline boxes but those are present in other browsers like Chrome or Firefox as well and can be worked on over time. Firefox as well as Chrome unprefixed clip-path already.
Attachments
Patch (16.67 KB, patch)
2018-07-24 03:32 PDT, Dirk Schulze
no flags
Archive of layout-test-results from ews100 for mac-sierra (2.35 MB, application/zip)
2018-07-24 04:46 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews106 for mac-sierra-wk2 (2.91 MB, application/zip)
2018-07-24 04:53 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews115 for mac-sierra (3.12 MB, application/zip)
2018-07-24 05:18 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews121 for ios-simulator-wk2 (2.33 MB, application/zip)
2018-07-24 05:28 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews202 for win-future (13.00 MB, application/zip)
2018-07-24 07:26 PDT, EWS Watchlist
no flags
Patch (15.45 KB, patch)
2019-10-05 09:34 PDT, Dirk Schulze
no flags
Patch (16.64 KB, patch)
2019-10-10 22:58 PDT, Dirk Schulze
no flags
Archive of layout-test-results from ews215 for win-future (13.85 MB, application/zip)
2019-10-11 08:12 PDT, EWS Watchlist
no flags
Patch (42.60 KB, patch)
2019-10-19 01:24 PDT, Dirk Schulze
no flags
Patch (42.87 KB, patch)
2019-10-19 05:25 PDT, Dirk Schulze
no flags
Patch (42.09 KB, patch)
2019-10-19 07:56 PDT, Dirk Schulze
no flags
Patch for landing (42.60 KB, patch)
2019-10-21 11:52 PDT, Dirk Schulze
no flags
Patch for landing (42.47 KB, patch)
2019-10-30 09:20 PDT, Dirk Schulze
no flags
Dirk Schulze
Comment 1 2018-07-24 03:32:48 PDT
EWS Watchlist
Comment 2 2018-07-24 04:46:05 PDT
Comment on attachment 345652 [details] Patch Attachment 345652 [details] did not pass mac-ews (mac): Output: https://webkit-queues.webkit.org/results/8637030 New failing tests: imported/w3c/web-platform-tests/css/css-shapes/shape-outside/formatting-context/shape-outside-formatting-context.tentative.html imported/mozilla/svg/svg-integration/clipPath-html-01.xhtml imported/mozilla/svg/svg-integration/clipPath-html-04.xhtml imported/mozilla/svg/svg-integration/clipPath-html-02.xhtml imported/mozilla/svg/svg-integration/clipPath-html-05.xhtml imported/w3c/web-platform-tests/css/css-shapes/basic-shape-circle-ellipse-serialization.html imported/mozilla/svg/svg-integration/clipPath-html-06.xhtml imported/mozilla/svg/svg-integration/clipPath-html-03.xhtml
EWS Watchlist
Comment 3 2018-07-24 04:46:07 PDT
Created attachment 345660 [details] Archive of layout-test-results from ews100 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-sierra Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 4 2018-07-24 04:53:09 PDT
Comment on attachment 345652 [details] Patch Attachment 345652 [details] did not pass mac-wk2-ews (mac-wk2): Output: https://webkit-queues.webkit.org/results/8637044 New failing tests: imported/w3c/web-platform-tests/css/css-shapes/shape-outside/formatting-context/shape-outside-formatting-context.tentative.html imported/mozilla/svg/svg-integration/clipPath-html-01.xhtml imported/mozilla/svg/svg-integration/clipPath-html-04.xhtml imported/mozilla/svg/svg-integration/clipPath-html-02.xhtml imported/mozilla/svg/svg-integration/clipPath-html-05.xhtml imported/w3c/web-platform-tests/css/css-shapes/basic-shape-circle-ellipse-serialization.html imported/mozilla/svg/svg-integration/clipPath-html-06.xhtml imported/mozilla/svg/svg-integration/clipPath-html-03.xhtml
EWS Watchlist
Comment 5 2018-07-24 04:53:11 PDT
Created attachment 345661 [details] Archive of layout-test-results from ews106 for mac-sierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 6 2018-07-24 05:18:13 PDT
Comment on attachment 345652 [details] Patch Attachment 345652 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/8637068 New failing tests: imported/w3c/web-platform-tests/css/css-shapes/shape-outside/formatting-context/shape-outside-formatting-context.tentative.html imported/mozilla/svg/svg-integration/clipPath-html-01.xhtml imported/mozilla/svg/svg-integration/clipPath-html-04.xhtml imported/mozilla/svg/svg-integration/clipPath-html-02.xhtml imported/mozilla/svg/svg-integration/clipPath-html-05.xhtml imported/w3c/web-platform-tests/css/css-shapes/basic-shape-circle-ellipse-serialization.html imported/mozilla/svg/svg-integration/clipPath-html-06.xhtml imported/mozilla/svg/svg-integration/clipPath-html-03.xhtml
EWS Watchlist
Comment 7 2018-07-24 05:18:15 PDT
Created attachment 345663 [details] Archive of layout-test-results from ews115 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews115 Port: mac-sierra Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 8 2018-07-24 05:28:03 PDT
Comment on attachment 345652 [details] Patch Attachment 345652 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/8637076 New failing tests: imported/mozilla/svg/svg-integration/clipPath-html-01.xhtml imported/mozilla/svg/svg-integration/clipPath-html-04.xhtml imported/mozilla/svg/svg-integration/clipPath-html-02.xhtml imported/mozilla/svg/svg-integration/clipPath-html-05.xhtml imported/mozilla/svg/svg-integration/clipPath-html-06.xhtml imported/mozilla/svg/svg-integration/clipPath-html-03.xhtml
EWS Watchlist
Comment 9 2018-07-24 05:28:05 PDT
Created attachment 345665 [details] Archive of layout-test-results from ews121 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews121 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.4
Dirk Schulze
Comment 10 2018-07-24 05:48:25 PDT
All failing tests are progressions and we would need to update the references. Not sure how this is done for imported tests though.
EWS Watchlist
Comment 11 2018-07-24 07:26:05 PDT
Comment on attachment 345652 [details] Patch Attachment 345652 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/8638005 New failing tests: imported/mozilla/svg/svg-integration/clipPath-html-01.xhtml imported/mozilla/svg/svg-integration/clipPath-html-04.xhtml imported/mozilla/svg/svg-integration/clipPath-html-02.xhtml imported/mozilla/svg/svg-integration/clipPath-html-05.xhtml imported/mozilla/svg/svg-integration/clipPath-html-06.xhtml imported/mozilla/svg/svg-integration/clipPath-html-03.xhtml
EWS Watchlist
Comment 12 2018-07-24 07:26:17 PDT
Created attachment 345675 [details] Archive of layout-test-results from ews202 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews202 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Dirk Schulze
Comment 13 2019-10-05 09:34:35 PDT
Dirk Schulze
Comment 14 2019-10-05 09:35:21 PDT
Updated the patch to master. Failing tests still need to looked at.
Dirk Schulze
Comment 15 2019-10-10 22:58:33 PDT
EWS Watchlist
Comment 16 2019-10-11 08:12:07 PDT
Comment on attachment 380726 [details] Patch Attachment 380726 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/13120319 New failing tests: imported/mozilla/svg/svg-integration/clipPath-html-01.xhtml imported/mozilla/svg/svg-integration/clipPath-html-04.xhtml imported/mozilla/svg/svg-integration/clipPath-html-02.xhtml imported/mozilla/svg/svg-integration/clipPath-html-05.xhtml imported/mozilla/svg/svg-integration/clipPath-html-06.xhtml imported/mozilla/svg/svg-integration/clipPath-html-03.xhtml
EWS Watchlist
Comment 17 2019-10-11 08:12:10 PDT
Created attachment 380755 [details] Archive of layout-test-results from ews215 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews215 Port: win-future Platform: CYGWIN_NT-10.0-17763-3.0.5-338.x86_64-x86_64-64bit
Dirk Schulze
Comment 18 2019-10-11 09:12:59 PDT
All failing tests actually pass. However, the Mozilla tests seem odd since the references are either incorrect (assuming clipping doesn’t work, which does in Gecko) or hard to actually test with reference tests. The Shape test is simply incorrect I’d say. Any idea how they got integrated and what to do about them?
Dirk Schulze
Comment 19 2019-10-11 09:14:47 PDT
Said, could you please comment how you integrated the Mozilla tests and what is wrong with the reference tests?
Dirk Schulze
Comment 20 2019-10-19 01:24:27 PDT
Dirk Schulze
Comment 21 2019-10-19 05:25:15 PDT
Dirk Schulze
Comment 22 2019-10-19 07:56:30 PDT
Simon Fraser (smfr)
Comment 23 2019-10-21 10:35:23 PDT
Comment on attachment 381371 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=381371&action=review > Source/WebCore/css/parser/CSSPropertyParser.cpp:4143 > return consumeWebkitClipPath(m_range, m_context); I think you should rename this function too: consumeWebkitClipPath
Dirk Schulze
Comment 24 2019-10-21 11:52:28 PDT
Created attachment 381425 [details] Patch for landing
WebKit Commit Bot
Comment 25 2019-10-30 05:01:39 PDT
Comment on attachment 381425 [details] Patch for landing Rejecting attachment 381425 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'apply-attachment', '--no-update', '--non-interactive', 381425, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Logging in as commit-queue@webkit.org... Fetching: https://bugs.webkit.org/attachment.cgi?id=381425&action=edit Fetching: https://bugs.webkit.org/show_bug.cgi?id=187888&ctype=xml&excludefield=attachmentdata Processing 1 patch from 1 bug. Processing patch 381425 from bug 187888. Fetching: https://bugs.webkit.org/attachment.cgi?id=381425 Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit Parsed 26 diffs from patch file(s). patching file Source/WebCore/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file Source/WebCore/css/CSSComputedStyleDeclaration.cpp Hunk #1 FAILED at 387. Hunk #2 succeeded at 3541 (offset -382 lines). Hunk #3 succeeded at 3842 (offset -382 lines). 1 out of 3 hunks FAILED -- saving rejects to file Source/WebCore/css/CSSComputedStyleDeclaration.cpp.rej patching file Source/WebCore/css/CSSProperties.json patching file Source/WebCore/css/SVGCSSComputedStyleDeclaration.cpp patching file Source/WebCore/css/parser/CSSPropertyParser.cpp Hunk #3 succeeded at 4145 (offset 6 lines). patching file Source/WebCore/page/animation/CSSPropertyAnimation.cpp patching file Source/WebCore/rendering/style/SVGRenderStyle.h patching file Source/WebCore/rendering/style/SVGRenderStyleDefs.cpp patching file Source/WebCore/rendering/style/SVGRenderStyleDefs.h patching file Source/WebCore/rendering/style/WillChangeData.cpp patching file Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp patching file Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp patching file Source/WebCore/rendering/svg/SVGResources.cpp patching file LayoutTests/imported/mozilla/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file LayoutTests/imported/w3c/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file LayoutTests/imported/mozilla/svg/svg-integration/clipPath-html-01-expected.xhtml patching file LayoutTests/imported/mozilla/svg/svg-integration/clipPath-html-02-expected.xhtml patching file LayoutTests/imported/mozilla/svg/svg-integration/clipPath-html-02.xhtml patching file LayoutTests/imported/mozilla/svg/svg-integration/clipPath-html-03-expected.xhtml patching file LayoutTests/imported/mozilla/svg/svg-integration/clipPath-html-04-expected.xhtml patching file LayoutTests/imported/mozilla/svg/svg-integration/clipPath-html-05-expected.xhtml patching file LayoutTests/imported/mozilla/svg/svg-integration/clipPath-html-06-expected.xhtml patching file LayoutTests/imported/w3c/web-platform-tests/css/css-masking/parsing/clip-path-computed-expected.txt Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file LayoutTests/imported/w3c/web-platform-tests/css/css-masking/parsing/clip-path-computed-expected.txt.rej patching file LayoutTests/imported/w3c/web-platform-tests/css/css-masking/parsing/clip-path-valid-expected.txt patching file LayoutTests/imported/w3c/web-platform-tests/css/css-shapes/basic-shape-circle-ellipse-serialization-expected.txt patching file LayoutTests/imported/w3c/web-platform-tests/css/css-shapes/shape-outside/formatting-context/shape-outside-formatting-context.tentative-expected.html Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit Full output: https://webkit-queues.webkit.org/results/13191043
Dirk Schulze
Comment 26 2019-10-30 09:20:35 PDT
Created attachment 382321 [details] Patch for landing
WebKit Commit Bot
Comment 27 2019-10-30 10:07:09 PDT
Comment on attachment 382321 [details] Patch for landing Clearing flags on attachment: 382321 Committed r251776: <https://trac.webkit.org/changeset/251776>
WebKit Commit Bot
Comment 28 2019-10-30 10:07:11 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 29 2019-10-30 10:08:30 PDT
Carlos Alberto Lopez Perez
Comment 30 2020-03-16 21:43:10 PDT
Comment on attachment 382321 [details] Patch for landing View in context: https://bugs.webkit.org/attachment.cgi?id=382321&action=review > LayoutTests/imported/w3c/ChangeLog:14 > + * web-platform-tests/css/css-shapes/shape-outside/formatting-context/shape-outside-formatting-context.tentative-expected.html: > + Test result is incorrect: Doesn't test the shifing of content when shape-outside is set. ... > LayoutTests/imported/w3c/web-platform-tests/css/css-shapes/shape-outside/formatting-context/shape-outside-formatting-context.tentative-expected.html:27 > .flex { > display: flex; > height: 50px; > + width: 200px; > background: rebeccapurple; > + left: 50px; > + top: -100px; > + position: relative; > } > </style> > <div class="test"> I wonder about this changes. I don't see them exported on the WPT repository in the expected file there <https://github.com/web-platform-tests/wpt/blob/master/css/css-shapes/shape-outside/formatting-context/reference/shape-outside-formatting-context-ref.html> Is there any open PR for this?
Note You need to log in before you can comment on or make changes to this bug.