Add parsing for CSS corner-shape support
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
People
(Reporter: dholbert, Assigned: cheff)
References
(Blocks 2 open bugs)
Details
Attachments
(2 files, 2 obsolete files)
Filing a bug for corner-shape CSS parsing, as a building-block towards full support for the feature (tracked in bug 1726232).
https://drafts.csswg.org/css-borders-4/#corner-shaping-shorthand
| Assignee | ||
Comment 1•5 months ago
|
||
Updated•5 months ago
|
| Reporter | ||
Comment 2•5 months ago
|
||
Sorry, assignee got automatically set when I transferred the patch over. Unassigning to restore the prior state of things (cheff unassigned on the main bug in https://bugzilla.mozilla.org/show_bug.cgi?id=1726232#a133540423_766482 ); but cheff, if you'd like to push this forward more, please feel free. :) thanks!
| Assignee | ||
Comment 3•5 months ago
|
||
I tried to work on this but gave up in hopes that someone will take over (I still have so much to learn lol). Sorry
| Assignee | ||
Comment 5•5 months ago
|
||
Is there an estimate on when firefox is planning on adding this feature by the way?
| Reporter | ||
Comment 6•5 months ago
|
||
No estimate at the moment. (It's nominated for interop-2026, and if it ends up being part of that, then it'd arrive at some point in 2026. Or it might arrive during 2026 regardless; we'll see.)
Updated•1 month ago
|
| Assignee | ||
Comment 7•1 month ago
|
||
I managed to get it parsing and rendering! I wonder if I could submit it all in a single bug (https://bugzilla.mozilla.org/show_bug.cgi?id=1726232) so I dont have to deal with splitting it up into patches?
| Reporter | ||
Comment 8•1 month ago
•
|
||
Let's not do that, for several reasons:
-
Bug 1726232 is being used as a tracker-bug, and we'll use its dependency-list as a way to track followup items and newly-discovered issues until (and perhaps after) the implementation is high-quality enough to be shippable. So it's best not to attach any patches there -- even a potentially-complete patch or patch-series -- since we automatically close bugs once their attached patches land, and don't want to close bug 1726232 until we've gotten enough Nightly testing & fixed any identified issues & decided the feature is shippable.
-
Breaking up the patch helps ease cognitive load for reviewers (think about one set of things at a time and sign off on that set of things without having to get through everything)
-
Breaking up the patch helps helps direct the different pieces to different experts (folks reviewing the CSS pieces may not be experts in the webrender clipping/painting pieces)
-
Breaking up the patch lets "finished" parts get checked in, even as issues or open-questions are worked out in later parts. (So hypothetically we could check in your CSS parsing pieces -- behind an off-by-default about:config preference -- without needing to block that on having the rendering bits all done.)
-
It's a useful exercise to split up your patch (for a feature like this) into two or more pieces, as a way of making sure your patch's approach is right; that helps to identify unused parts or parts that don't fit together, and it's a useful bit of "self-review".
I'd suggest splitting this into at least two pieces:
(A) the css parts where we parse the property but it doesn't impact rendering
(B) the rendering parts
Those parts should be touching entirely different sets of files, probably -- and if you've got a working patch, I'd expect you could just look at the files-touched and split them into part (A) or part (B), and generate two patches, without too much trouble.
| Assignee | ||
Comment 9•1 month ago
|
||
Should I split these 2 patches into this bug or should I make a new bug to track the rendering part? I doubt one will build with the other one... But I could try
| Reporter | ||
Comment 10•1 month ago
|
||
Typically we do the CSS parts in one bug, and the rendering parts in another.
I doubt one will build with the other one... But I could try
The first should build on its own, and the second should layer on top of it. (CSS parsing support should work independently of whether you actually use the parsed value for rendering.)
See one example in bug 1901374 where we added support for a new property in CSS, which (at that point) has no code that actually uses it for rendering.
| Assignee | ||
Comment 11•1 month ago
|
||
Ok thanks, is there a "rendering" bug report im missing or should I create one?
| Reporter | ||
Comment 12•1 month ago
|
||
I've just filed bug 2035317 to serve that purpose.
| Assignee | ||
Comment 13•1 month ago
|
||
Thanks!
| Assignee | ||
Comment 14•1 month ago
|
||
Updated•1 month ago
|
| Assignee | ||
Comment 15•1 month ago
|
||
Updated•1 month ago
|
Comment 16•11 hours ago
|
||
Comment 17•11 hours ago
|
||
Comment 18•11 hours ago
|
||
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/60277 for changes under testing/web-platform/tests
Description
•