Re: [csswg-drafts] [css3-page] CSS counter for position fixed elements on paged media (#1879)

```css
@page {
  counter-increment: page;
  @bottom-center {
    content: counter(page);
  }
}
```
This works in all paged-media focused engines. If it's not working then that's an issue with the implementation, not the spec.

It's already been pointed out that counter values must be derived from the element tree, I just wanted to add that this approach underlies the `target-counter()` function - `target-counter("print-foot", page)` must evaluate to a single value. So trying to create page number footers with a `position: fixed` element should not be considered a valid approach.


-- 
GitHub Notification of comment by faceless2
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1879#issuecomment-583741775 using your GitHub account

Received on Saturday, 8 February 2020 14:34:46 UTC