Using "Constrain image size" in "Sitewide Header Site Title" results in HTML code error

Permalink 0 0 Browser Info Environment
*Update* I had "width: 250px" in Advanced » "Custom Element Attribute" for that block, so that's the problem. I've changed it to
style="width: 250px;"
Please delete/close this bug report.

Concrete5 websites that use "Constrain image size" in the "Sitewide Header Site Title" have this incorrect HTML code:
<div class="ccm-custom-style-container ccm-custom-style-headersitetitle-673"
        width: 250px;>
    <a href="https://domain.com/index.php"><img src="https://domain.com/application/files/cache/thumbnails/5ea1f9ed7c2b5dde12810f8b9e6c1812.png" alt="logo" width="250" height="250" class="ccm-image-block img-responsive bID-673"></a>
</div>


Note the
width: 250px;
which should be
style="width: 250px;"


The problem is caused by /src/Block » CustomStyle.php » getCSS(), probably in this line:
foreach ($groups as $suffix => $styles) {
            $css .= '.' . str_replace(' ', '.', $this->getCustomStyleClass()) . $suffix . '{' . implode(';', $styles) . '}';

1 Attachment


Status: New
facechomp

concrete5 Environment Information

# concrete5 Version
Core Version - 8.4.5
Version Installed - 8.4.5
Database Version - 20180717000000

# concrete5 Packages
Stucco (2.1.6)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
7.2.19

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, intl, ionCube Loader, json, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, readline, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tidy, timezonedb, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 90
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 120
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
upload_max_filesize - 100M
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 4000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36