為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Print document with CSS target selector

more options

I would like to check if there is a bug with printer in Firefox: HTML with CSS target selector https://drive.google.com/open?id=0B7w3ZGc8CTgqMUxWZkdONlhyZWM

If you select `ru` it will hide all non-ru text, but when you is trying to print Firefox resets target selector and again there is english text. Chrome is able to print correctly with CSS target selected elements

The question is it maybe a bug in Firefox that resets target selector?

I would like to check if there is a bug with printer in Firefox: HTML with CSS target selector https://drive.google.com/open?id=0B7w3ZGc8CTgqMUxWZkdONlhyZWM If you select `ru` it will hide all non-ru text, but when you is trying to print Firefox resets target selector and again there is english text. Chrome is able to print correctly with CSS target selected elements The question is it maybe a bug in Firefox that resets target selector?

被選擇的解決方法

It definitely could be a bug. I am not very conversant with sibling selectors, but even a basic rule like the following appear on screen but not in print preview:

#ru:target {border: 2px solid red;}

You can submit a bug report and see what comments you get, either confirming the problem or indicating some workaround, here:

https://bugzilla.mozilla.org/enter_bug.cgi

As you enter the description, the system will check for duplicates. Sometimes that will lead you to an existing discussion where you can vote for the bug to get fixed or contribute technical insights. ("Me too" comments are generally not helpful, however.)

從原來的回覆中察看解決方案 👍 0

所有回覆 (1)

more options

選擇的解決方法

It definitely could be a bug. I am not very conversant with sibling selectors, but even a basic rule like the following appear on screen but not in print preview:

#ru:target {border: 2px solid red;}

You can submit a bug report and see what comments you get, either confirming the problem or indicating some workaround, here:

https://bugzilla.mozilla.org/enter_bug.cgi

As you enter the description, the system will check for duplicates. Sometimes that will lead you to an existing discussion where you can vote for the bug to get fixed or contribute technical insights. ("Me too" comments are generally not helpful, however.)