Closed (fixed)
Project:
Drupal core
Version:
9.4.x-dev
Component:
CSS
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Feb 2022 at 09:02 UTC
Updated:
9 Apr 2022 at 19:24 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
bserem commentedComment #3
bserem commentedComment #4
bserem commentedComment #5
vensiresIt seems the files were based on https://github.com/h5bp/main.css/blob/main/dist/_print.css. The original comment for example (eg. /* Black prints faster */) from that repo was inline and at some point transferred to the new line: https://github.com/h5bp/main.css/commit/15d950488b5f94a7fcfc4907b03ab060.... The link was missing though. Actually, these links might have been added as an attribution from Drupal to HTML5BOILERPLATE. Thus, I don't know if they should be removed or just replaced with a proper comment at the top of the file maybe.
Comment #6
bserem commented@vensires valid concern! I tried (a lot actually) to find a working or an archived (archive.org) reference towards h5bp but couldn't find any.
I also couldn't find any valid references that black actually prints faster, since it is a per-printer thing. That is why I opted to remove the "bad" link rather than replacing it.
As it is know, the currently referenced domain could contain anything in the near future, good or bad.
Comment #7
vensiresThe website is not .com but .org actually: https://h5bp.org. At least, nowadays.
Comment #8
bserem commentedThe .org is not a website with content, but rather a landing page with all the repositories of h5bp.
Comment #9
arismag commentedThe patch looks good to me, IMHO although the reference could change to https://github.com/h5bp/main.css/blob/main/dist/_print.css I don't think it adds any value in the current status, it would be cleaner if we remove it.
Comment #10
lauriiiWe could add a file documentation that this is based on https://github.com/h5bp/main.css/blob/main/dist/_print.css. IMO that would be helpful since I wouldn't have recalled this is taken from there if it wasn't mentioned there.
Comment #12
bserem commentedReference to source on github added.
Removed the patch file, switched to a Merge Request.
Please review.
Comment #13
arismag commentedSeems fine!
Comment #14
xjmWhat does "Black prints faster" mean?
Comment #15
xjmAt first I was worried that this had been injected by the PostCSS build, but the fact that it's also present in Seven makes that less likely.
It looks like this was introduced in Seven in #1892006: Include a print styling for Seven., which is already in the related issues. Comment #14 on that issue has the first patch to include the change. The comment reads:
The github repo mentioned still exists at https://github.com/h5bp/html5-boilerplate so maybe they just stopped paying for the other domain, and it got scooped up by whatever sketchy owner?
Comment #16
nod_don't have the exact url it's pointing to but we can see that the domain used to be legit: https://web.archive.org/web/20141217091001/h5bp.com/ url shortner don't work well over long period of time
Comment #17
lauriiiThis is a print specific CSS file and it overrides text color everywhere to black so that printers would be able to print the text faster using K (black) instead of mix of CMY (cyan, magenta and yellow).
For what I'm concerned the patch is ready to be committed. I just wanted to move the comment before the line that is being commented.
Comment #18
xjmThanks @nod_ and @lauriii.
The current docs lines with the new URL are over 80 chars so those need to be rewrapped. Other than that, this makes sense with the above info. Thanks!
Comment #19
bserem commentedThanks @xjm. Pushed a fix and resolved the threads in gitlab.
Many thanks to @lauriii for the explanation about print cartridges.
Up for review
Comment #20
arismag commentedOver 80 chars issue was fixed. If no other issues, I think we could move forward :)
P.S @lauriii nice explanation on print cartridges.
Comment #22
lauriiiComment #26
lauriiiCommitted 7064f9f and pushed to 10.0.x. Also committed to 9.4.x. Thanks!