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

2012-11-06 Thread David Laakso
On Tue, Nov 6, 2012 at 10:25 AM, Philip TAYLOR  wrote:

> 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;}
>
>

Put zoom:1; in a conditional comment. This does not make it valid; however,
the w3c validation service will not see it.

Best,
David Laakso

-- 
Chelsea Creek Studio
http://ccstudi.com
__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] The value of zoom WAS: Trumping bad proprietary code.

2012-11-06 Thread Philippe Wittenbergh

Le 7 nov. 2012 à 04:00, Barney Carroll  a écrit :

> As I mentioned earlier, this is now
> implemented by WebKit too.

Just fwiw: ‘zoom’ has been in the Webkit code base for a long long time - I 
still have a test case on my local server that has a file creation date of 
03/2007. I've no idea how that property got into Webkit. Was it inherited from 
the old Konqueror code base?

For the rest, I agree with you (and Susan) - ‘zoom’ is a wonderful little thing 
to do just that: deal with some of the craziness of IE (7 and older) when 
needed, in addition to being a red flag in a stylesheet that make very clear 
what the purpose of that rule is.

Philippe
--
Philippe Wittenbergh
http://l-c-n.com




__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] The value of zoom WAS: Trumping bad proprietary code.

2012-11-06 Thread Barney Carroll
Digression:

On Tuesday, 6 November 2012, Susanne Jäger wrote:
>
> But all other methods have a real effect (and side effects), that may not
> fit in a special environment. zoom: 1; is wonderful meaningless, it does
> nothing (beside fixing a stupid old IE bug). The only real problem I see,
> is that you might miss an important validation error, when you get used to
> ignoring some.
>

Actually, IE's zoom property has some wonderfully useful effects other
browsers take a lot of hacking to reproduce — the ever-popular clearFix
among them. More on the subject here:
http://www.stubbornella.org/content/2010/12/09/the-hacktastic-zoom-fix/

