W3C home > Mailing lists > Public > www-validator-css@w3.org > November 2012

RE: [css-d] Trumping bad proprietary code.

From: Barney Carroll <barney.carroll@gmail.com>
Date: Tue, 6 Nov 2012 15:33:12 +0000
Message-ID: <2450926960744781350@unknownmsgid>
To: "css-d@lists.css-discuss.org" <css-d@lists.css-discuss.org>, "www-validator-css@w3.org" <www-validator-css@w3.org>, Philip TAYLOR <P.Taylor@rhul.ac.uk>
Nope!

The position was relative anyway — a new rule matching a selector does not
override all previous rules: it extends them (individual properties will be
over-written).

The W3C validator takes the sum of all things and statically analyses to
see if there’s anything invalid in there at all. It’s a lexer, not a
parser, so whatever the computed value of things is is no business of
its. The zoom property’s still there somewhere, so it’s still invalid.

Meanwhile, you’ll be pleased to know other browsers are implementing zoom
too:
http://cat-in-136.blogspot.com/2010/09/unofficial-css-property-zoom.html

WebKit is the new Trident!

Sent from Windows Mail

 *From:* Philip TAYLOR <P.Taylor@rhul.ac.uk>
*Sent:* ‎November‎ ‎6‎, ‎2012 ‎3‎:‎25‎ ‎PM
*To:* css-d@lists.css-discuss.org,www-validator-css@w3.org
*Subject:* [css-d] Trumping bad proprietary code.

Wishing (as always) to keep my sites 100% W3C standards compliant,
I am stuck with a bad property in proprietary code.  The offending
rule reads :

        .qmmc {position:relative;zoom:1;}

and so (rather naively) I inserted a later rule in my local
customisations that reads :

        .qmmc {position:relative}

Unfortunately (of course) the Validator still barfs on the earlier
entry.  If it had been a bad property value such as "position:
sideways", I am reasonably confident that a subsequent re-definition
as "position: relative" would have been fine, in that (presumably but
not certainly) the validator evaluates the cascade before deciding
which rules to validate (is this assertion true ?), but given that
it is not a bad property value but a bad property, is there nothing
I can do short of hacking proprietary code to make this site valid ?

Philip Taylor
______________________________**______________________________**__________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/**mailman/listinfo/css-d<http://www.css-discuss.org/mailman/listinfo/css-d>
List wiki/FAQ --
http://css-discuss.incutio.**com/<http://css-discuss.incutio.com/>
List policies --
http://css-discuss.org/**policies.html<http://css-discuss.org/policies.html>
Supported by evolt.org --
http://www.evolt.org/help_**support_evolt/<http://www.evolt.org/help_support_evolt/>
Received on Tuesday, 6 November 2012 15:33:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 6 November 2012 15:33:47 GMT