CSS-Tricks / The-Printliminator

https://css-tricks.github.io/The-Printliminator/
GNU Lesser General Public License v3.0
352 stars 42 forks source link

Pending issues: #3

Open Mottie opened 8 years ago

Mottie commented 8 years ago

Misc

Mottie commented 8 years ago

@chriscoyier Do you have any feedback on the Styles section here?

The other questions are sort of self-explanatory, but meter elements don't show up when printing unless you specifically indicate to print background images (at least in Chrome). I opened a bug report, but it doesn't seem like much will happen unless a standard is established sigh

chriscoyier commented 8 years ago
Mottie commented 8 years ago

Oh, what I meant was when you apply the print stylesheet (Harjita one), should we add some extra styling to deal with those elements.

Mottie commented 8 years ago

And as for the HTML5 progress element, the graphic is all that prints, not the text.

To show the text, we could add the following to the print style (demo):

/* printing text of progress */
@media print {
    progress[value] {
        position: relative;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        width: auto;
        height: auto;
        border: none;
        box-shadow: none;
    }
    progress[value]:before {
        content: attr(value) '%';
        position: relative;
        top: -0.2em;
    }
    progress[value]::-webkit-progress-bar {
        background: white none;
    }
    progress[value]::-webkit-progress-value {
        background: white none;
    }
    progress[value]::-moz-progress-bar {
        background: white none;
    }
}

But this doesn't appear to work in Firefox :disappointed:

Maybe we should just leave it as-is.