Kërkoni te Asistenca

Shmangni karremëzime gjoja asistence. S’do t’ju kërkojmë kurrë të bëni një thirrje apo të dërgoni tekst te një numër telefoni, apo të na jepni të dhëna personale. Ju lutemi, raportoni veprimtari të dyshimtë duke përdorur mundësinë “Raportoni Abuzim”.

Mësoni Më Tepër

Input type number not printing when using @font-face

more options

I am on the current version of firefox (40.0.2) and have some trouble with the input type number and @font-face.

I have a simple page that i want to print out. The printed page does not show any text. If i comment out the import of the font it will just print fine. Does not work for local fonts either.

This is the source of my testpage:

<!DOCTYPE html>
<html>
    <head>
        <title>font-face test</title>
        <style>
            @import url(http://fonts.googleapis.com/css?family=Indie+Flower);
        </style>
    </head>
    <body>
        <form>
            <input type="number" />
        </form>
    </body>
</html>

The attached image shows a screenshot of the page and the printed pdf.

This does not happen in FF39 portable.

Any help would be appreciated.

I am on the current version of firefox (40.0.2) and have some trouble with the input type number and @font-face. I have a simple page that i want to print out. The printed page does not show any text. If i comment out the import of the font it will just print fine. Does not work for local fonts either. This is the source of my testpage: <pre><nowiki> <!DOCTYPE html> <html> <head> <title>font-face test</title> <style> @import url(http://fonts.googleapis.com/css?family=Indie+Flower); </style> </head> <body> <form> <input type="number" /> </form> </body> </html></nowiki></pre> The attached image shows a screenshot of the page and the printed pdf. This does not happen in FF39 portable. Any help would be appreciated.

Ndryshuar nga cor-el

Krejt Përgjigjet (5)

more options

Unfortunately, the screen shot did not post. You can attach the image(s) to a reply to yourself here: https://support.mozilla.org/questions/1078890#question-reply

more options

The attached screenshots show the printed pdf with @font-face activated and deactivated.

more options

I see it. I also can replicate the problem with text inputs if there is a value. To demonstrate this, you can inject fields into this page and use print preview to see they are not going to print:

(1) Open the web console in the lower part of the tab by pressing Ctrl+Shift+k

(2) Select the following script and paste it next to the caret (>>) at the bottom of the console and press Enter to run it:

var frm=document.createElement("form"); var q=document.querySelector('#main-content .question'); q.innerHTML='<p style="background:#ff8">Text: <input type="text" name="txt" value="Hello"><br>Number: <input type="number" name="num" value="25"></p>'+q.innerHTML;

(3) Close the web console using the little "x" at the far right end of its toolbar, and then use print preview

I'm not sure where the problem lies...

Ndryshuar nga jscher2000 - Support Volunteer

more options

Adding fields to another site, I don't see an issue with text inputs, perhaps because they are not styled with round corners. But the number input still does not print.

Form controls are printed as bitmaps. And pages containing downloadable fonts are printed as bitmaps. Maybe those do not mix for some new reason.

more options

I don't see anything that I can say for sure is relevant among the changes in Firefox 40 or in newly filed bugs, so you might to go ahead and file one: https://bugzilla.mozilla.org/