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

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