- Issue created by @guymandude
- Status changed to Postponed: needs info
11 months ago 2:49pm 10 February 2024 - š«š·France nod_ Lille
does the minified file looks ok? maybe the css minifier is having trouble with the comment?
If you remove the comment, does it looks ok?
- šŗšøUnited States guymandude
When I remove the comment the display is a mess. See attached screenshot.
I have not touched the minifile. How would I check it?
- Status changed to Active
10 months ago 5:46pm 13 February 2024 - š®š³India shivam-kumar
Please add exact file names and the path where the issue is occurring, it is unable to reproduce.
- Status changed to Postponed: needs info
10 months ago 8:51pm 13 February 2024 - šŗšøUnited States guymandude
web/themes/custom/infoseciab/infoseciab.info.yml
web/themes/custom/infoseciab/infoseciab.libraries.yml
web/themes/custom/infoseciab/css/iabck5.css - š§šŖBelgium wim leers Ghent š§šŖšŖšŗ
Repeating what @nod_ asked, but with no room for misinterpretation: what happens if you remove
/* <table "border-color:black;border-style:solid;width:250px;" border="1" cellspacing="0" cellpadding="0"> */
entirely from that file?
- šŗšøUnited States guymandude
My apologies, I should have been more clear. I have only ever removed the entire comment. What you see in that screenshot is what happens. The formatting goes haywire.
I'm not sure if I even have that test box around any more to troubleshoot further.
- š§šŖBelgium wim leers Ghent š§šŖšŖšŗ
That's very helpful, and that's also a relief. Because I can imagine that the CSS minifier doesn't deal with HTML-in-a-comment all to well š
But given that that's not what you tried, yet you managed to break things, that suggests that there really is something in your fine-looking CSS that's breaking our CSS minifier š¤
So I copy/pasted the literal snippet in the issue summary into a CSS validator, and it told me within seconds that there are at least 2 parsing errors š
.iab-table-format { background-color:#232624 border-color:black; border-style:solid; width:250px;" }
š the 2nd line is missing a trailing semi-colon
š the 5th line has a trailing double quote that should not be thereI bet those are causing this.
- šŗšøUnited States guymandude
Wow, do I feel like a tool Wim. I can't believe I didn't catch those CSS errors. You were right, they were the problem.
- Status changed to Closed: works as designed
10 months ago 10:33pm 1 March 2024 - š¬š§United Kingdom longwave UK
Thank you for getting back to us, glad we could get to the bottom of it.