clip-path: <geometry-box> fail when border-radius > 0
Categories
(Core :: Layout, defect)
Tracking
()
People
(Reporter: ana.tudor.lhnh, Unassigned)
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0
Steps to reproduce:
-
Create a
divwith non-zeromargin,border-width,padding,height. -
Try out various
<geometry-box>values forclip-path. -
Set a
border-radiusthat's > 0.
Actual results:
The clip-path does not follow the border-radius.
Live test https://codepen.io/thebabydino/pen/yLGyBrw
Expected results:
The clip-path should follow the border-radius in this case. This is what happens in Safari. Chrome doesn't yet support clip-path: <geometry-box> yet (bug https://bugs.chromium.org/p/chromium/issues/detail?id=694218), but it looks like it's being worked on, including the non-zero border-radius case (https://chromium-review.googlesource.com/c/chromium/src/+/4784067).
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Graphics: WebRender' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•2 years ago
|
||
Buggy rendering issue. Web compat. If there's an easy fix seems worth the effort.
Comment 3•2 years ago
|
||
Initial eval suggests it's not graphics. Sending over to Layout to have take a look.
Updated•2 years ago
|
Comment 4•2 years ago
|
||
Updated•2 years ago
|
Comment 5•2 years ago
|
||
TODO: Needs WPT tests, and needs to account for padding / border for the
radii.
Updated•2 years ago
|
Description
•