Open Bug 1406658 Opened 7 years ago Updated 2 years ago

calc() does not work in counter-* properties


(Core :: CSS Parsing and Computation, defect, P3)

56 Branch



Tracking Status
firefox-esr52 --- ?
firefox56 --- affected
firefox57 --- unaffected
firefox58 --- unaffected


(Reporter: ondras, Unassigned)


(Blocks 1 open bug)


(Whiteboard: [stylo])

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0
Build ID: 20170926190823

Steps to reproduce:

Use calc() expression in counter-reset or counter-increment property; see for reference. Chrome works.

Actual results:

"0" is displayed.

Expected results:

"8" should be displayed.
Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core
It works well from Firefox 57+ as Stylo comes into play. The problem still exists on gecko style system.
Ever confirmed: true
Priority: -- → P3
See Also: → 1379467
For bugs that are fixed by Stylo, we should probably set it to block stylo-behavior-changes meta, so we could track them properly.
See Also: → 1350857
If this calc() expression works in Stylo and we ship Stylo in Firefox 57, can we just close this bug as fixed in 57?
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.