true,
'add_filter' => true,
];
/**
* CSS properties this sniff is looking for.
*
* @since WPCS 0.11.0
*
* @var array
*/
protected $target_css_properties = [
'visibility' => [
'type' => '!=',
'value' => 'hidden',
],
'display' => [
'type' => '!=',
'value' => 'none',
],
'opacity' => [
'type' => '>',
'value' => 0.3,
],
];
/**
* CSS selectors this sniff is looking for.
*
* @since WPCS 0.11.0
*
* @var array
*/
protected $target_css_selectors = [
'.show-admin-bar',
'#wpadminbar',
];
/**
* Regex template for use with the CSS selectors in combination with PHP text strings.
*
* @since WPCS 0.11.0
*
* @var string
*/
private $target_css_selectors_regex = '`(?:%s).*?\{(.*)$`';
/**
* Property to keep track of whether a ' ) ) {
// Make sure we check any content on this line before the closing style tag.
$this->in_style[ $file_name ] = false;
$content = trim( substr( $content, 0, strpos( $content, '' ) ) );
}
} elseif ( false !== strpos( $content, '' ) ) {
// Make sure we check any content on this line after the opening style tag.
$this->in_style[ $file_name ] = true;
$content = trim( substr( $content, ( strpos( $content, '