This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15708 - "refer to the size of the element's box" is ambiguous
Summary: "refer to the size of the element's box" is ambiguous
Status: RESOLVED FIXED
Alias: None
Product: CSS
Classification: Unclassified
Component: Transforms (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Dean Jackson
QA Contact: This bug has no owner yet - up for the taking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-25 16:42 UTC by Aryeh Gregor
Modified: 2012-02-07 13:33 UTC (History)
4 users (show)

See Also:


Attachments

Description Aryeh Gregor 2012-01-25 16:42:48 UTC
For transform, transform-origin, and perspective-origin, Percentages says "refer to the size of the element's box".  This isn't clear: which box?  It should say "refer to the size of the element's border box", as in the merged Transforms spec.

(This is still not perfectly unambiguous, because it's left implicit that X values are relative to the width and Y values are relative to the height.  This is in contrast to the padding property, for instance, where all percentage values are relative to the width of the containing block.  But it's probably good enough.)
Comment 1 Aryeh Gregor 2012-01-25 17:40:47 UTC
(Note that at least Gecko doesn't actually use the border box of the element for perspective-origin -- it seems to use the border box of the first *child*, or something weird like that.  But WebKit seems to use the border box of the element, as expected.  See <https://bugzilla.mozilla.org/show_bug.cgi?id=721082>.)
Comment 2 Simon Fraser 2012-02-07 13:33:38 UTC
Combined spec now talks about the border box.