Skip to content

color as function #39

Closed
Closed

Description

@jtousek

I've found this little bug.
LESS input:

.color { color: rgb(0, 0, 0); }

CSS output:

.color { color:rgb(0,0,0); }

expected output:

.color { color:#000000; }

I'm not sure where is the right place to call $this->funcToColor($func);...

Activity

  1. jtousek commented on Apr 20, 2010

    @jtousek
    Author

    Now I believe it should be at the beginning of compileValue method like this.

      function compileValue($value) {
        if ($value[0] == 'function' && $color = $this->funcToColor($value)) {
          $value = $color;
        }
        //...
      }
    
  2. added a commit that references this issue on Jun 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions