Hi,
I am using the following to generate a responsive css grid:
Custom css on the block which is the css grid:
%root% {
–grid-max-col-count: 2;
–grid-min-col-size: 35rem;
–grid-number-of-gaps: calc(var(–grid-max-col-count) - 1);
–grid-col-size-calc: calc((100% - var(–grid-gap) * var(–grid-number-of-gaps)) / var(–grid-max-col-count));
}
var(–grid-gap) is a clamp function: clamp(2.4rem, calc(0.57vw + 2.22rem), 3rem)
Then this in the block’s grid template columns field:
repeat(auto-fit, minmax(min(100%,max(var(–grid-min-col-size), var(–grid-col-size-calc))), 1fr))
It works fine when rendered but the css validator gives this error:
Does anyone know what the issue is?
Thanks