css3 - css transform: translate() % always refer to the size of bounding box? -
i'm confused specifications says. let me clarify understanding.
specifications
https://www.w3.org/tr/css-transforms-1/#propdef-transform
percentages: refer size of bounding box
https://drafts.csswg.org/css-transforms-2/#propdef-translate
percentages: relative width of containing block (for first value) or height (for second value)
my understanding
css-transforms-1
there
transformproperty.
transformproperty refer bounding box.
so,translatefunction oftransformproperty refer bounding box.there not
translateproperty.
css-transforms-2
there
transformproperty.
transformproperty refer size of bounding box.
so, translate function oftransformproperty refer bounding box.there
translateproperty.
translateproperty refer containing box.
so, think % of transform: translate() refer bounding box,
right?
your second link draft used discussion. far know hasn't made final css standards or implementations.
so guess right, percentages related element's bounding box, not containing block.
Comments
Post a Comment