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 15504 - Initial value of 'transform-origin' should be 'auto'
Summary: Initial value of 'transform-origin' should be 'auto'
Status: RESOLVED FIXED
Alias: None
Product: CSS
Classification: Unclassified
Component: Transforms (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dirk Schulze
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-10 19:01 UTC by Dirk Schulze
Modified: 2012-02-10 16:23 UTC (History)
4 users (show)

See Also:


Attachments

Description Dirk Schulze 2012-01-10 19:01:02 UTC
The initial value of the 'transform-origin' property should be 'auto'. A new paragraph should describe the differences between SVG and HTML.

Sections that would need a change:
3 'The "transform-origin" Property' 2nd paragraph: "to be 'center'"
3 'The "transform-origin" Property' detailed property description: "Initial: 50% 50%"
5 'Transform Values and Lists' last paragraph: "transform-origin of 50% 50%"
Comment 1 Aryeh Gregor 2012-01-23 16:49:21 UTC
Are you saying we should add an actual "auto" keyword?  Or that we should make the initial value of transform-origin differ between SVG and HTML, instead of requiring "svg | * { transform-origin: top left }" in UA stylesheets?  The former doesn't seem to match browsers, and I don't know why we'd want it.  The latter I'm not sure about.
Comment 2 Dirk Schulze 2012-01-23 16:54:12 UTC
(In reply to comment #1)
> Are you saying we should add an actual "auto" keyword?  Or that we should make
> the initial value of transform-origin differ between SVG and HTML, instead of
> requiring "svg | * { transform-origin: top left }" in UA stylesheets?  The
> former doesn't seem to match browsers, and I don't know why we'd want it.  The
> latter I'm not sure about.

It would mean both. If the initial value is 'auto', we would also need 'auto' as keyword. A short description would notify that 'auto' means 'center center' for HTML elements and '0 0' for SVG elements.
Comment 3 Aryeh Gregor 2012-01-23 17:00:53 UTC
We could also change

  Initial: 50% 50%

to

  Initial: 0 0 for SVG elements, 50% 50% for all other elements

to achieve a similar effect.  Why is this better than the current spec, which requires a UA stylesheet rule?  (Notwithstanding the fact that the UA stylesheet rule given right now is wrong, as you point out in bug 15505.)
Comment 4 Dirk Schulze 2012-02-10 16:23:33 UTC
(In reply to comment #3)
> We could also change
> 
>   Initial: 50% 50%
> 
> to
> 
>   Initial: 0 0 for SVG elements, 50% 50% for all other elements
> 
> to achieve a similar effect.  Why is this better than the current spec, which
> requires a UA stylesheet rule?  (Notwithstanding the fact that the UA
> stylesheet rule given right now is wrong, as you point out in bug 15505.)

The initial values were already set when I wanted to modify the spec. I just clarified that just SVG elements without an associated CSS layout rect would take 0 0 as initial values. We want inline SVGSVGelements behave like every other HTML box element. Would be confusing if not.

I removed the UA string, because of the change. I don't think that we need to have it. Seems like a duplication, even if it can be interpreted as implementer hint.

Fixed that with the update on 2012/02/10.