I cannot replicate this myself, but @Code Monkey reported to me that he was getting the lovely yellow and orange CSS errors on his site, because my Xen Media Gallery templates contain the use of an undefined style property @enableResponsive.
My first instinct was that debug mode was enabled, but after ensuring it wasn't enabled the ugly CSS error was still there and visible to all users. Including guests.
I believe the desired behaviour (therefore this is a bug report) is that these errors only show in debug mode (much like template errors).
Also, I think it's fair to say that the way the errors display is somewhat overkill. Even if you ARE in a development environment and you do need to see the errors, I don't feel they need to be bright orange and red and override the page background colour. I think printing them at the top of the screen like template errors is more appropriate
Thanks.
EDIT: I have since mitigated the errors myself, using conditionals like this:
My first instinct was that debug mode was enabled, but after ensuring it wasn't enabled the ugly CSS error was still there and visible to all users. Including guests.
I believe the desired behaviour (therefore this is a bug report) is that these errors only show in debug mode (much like template errors).
Also, I think it's fair to say that the way the errors display is somewhat overkill. Even if you ARE in a development environment and you do need to see the errors, I don't feel they need to be bright orange and red and override the page background colour. I think printing them at the top of the screen like template errors is more appropriate
Thanks.
EDIT: I have since mitigated the errors myself, using conditionals like this:
Code:
<xen:if is="{$xenOptions.currentVersionId} >= 1020031">
<xen:if is="@enableResponsive">
@media (max-width:@maxResponsiveWideWidth)
{
}
</xen:if>
</xen:if>