getAttribute('style'); if ($style && preg_match('/overflow(-x|-y)?\s*:\s*(scroll|auto)/i', $style)) { if (!$element->hasAttribute('tabindex') || (int)$element->getAttribute('tabindex') < 0) { return $this->createViolation( $element, $this->getDescription(), 'Add tabindex="0" to the scrollable element so keyboard users can navigate to and scroll it.' ); } } return null; } }