CSS counter does not increment for position fixed elements on printing media
Reported by
timdr...@gmail.com,
Oct 15 2017
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 Steps to reproduce the problem: Attempt to print page numbers with a 'position: fixed' element with 'content' set to a css counter. See code snippet at https://developer.mozilla.org/en-US/Apps/Progressive/Responsive/Media_types$revision/1227799#Action_Printing_a_document Print the page in Firefox and Chrome. What is the expected behavior? The counter should increment on every page, since the fixed element shows on every page. That gives you the page number. On Firefox this works. What went wrong? The counter never increments. Every page is marked as "Page 1". Did this work before? No Does this work in other browsers? Yes Chrome version: 61.0.3163.100 Channel: stable OS Version: OS X 10.12.6 Flash Version: The code snippet on MDN has been there since the first rev added in 2005, and has been referenced on other places when people try to print page numbers, like [1] I am not entirely sure if this is a spec'd behavior. CSS asks fixed positioned element to appear on every page on printing media [2], which Chrome does do it, but the CSS counter spec [3] does not mention whether or not counter should increment whenever the element is rendered. I have thus decided to try my luck here too see if I can get this clarified. [1] https://github.com/GoogleChrome/puppeteer/issues/373 and https://stackoverflow.com/questions/15797161/browser-support-for-css-page-numbers [2] https://www.w3.org/TR/CSS2/visuren.html#propdef-position [3] https://drafts.csswg.org/css-lists-3/#propdef-counter-increment
,
Oct 16 2017
Yes, we should. Could you send the email given you have better contexts? I am not sure I could elaborate this well...
,
Oct 16 2017
,
Dec 6 2017
,
Dec 17 2017
|
|||
►
Sign in to add a comment |
|||
Comment 1 by ericwilligers@chromium.org
, Oct 16 2017Owner: ericwilligers@chromium.org
Status: ExternalDependency (was: Unconfirmed)