Open
Bug 1465988
Opened 7 years ago
Updated 1 year ago
clip-path: <geometry-box> (e.g., border-box, margin-box, padding-box, content-box) makes content disappear
Categories
(Core :: Layout, enhancement, P3)
Core
Layout
Tracking
()
NEW
People
(Reporter: dbaron, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(1 file)
1.06 KB,
text/html
|
Details |
Per the spec at https://drafts.fxtf.org/css-masking-1/#the-clip-path the <geometry-box> values of 'clip-path' can be specified with a shape or on their own. With a shape, they seem to work reasonably, but on their own, the spec says:
If specified by itself, uses the edges of the specified box, including
any corner shaping (e.g. defined by border-radius [CSS3BG]), as clipping
path. See also “Shapes from box values” [CSS-SHAPES].
Instead, Gecko seems to make the shape disappear.
In other words, 'border-box' alone should behave the same as 'inset(0 0 0 0)' or similar, but it doesn't appear to do so. (With border-radius, things should be a little more interesting.)
Reporter | ||
Comment 1•7 years ago
|
||
Updated•7 years ago
|
Priority: -- → P3
Updated•2 years ago
|
Severity: normal → S3
Updated•1 year ago
|
Blocks: css-shapes-1
Comment 2•1 year ago
•
|
||
It seems Gecko doesn't implement "Shapes from box values" properly, either. There is a recent wpt update and these tests are failed: https://bugzilla.mozilla.org/show_bug.cgi?id=1852288
Updated•1 year ago
|
Depends on: css-masking-1
You need to log in
before you can comment on or make changes to this bug.
Description
•