Open Bug 1293810 Opened 8 years ago Updated 2 years ago

Replace comments/assertions about "geometry box" with correct term, "reference box", in CSS shapes code

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

Tracking Status
firefox51 --- affected

People

(Reporter: dholbert, Unassigned)

References

()

Details

Bug 1110460 added some code with mentions of "geometry box" or "geometry-box" in CSS Shapes code.

The spec uses the term "reference box" instead -- and we use that same term in other code. We should clean up all of these "geometry box" usages to all say "reference box", in CSS-Shapes-related code.

(Bug 1269990 begins this process; and then there are a few more spots that need fixing.)
I believe reference-box [1] is the term used in basic shape function, which is part of the syntax used by clip-path and shape-outside. I had replace most of the "geometry box" by "reference box" in part 6 and part 8 in bug 1288626. The only file I didn't touch is layout/style/StyleAnimationValue.cpp.

[1] https://drafts.csswg.org/css-shapes/#reference-box
Yeah, I'm seeing references to geometry-box in that file and in nsRuleNode.cpp:
 https://dxr.mozilla.org/mozilla-central/search?q=geometry-box

But: ah, hm. Just found the definition for geometry-box -- seems to be:
  https://drafts.fxtf.org/css-masking-1/#typedef-geometry-box

Maybe <geometry-box> describes the syntax, and "reference box" describes the concept?
Re comment 2:

> Maybe <geometry-box> describes the syntax, and "reference box" describes the concept?

Yes. I think so. The reference box for basic shapes used in clip-path and shape-outside is <geometry-box> and <shape-box> [1], respectively.

[1] https://drafts.csswg.org/css-shapes/#typedef-shape-box
<geometry-box> may follow & be _reference_ by <basic-shape>
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.