-
Notifications
You must be signed in to change notification settings - Fork 22.9k
Closed
Closed
Copy link
Labels
Content:CSSCascading Style Sheets docsCascading Style Sheets docsgoal: up-to-date(Experimental label) Issues about outdated content.(Experimental label) Issues about outdated content.needs BCD updateRequires changes in BCD mdn/browser-compat-dataRequires changes in BCD mdn/browser-compat-data
Description
MDN URL
https://developer.mozilla.org/en-US/docs/Web/CSS/calc
What specific section or headline is this issue about?
"Input considerations"
What information was incorrect, unhelpful, or incomplete?
Both Webkit and Chrome (v140) now have support for typed arithmetic in CSS calc(), for example this will work: calc(2rem / 1px). Currently MDN still mentions:
Current implementations require that, when using the * and / operators, one of the operands must be unitless. For /, the right operand must be unitless. For example font-size: calc(1.25rem / 1.25) is valid but font-size: calc(1.25rem / 125%) is invalid.
What did you expect to see?
- Update the documentation to reflect the latest browser support
- Add a new row under "Browser compatibility" to document this new capability
Do you have any supporting links, references, or citations?
- https://bugs.webkit.org/show_bug.cgi?id=278244
- https://chromestatus.com/feature/4740780497043456
- CSS typed arithmetic mozilla/standards-positions#1252
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/web/css/calc - MDN URL: https://developer.mozilla.org/en-US/docs/Web/CSS/calc
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/css/calc/index.md
- Last commit: 39a17e1
- Document last modified: 2025-08-09T02:43:04.000Z
Metadata
Metadata
Assignees
Labels
Content:CSSCascading Style Sheets docsCascading Style Sheets docsgoal: up-to-date(Experimental label) Issues about outdated content.(Experimental label) Issues about outdated content.needs BCD updateRequires changes in BCD mdn/browser-compat-dataRequires changes in BCD mdn/browser-compat-data