Compass::compassPrefixed PHP Method

compassPrefixed() public static method

public static compassPrefixed ( $prefix, $list )
    public static function compassPrefixed($prefix, $list)
    {
        $list = static::compassList($list);
        $prefix = trim(preg_replace('/[^a-z]/', '', strtolower($prefix)));
        $reqs = array('pie' => array('border-radius', 'box-shadow', 'border-image', 'background', 'linear-gradient'), 'webkit' => array('background-clip', 'background-origin', 'border-radius', 'box-shadow', 'box-sizing', 'columns', 'gradient', 'linear-gradient', 'text-stroke'), 'moz' => array('background-size', 'border-radius', 'box-shadow', 'box-sizing', 'columns', 'gradient', 'linear-gradient'), 'o' => array('background-origin', 'text-overflow'));
        foreach ($list as $item) {
            $aspect = trim(current(explode('(', $item)));
            if (isset($reqs[$prefix]) && in_array($aspect, $reqs[$prefix])) {
                return new SassBoolean(TRUE);
            }
        }
        return new SassBoolean(FALSE);
    }