Its meaning is pretty clear (although that's not what it's used for here):
apply a scalar zoom to the rendered element (with a value of 1, of course,
there's little appreciable effect). As I mentioned earlier, this is now
implemented by WebKit too. Coincidental that zoom was among many advanced
graphical layout properties shipped with IE6's engine that other browsers
are just starting to implement: transformation matrices are another
extension in this direction.

IE can be infuriating, but understanding it and working with it can be
quite rewarding.

Better the devil you know, in any case — at the moment I'm wrestling with
buggy Android WebKit box model issues relating to transform, and it's not
pretty — neither is it documented. Here again, W3C validity is little
comfort.


-- 
Regards,
Barney Carroll

barney.carr...@gmail.com
+44 7429 177278

barneycarroll.com
__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

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

2012-11-06 Thread Susanne Jäger

David Hucklesby schrieb am 06.11.2012 18:07:


There are other ways of giving old IE "layout" other than using the
proprietary "zoom" property, of course:

http://www.satzansatz.de/cssd/onhavinglayout.html#prop


But all other methods have a real effect (and side effects), that may 
not fit in a special environment. zoom: 1; is wonderful meaningless, it 
does nothing (beside fixing a stupid old IE bug). The only real problem 
I see, is that you might miss an important validation error, when you 
get used to ignoring some.


greetings
Susanne
__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


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

2012-11-06 Thread Philip TAYLOR



Barney Carroll wrote:


This is what seals it for me. I don't have user testing studies to
back the assertion up, but generally I assume users prefer websites
that work in whatever browser they're using to seeing a 'W3C CSS
valid' sticker at the bottom.


Just to clarify : I have neither the intention nor the desire add
a "W3C Valid" logo, link, or any analogous waste of space.  I want
to the code to be valid because "invalid" means "wrong".  Period.

If it's valid and doesn't work, then the browser is defective
(or aberrant : see recent thread concerning the "content" model
for elements).  Yes, I would like the code to work in any modern
browser; but if I have a choice between "valid" with 9/10 browsers,
and "invalid" with 10/10 browsers, I will opt for "valid".  Let
the users of the 1/10 defective/aberrant browsers whinge like
hell to their browser vendor and point him/her/them/it at the
relevant W3C specification.

Philip Taylor
__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


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

2012-11-06 Thread Barney Carroll
On Tuesday, 6 November 2012, Robert A. Rosenberg wrote:
>
> Just so you are aware, zoom:1 is a Windows/IE hack/fix to set HasLayOut so
> the element displays correctly. Aside from making the code display
> correctly in IE, it has no downside/effect with non-IE browsers so you can
> ignore it (or consider it W3C compliant since its purpose it to make IE act
> W3C compliant).
>

This is what seals it for me. I don't have user testing studies to back the
assertion up, but generally I assume users prefer websites that work in
whatever browser they're using to seeing a 'W3C CSS valid' sticker at the
bottom.

And when it comes to inheriting code that doesn't match my own style, my
rule of thumb is to leave it be unless it causes problems and I feel
confident I understand and can circumvent the underlying reasons behind it.


-- 
Regards,
Barney Carroll

barney.carr...@gmail.com
+44 7429 177278

barneycarroll.com
__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


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

2012-11-06 Thread Robert A. Rosenberg
At 15:25 + on 11/06/2012, Philip TAYLOR wrote about [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;}


Just so you are aware, zoom:1 is a Windows/IE hack/fix to set 
HasLayOut so the element displays correctly. Aside from making the 
code display correctly in IE, it has no downside/effect with non-IE 
browsers so you can ignore it (or consider it W3C compliant since its 
purpose it to make IE act W3C compliant).

__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


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

2012-11-06 Thread David Hucklesby

On 11/6/12 7:40 AM, Philip TAYLOR wrote:



Barney Carroll wrote:


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!


Pleased ?  No.  I would like browsers and rendering engines to
implement exactly what the spec. requires, neither more nor less.
Then /all/ of our lives would be greatly simplified.

Tom Livingston wrote:


If you could get into the proprietary code to (presumably) remove
the offending property, I wouldn't call that "hacking".


Well, it's hacking in the sense that when a new release
comes out, I will have to retrofit my hack, which is
what I was having to avoid having been bitten with that
very problem today ...


But, as many have said here in other threads, the validator is a
guideline, not a law. We know what the purpose of zoom is and
subsequently why your code isn't validating. I personally would be
able to live with that.


Mumble mumble mumble.  It is not validator-compliance that
I am seeking; it is W3C standards compliance, which is
(sometimes) a very different kiddle of fish ...

Ah well, my thanks to you both for your advice.

Philip Taylor


There are other ways of giving old IE "layout" other than using the
proprietary "zoom" property, of course:

http://www.satzansatz.de/cssd/onhavinglayout.html#prop

--
Cordially,
David


__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

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

2012-11-06 Thread Philip TAYLOR



Barney Carroll wrote:


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!


Pleased ?  No.  I would like browsers and rendering engines to
implement exactly what the spec. requires, neither more nor less.
Then /all/ of our lives would be greatly simplified.

Tom Livingston wrote:


If you could get into the proprietary code to (presumably) remove
the offending property, I wouldn't call that "hacking".


Well, it's hacking in the sense that when a new release
comes out, I will have to retrofit my hack, which is
what I was having to avoid having been bitten with that
very problem today ...


But, as many have said here in other threads, the validator is a
guideline, not a law. We know what the purpose of zoom is and
subsequently why your code isn't validating. I personally would be
able to live with that.


Mumble mumble mumble.  It is not validator-compliance that
I am seeking; it is W3C standards compliance, which is
(sometimes) a very different kiddle of fish ...

Ah well, my thanks to you both for your advice.

Philip Taylor
__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


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

2012-11-06 Thread Tom Livingston
Hi Philip,

If you could get into the proprietary code to (presumably) remove the
offending property, I wouldn't call that "hacking".

But, as many have said here in other threads, the validator is a
guideline, not a law. We know what the purpose of zoom is and
subsequently why your code isn't validating. I personally would be
able to live with that.

Just my 2¢...



On Tue, Nov 6, 2012 at 10:25 AM, Philip TAYLOR  wrote:
> 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
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/



-- 

Tom Livingston | Senior Interactive Developer | Media Logic |
ph: 518.456.3015x231 | fx: 518.456.4279 | mlinc.com
__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


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

2012-11-06 Thread Barney Carroll
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 
*Sent:* ‎November‎ ‎6‎, ‎2012 ‎3‎:‎25‎ ‎PM
*To:* css-d@lists.css-discuss.org,www-validator-...@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
List wiki/FAQ --
http://css-discuss.incutio.**com/
List policies --
http://css-discuss.org/**policies.html
Supported by evolt.org --
http://www.evolt.org/help_**support_evolt/
__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

[css-d] Trumping bad proprietary code.

2012-11-06 Thread Philip TAYLOR

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
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/