W3C home > Mailing lists > Public > www-style@w3.org > November 2007

RE: Proposal of @ua

From: Justin Rogers <justrog@microsoft.com>
Date: Tue, 27 Nov 2007 19:00:16 -0800
To: Todd Russell <groovechicken@gmail.com>, Andrew Fedoniouk <news@terrainformatica.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <00BD06E707F60B4F9D6A3E75C712209D49A4D0FBDA@NA-EXMSG-C104.redmond.corp.microsoft.com>

[Todd Russell wrote]
> When the browser detects an "open and", it will try to parse the
> following block and if it comes across something it cannot handle
> properly, if will just fail over to the @else.  This spares extra

Depending on the CSS implementation, you may not know at the time of parsing whether or not a block is completely valid or whether or not your browser supports the case. For instance, many unknown declarations are simply carried with the rule set as expando properties which can later be retrieved through script or by inspecting the textual output of the style sheet. This makes getting into the else block very difficult. This is also why the cascade option works, but doesn't work, since you can't guarantee that an entire rule set will be thrown out, only that the specific declaration will be thrown out or ignored which does generally work.

Received on Wednesday, 28 November 2007 11:17:19 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:31 UTC