1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not a Bug Automatic Browser Specific code doesn't work on Pages

Discussion in 'Resolved Bug Reports' started by Lisa, Jun 11, 2013.

  1. Lisa

    Lisa Well-Known Member

    (What a terrible thread title!)

    Anyway, I'm finding that if I add css that requires browser-specific css (say transform, for instance), while I can put in a single line for it to work within the forums, I have to list every variation - moz, o, ms, etc) to make it work within pages.
  2. Jeremy

    Jeremy Well-Known Member

    Are you placing the CSS directly into the template or is it in a separate .css file and including it via css.php (xen:include may automatically do that)? I believe the extrapolating of those lines of CSS occur in CSS.php. Lemme check real fast.

    Yup, seems that's a css.php function. (y)
    Brogan likes this.
  3. Lisa

    Lisa Well-Known Member

    Within the page template.
  4. Jeremy

    Jeremy Well-Known Member

    Yeah, it looks like css.php accomplished that using XenForo_CssOutput::translateCssRules();. Try adding it into its own page.css template and including it via css.php (you may only need to do a <xen call).
    Lisa likes this.
  5. Mike

    Mike XenForo Developer Staff Member

    Yeah, this is only done on included CSS.
    Lisa likes this.

Share This Page