W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2017

[csswg-drafts] [css3-page] CSS counter for position fixed elements on paged media

From: Eric Willigers via GitHub <sysbot+gh@w3.org>
Date: Mon, 16 Oct 2017 04:51:01 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-265646319-1508129445-sysbot+gh@w3.org>
ewilligers has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css3-page] CSS counter for position fixed elements on paged media ==
(From Blink issue [774830](https://bugs.chromium.org/p/chromium/issues/detail?id=774830))

A retired [MDN example](https://developer.mozilla.org/en-US/Apps/Progressive/Responsive/Media_types$revision/1227799#Action_Printing_a_document) showed page numbers using

```
@media print {
  #print-foot {
    display: block;
    position: fixed;
  }

  #print-foot:after {
  content: counter(page);
  counter-increment: page;
  }
}

```

The behavior differs across browsers:

Firefox:

- Page: 1
- Page: 2

Chrome, Edge:

- Page: 1
- Page: 1

Safari:

- Page: 1 (appears only on the 2nd page)


Which behavior is correct? Should the [counter-increment](https://drafts.csswg.org/css-lists-3/#counter-properties) occur each time the element is rendered?




Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1879 using your GitHub account
Received on Monday, 16 October 2017 04:50:56 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:19 UTC