Re: [css-variables] Resolving fallback-enabled cyclical property references

On Sun, Oct 21, 2012 at 9:58 AM, Fran├žois REMY
<> wrote:
> Hi everybody,
> Here was my (favorite) technical challenge of the week-end:
>    el {
>        my-property-a: get(   my-property-b || no-b    );
>        my-property-b: get(   my-property-a   );
>    }
> I would like to get things like this resolve to :
>    el {
>        my-property-a: no-b;
>        my-property-b: no-b;
>    }

I'm fine with making something like this work, but I question the
usefulness.  Cycles in your variables aren't an intentional feature;
they're an authoring error, and I define cycle detection just as an
error recovery mechanism.  While we could do more work to minimize the
amount of damage when fallback values exist, is it worthwhile to spend
the effort doing so when the original markup causing the problem is
clearly an accident?


Received on Monday, 22 October 2012 23:50:15 UTC