Open Bug 1849602 Opened 2 years ago Updated 2 years ago

clip-path: <geometry-box> fail when border-radius > 0

Categories

(Core :: Layout, defect)

Firefox 116
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:

  1. Create a div with non-zero margin, border-width, padding, height.

  2. Try out various <geometry-box> values for clip-path.

  3. Set a border-radius that'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).

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.

Component: Untriaged → Graphics: WebRender
Product: Firefox → Core

Buggy rendering issue. Web compat. If there's an easy fix seems worth the effort.

Blocks: gfx-triage
Severity: -- → S3

Initial eval suggests it's not graphics. Sending over to Layout to have take a look.

Severity: S3 → --
Component: Graphics: WebRender → Layout
No longer blocks: gfx-triage
Attachment #9352564 - Attachment mime type: text/plain → text/html

TODO: Needs WPT tests, and needs to account for padding / border for the
radii.

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: