W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2020

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

From: Dara Keon via GitHub <sysbot+gh@w3.org>
Date: Fri, 24 Jul 2020 23:07:46 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-663767753-1595632065-sysbot+gh@w3.org>
```
@page {
	counter-increment: page;
}

body {
	counter-reset: page;
}

.pagination {
	position: fixed;
	top: 0;
}

.pagination::before {
	content: counter(page);
}
```

Firefox: prints zero at first page, nothing on the others
Chrome: prints zero at all pages

-- 
GitHub Notification of comment by darakeon
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1879#issuecomment-663767753 using your GitHub account
Received on Friday, 24 July 2020 23:07:48 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:11 UTC