CSS Validation Errors on Inline CSS
-
First off: Thank you for your work on this awesome plugin!
The following inline styles contain invalid CSS. Line #s correspond to the validation errors in this screenshot: https://imgur.com/a/cSN5LCb
Line 89: .pum-theme-94244 .pum-container, .pum-theme-default-theme .pum-container { padding: 18px; border-radius: px; border: 1px none #000000; box-shadow: 1px 1px 3px px rgba( 2, 2, 2, 0.23 ); background-color: rgba( 249, 249, 249, 1.00 ) }
Line 90: .pum-theme-94244 .pum-title, .pum-theme-default-theme .pum-title { color: #000000; text-align: left; text-shadow: px px px rgba( 2, 2, 2, 0.23 ); font-family: inherit; font-weight: 400; font-size: 32px; font-style: normal; line-height: 36px }
Line 92: .pum-theme-94244 .pum-content + .pum-close, .pum-theme-default-theme .pum-content + .pum-close { position: absolute; height: auto; width: auto; left: auto; right: px; bottom: auto; top: px; padding: 8px; color: #ffffff; font-family: inherit; font-weight: 400; font-size: 12px; font-style: inherit; line-height: 36px; border: 1px none #ffffff; border-radius: px; box-shadow: 1px 1px 3px px rgba( 2, 2, 2, 0.23 ); text-shadow: px px px rgba( 0, 0, 0, 0.23 ); background-color: rgba( 0, 183, 205, 1.00 ) }
I have this temporarily patched on my staging site by adding these (hacky) lines on 70-72 in includes/functions/themes/template.php :
$value = $value === ‘px’ ? ‘0px’ : $value; // If no value is included with ‘px’, default to zero
$value = substr($value, 0, 2) === ‘px’ ? ‘0’ . $value : $value; // If the first two charactesr of the value are ‘px’, prefix a zero on value
$value = str_replace( ‘ px’, ‘ 0px’, $value ); // Replace any stray ‘px’ values with ‘0px’I’m unable to deactivate the Inline CSS feature (even though “Don’t load popup theme styles to the head.”) –setting appears to save, but has no effect. Inline CSS remains in HTML output.
No PHP errors or warnings are getting logged; running WordPress 5.5 on PHP 7.4 and MariaDB 10.3. No caching plugin enabled.
The topic ‘CSS Validation Errors on Inline CSS’ is closed to new replies.