Closed
Description
As an example, if I need to know the width of a container element to calculate the width of a deeply nested element:
.container {
--container-width: 100%;
}
.container__deeply-nested-element {
// what I need is the actual container width to be able to correctly
// calculate the desired width of the nested element...
// but 100% is evaluated here to the element's parent :(
width: calc(var(--container-width, 0) / 3);
}