Open Bug 1880365 Opened 2 years ago Updated 13 days ago

[css-backgrounds] background-clip: border-area

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

defect

Tracking

()

Size Estimate M

People

(Reporter: mozilla-apprentice, Unassigned)

References

(Depends on 1 open bug, Blocks 5 open bugs)

Details

(4 keywords, Whiteboard: [platform-feature])

User Story

web-feature: background-clip-border-area

A resolution was made for csswg-drafts/#9456.

[css-backgrounds] background-clip: border-area

  • RESOLVED: add background-clip: border-area

Discussion.

fantasai mentioned in IRC as a simple definition of the clipping area here:

fantasai If you paint background: url(red-swatch) border-box, url(blue-swatch) padding-box, the part that's red is the part we're proposing to clip to

("red-swatch"/"blue-swatch" here are hand-wavy placeholders representing images here, of course)

Keywords: dev-doc-needed

See also https://github.com/w3c/csswg-drafts/issues/11167#issuecomment-2474360495 for a minor update/clarification to how this works in the background shorthand property.

User Story: (updated)
Whiteboard: [platform-feature]
Blocks: 1994124

[assessing this as "Medium" size-estimate; a lot of the work is graphics, but it's just a clip so we're thinking not too bad.]

Size Estimate: --- → M
Blocks: 2044914

@Emilio I’m glad to see that Firefox has made progress on background-clip: border-area (bug 2045230)—this is exciting news.

Just as gradient borders were added in Nova’s new UI, they’re now everywhere, and border-area makes implementing this kind of UI much simpler and more user-friendly.

Jason and I have already shipped this feature in Chrome 150, and we hope Firefox can catch up.

https://chromestatus.com/feature/6234471210811392

is https://bugzilla.mozilla.org/show_bug.cgi?id=2003757 a duplicate with separate tracking ?

You need to log in before you can comment on or make changes to this bug.