@param $styles:
- array of $styleNames to remove or
- string as $syleName to remove

@return self
775220
public function removeStyles($styles)
    {
        $currentStyles = $this->unpackStylesArray();

        if (is_array($styles)) {
            foreach ($styles as $styleToRemove) {
                if (isset($currentStyles[$styleToRemove])) {
                    unset($currentStyles[$styleToRemove]);
                }
            }
        } else {
            if (isset($currentStyles[$styles])) {
                unset($currentStyles[$styles]);
            }
        }

        $this->packStylesArray($currentStyles);

        return $this;
    }
7764
public function addStyle($styles)
    {
        foreach ((array) $styles as $style) {
            $this->escapeSequence .= Chalk::getEscapeSequence($style);
        }
    }
695030
public function setStyle(string $style): Bootstrap3Label
    {
        if (in_array($style, $this->supported_styles) === true) {
            $this->style = $style;
        } else {
            $this->style = 'default';
        }

        return $this;
    }
985895
public function setStyle(array $css_properties=[]) :self {
		// init the style attribute is it didn't exist already
		isset($this->attributes['style']) ?: $this->attributes['style'] = '';
		// for each of the css properties
		foreach($css_properties as $css_property => $css_value) {
			// add them to the already existing ones
			$this->attributes['style'] .= $css_property.':'.$css_value.';';
		}
		// return self
		return($this);
	}
1188786
public static function apply($str, $styles)
    {
        Arguments::validate($str, ['string']);
        Arguments::validate($styles, ['string', 'array']);

        if(!is_array($styles)) { $styles = [$styles]; }
        foreach($styles as $style) {
            $str = self::_apply($str, $style);
        }
        return $str;
    }
1076807
public function removeStyle($property)
    {
        // get string or array of style tags added
        $st = $this->template->get('style');

        // if no style, do nothing
        if (!$st) {
            return $this;
        }

        // if only one style, then put it in array
        if (!is_array($st)) {
            $st = array($st);
        }

        // remove all styles and set back the ones which don't match property
        $this->template->del('style');
        foreach ($st as $k => $rule) {
            if (strpos($rule, ';'.$property.':') === false) {
                $this->template->append('style', $rule);
            }
        }

        return $this;
    }
979787
public function &inline($styles)
    {
        $css_object = new CssObject();

        $css_object->setType('inline');
        $css_object->setCss($styles);

        $this->add($css_object);

        return $css_object;
    }
634833
public function set(string $name, interfaces\Style $style) : Map
    {
        $this->items[strtolower($name)] = $style;

        return $this;
    }
914138
protected function removeCss($css)
    {
        $key=array_keys($this->data['css']['internal'],$css);
        if($key){
            array_splice($this->data['css']['internal'],$key[0],1);
        }

        $key=array_keys($this->data['css']['external'],$css);
        if($key){
            array_splice($this->data['css']['external'],$key[0],1);
        }
    }
934563
private function appendStyles(array $styles)
    {
        if (empty($styles)) {
            return;
        }

        $string = '';
        $prependSemicolon = false;
        foreach ($styles as $key => $value) {
            if ($prependSemicolon) {
                $string .= '; ';
            }
            $prependSemicolon = true;
            $string .= $key.': '.$value;
        }

        $this->appendAttribute('style', $string);
    }
983473
public static function convert(Style $style)
    {
        $options = array();

        if ($style->isBold()) {
            $options[] = 'bold';
        }

        if ($style->isBlinking()) {
            $options[] = 'blink';
        }

        if ($style->isUnderlined()) {
            $options[] = 'underscore';
        }

        if ($style->isInverse()) {
            $options[] = 'reverse';
        }

        if ($style->isHidden()) {
            $options[] = 'conceal';
        }

        return new OutputFormatterStyle($style->getForegroundColor(), $style->getBackgroundColor(), $options);
    }
568386
public function remove($names)
    {
        foreach((array) $names as $name)
        {
            if(!isset($this->__options[$name])) {
                $key = array_search($name, $this->__options, true);
            } else {
                $key = $name;
            }

            if($key !== false) {
                unset($this->__options[$key]);
            }
        }

        return $this;
    }
1268523
public function &createInline($styles): CssObjectInterface
    {
        $css = new CssObject();

        $css->setType($css::TYPE_INLINE);
        $css->setContent($styles);

        $this->addObject($css);

        return $css;
    }
1271333
public function setstyle($style, array $params = [], $prepend = false, $conditional = '')
    {
        return $this->headStyle(array_merge($params, ['type' => 'text/css', 'style' => $style]), $prepend, $conditional);
    }
1138397
public function enqueueStyles($styles)
    {
        // Check styles
        if (empty($styles)) {
            return;
        }

        $defaults = [
            'src'   => false,
            'deps'  => [],
            'ver'   => false,
            'media' => 'all'
        ];

        // Iterate on all
        foreach ($styles as $handle => $opts) {
            if (!is_array($opts)) {
                continue;
            }

            // Merge options with defaults and enqueue style
            $opts = array_merge($defaults, $opts);
            wp_enqueue_style($handle, $opts['src'], $opts['deps'], $opts['ver'], $opts['media']);
        }
    }
1222837
public function remove($css)
    {
        /**
         * @var \DOMNode $node
         */
        foreach ($this->_document->getQuery()->css($css, $this->_node) as $node) {
            $node->parentNode->removeChild($node);
        }

        return $this;
    }
891424
public function remove( ...$with_keys ) : self {

		foreach ( $with_keys as $keys ) {
			foreach ( (array) $keys as $k ) {
				$this->offsetUnset( $k );
			}
		}

		return $this;
	}