El mié, 03-08-2005 a las 18:48, Robert Lascelle escribió:
> Hi,
>
> I'm working now on the System.Drawing namespace.
> (Color and ColorTranslator classes).
>
> I made a small test program, and I have 3 different
> problem between my implementation of ColorTranslator
> and the MS one.
...
> A logical example:
> ColorTranslator.FromHtml("#f23")
> MS return a Color "#ff2233"
> In Internet Explorer (a MS product) if i write
> <font color="#f23">1 2 3</font><br>
> <font color="#ff2233">1 2 3</font><br>
> The first one show a black (or almost black) text.
> The second line show a red text.
>
> Should i code blindly using MS spec or should i code
> logicaly?
This sound a lot like quirk modes:
http://www.mozilla.org/docs/web-developer/quirks/
Maybe you can have ColorTranlator.SetMode("Standard") vs
ColorTranslator.SetMode("Quirk");
_______________________________________________
Developers mailing list
[email protected]
http://dotgnu.org/mailman/listinfo/developers