Automatically Build browser-specific css styles

Jeremy's Avatar


10 Jan, 2011 09:57 PM

LESS should be capable of producing all the browser-specific declarations from one single LESS declaration


would produce all these declarations automatically:

-webkit-border-radius -moz-border-radius border-radius

  1. 1 Posted by charuru2009 on 16 Jan, 2011 10:42 PM

    's Avatar

    Yes totally need this!

  2. 2 Posted by Ben on 20 Jan, 2011 11:35 PM

    Ben's Avatar

    No it shouldn't. It already allows this with mixins that you specifically design yourself. The exact example you gave is the same example from LESS's homepage:

    .border(@radius: 5px;) {

    -webkit-border-radius: @radius;
    -moz-border-radius: @radius;
    border-radius: @radius;


    .thing {



    LESS should never assume we want to do something but rather — as it does — give us the tools to make it simpler to declare.

  3. 3 Posted by Garbad on 16 Oct, 2012 07:04 PM

    Garbad's Avatar

    @Ben - point well made.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac