Open
Bug 1117798
Opened 11 years ago
Updated 1 year ago
[css3-page] implement CSS3 page-based counters in @page rules
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
NEW
People
(Reporter: benoit.leseul, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug, )
Details
(Keywords: dev-doc-needed)
It would be nice to be able to use CSS counters in @page rules as described in the CSS3 page module. That way we could get proper page numbers in printed HTML pages and never have to resort to PDFs or other documents formats.
I understand from a comment on StackOverflow that margin boxes may need to be supported first, so I'm adding bug #856371 as a dependency.
http://stackoverflow.com/questions/15797161/browser-support-for-css-page-numbers
I also found an interesting series of tests here, with implementations details as used in WebToPDF:
http://blog.tallcomponents.com/2011/03/css3-page-counter.html
Updated•11 years ago
|
Keywords: dev-doc-needed
Comment 2•7 years ago
|
||
Currently there isn't any browser supporting CSS3 page-based counters.
Here is the corresponding ticket for Chrome: https://bugs.chromium.org/p/chromium/issues/detail?id=740496
But various print-focused tools do support CSS3 page-based counters: (https://www.print-css.rocks/tools.html lists some).
Good articles on the subject:
* https://www.smashingmagazine.com/2018/05/print-stylesheets-in-2018/
* https://www.smashingmagazine.com/2015/01/designing-for-print-with-css/
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•