@@ -1510,12 +1510,16 @@ <h2 id=transform-origin-property><span class=secno>8. </span> The ‘<a
15101510 < tr >
15111511 < td > < em > Value:</ em >
15121512
1513- < td > [ top | bottom ] |< br >
1514- [ <percentage> | <length> | left | center | right ] [
1515- <percentage> | <length> | top | center | bottom ]? |< br >
1516- [ center | [ left | right ] [ <percentage> | <length> ]? ]
1517- && [ center | [ top | bottom ] [ <percentage> |
1518- <length> ]? ]< br >
1513+ < td > [ <percentage> | <length> | left | center | right | top |
1514+ bottom]< br >
1515+ |< br >
1516+ [< br >
1517+ [ <percentage> | <length> | left | center | right
1518+ ]< br >
1519+ &&< br >
1520+ [ <percentage> | <length> | top | center | bottom
1521+ ]< br >
1522+ ] <length>?< br >
15191523
15201524 < tr >
15211525 < td > < em > Initial:</ em >
@@ -1557,37 +1561,22 @@ <h2 id=transform-origin-property><span class=secno>8. </span> The ‘<a
15571561 matrix</ i > </ a > , as described above.
15581562
15591563 < p > If only one value is specified, the second value is assumed to be
1560- ‘< code class =property > center</ code > ’. If two values are given
1561- and at least one value is not a keyword, then the first value represents
1562- the horizontal position (or offset) and the second represents the vertical
1563- position (or offset). < var > <percentage></ var > and
1564- < var > <length></ var > values here represent an offset of the transform
1565- origin from the top left corner of the element's bounding box.
1564+ ‘< code class =property > center</ code > ’. If one or two values are
1565+ specified, the third value is assumed to be ‘< code
1566+ class =css > 0px</ code > ’.
1567+
1568+ < p > If at least one of the first two values is not a keyword, then the first
1569+ value represents the horizontal position (or offset) and the second
1570+ represents the vertical position (or offset). The third value always
1571+ represents the Z position (or offset).
1572+
1573+ < p > < var > <percentage></ var > and < var > <length></ var > for the
1574+ first two values represent an offset of the transform origin from the top
1575+ left corner of the element's bounding box.
15661576
15671577 < p > For SVG elements without an associated CSS layout box the
15681578 < var > <length></ var > values represent an offset from the point of
1569- origin of the element's local coordinate space.
1570-
1571- < p > If three or four values are given, then each
1572- < var > <percentage></ var > or< var > <length></ var > represents an
1573- offset and must be preceded by a keyword, which specifies from which edge
1574- of the bounding box the offset is given. For example, ‘< code
1575- class =css > transform-origin: bottom 10px right 20px</ code > ’
1576- represents a ‘< code class =css > 10px</ code > ’ vertical offset up
1577- from the bottom edge and a ‘< code class =css > 20px</ code > ’
1578- horizontal offset leftward from the right edge. If three values are given,
1579- the missing offset is assumed to be zero.
1580-
1581- < p > Positive values represent an offset < em > inward</ em > from the edge of the
1582- bounding box. Negative values represent an offset < em > outward</ em > from
1583- the edge of the bounding box.
1584-
1585- < div class =issue >
1586- < p class =desc > Need to add 3D transform-origin variant in a way that is not
1587- ambiguous with the background-origin syntax (< a
1588- href ="https://www.w3.org/Bugs/Public/show_bug.cgi?id=15432 "> bug
1589- 15432</ a > ).</ p >
1590- </ div >
1579+ origin of the element's local coordinate space.</ p >
15911580 <!-- ======================================================================================================= -->
15921581
15931582 < h2 id =transform-style-property > < span class =secno > 9. </ span > The ‘< a
@@ -2570,11 +2559,10 @@ <h2 class=no-num id=property-index>Property index</h2>
25702559 < tr >
25712560 < th > < a class =property href ="#transform-origin "> transform-origin</ a >
25722561
2573- < td > [ top | bottom ] | [ <percentage> | <length> | left |
2574- center | right ] [ <percentage> | <length> | top | center |
2575- bottom ]? | [ center | [ left | right ] [ <percentage> |
2576- <length> ]? ] && [ center | [ top | bottom ] [
2577- <percentage> | <length> ]? ]
2562+ < td > [ <percentage> | <length> | left | center | right | top |
2563+ bottom] | [ [ <percentage> | <length> | left |
2564+ center | right ] && [ <percentage> |
2565+ <length> | top | center | bottom ] ] <length>?
25782566
25792567 < td > 0 0 for SVG elements without associated CSS layout box, 50% 50% for
25802568 all other elements
0 commit comments