On Monday 2011-04-04 05:15 -0700, Snodre wrote:
> I hope this is the right forum for this type of question.
> 
> I can’t seem to find any info regarding which doctype to use in order
> for Firefox 4 to accept the –moz-calc css function. Trial and error
> has shown that not supplying a doctype or using <!DOCTYPE HTML PUBLIC
> "-//W3C//DTD HTML 4.0 Transitional//EN"> will work, but then other
> needed properties will not, specifically anything defined with css
> attribute selectors (the site in question is fully compliant with
> strict XHTML 1.0 except for the use of –moz-calc).
> 
> In other words, when I use a doctype which makes width and heights
> calculated with –moz-calc render properly, any styles defined with an
> css attribute will be disregarded, for example:
> 
> Input[type=”text”] {…}
> 
> When looking at the given element in Firebug, no styles with attribute
> selections are applied.

The doctype shouldn't matter for -moz-calc(), but may cause other
differences as described in
https://developer.mozilla.org/en/Mozilla%27s_Quirks_Mode .

But I notice that you're not actually typing "-moz-calc"; the first
dash in what you've written above is a different type of dash.  If
that's what's in your style sheet, then it won't work.

Beyond that, it's hard to tell without a URL pointing to a page that
you expect to work, but doesn't.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to