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
transform
property.
transform
property refer bounding box.
so,translate
function oftransform
property refer bounding box.there not
translate
property.
css-transforms-2
there
transform
property.
transform
property refer size of bounding box.
so, translate function oftransform
property refer bounding box.there
translate
property.
translate
property 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