7 ms·
I understand this, but let's be more concrete: when you use CSS to design for print (that is, in general, to produce a PDF), you are using a specific implementa
by p4bl0 3y ago
I understand this, but let's be more concrete: when you use CSS to design for print (that is, in general, to produce a PDF), you are using a specific implementation (e.g., Firefox will be used to produce the final PDF from your HTML and CSS, or Inkscape will be from your SVG and CSS). Given an implementation, you get a determined rendering, and it is this specific one that you need to be able to tweak to your needs. Same goes for application UI design: a given GUI framework comes with its own implementation of CSS rendering and it is its specific output that developers (or rather, theme designers) need to be able to have precise control over. In both cases, even if the standard does not precisely states what property values must give what rendering, you get something using the tools you have and you may want to tweak details to your taste using those same tools (even if only by trial and "error", but for that you need the option to fine tune the properties you want to play with).
Again, I'm not saying CSS is coherent nor that this is a good thing in the absolute sense, as I already said, I agree with your feeling, I'm just saying that I understand where the need of more precise control/tweaking over details that is sometime in the standard comes from.
- chrismorgan 3y agoYou’re abusing CSS. (Can’t say I never have…)
- p4bl0 3y agoWell I'm not, but some people are, probably. The need exists. That's my whole point :).
- jjgreen 3y agoHTML tables for layout FTW.
- gazook89 3y agoOne example that I contribute to: https://homebrewery.naturalcrit.com https://homebrewery.naturalcrit.com It is a code mirror app that outputs md styled like dnd books. It’s very much a “round peg in square hole” project, using html/css to create print materials, but for many it is good enough. It is just html and css, and allows customization, and precise styling requires precise css properties. As you noted, it does only work well in one browser, Chrome on desktop (even though I think all the devs use FF as their daily driver). But as another commenter noted, the answer is that you design on one machine and share via pdf.
- eropple 3y agoThis is ridiculously well-done. Thanks for sharing.
- DemocracyFTW2 3y ago> You’re abusing CSS. In the spirit of "not a bug but a feature" I'd say they use is demonstrating the "full potential" of CSS...