Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/svg/attribute/ascent/index.md
6565 views
---
title: ascent slug: Web/SVG/Attribute/ascent page-type: svg-attribute tags: - Deprecated - NeedsExample - SVG - SVG Attribute browser-compat: svg.elements.font-face.ascent
---

{{SVGRef}}{{deprecated_header}}

The ascent attribute defines the maximum unaccented height of the font within the font coordinate system.

If the attribute is not specified, the effect is as if the attribute were set to the difference between the {{SVGAttr("units-per-em")}} value and the {{SVGAttr("vert-origin-y")}} value for the corresponding font.

You can use this attribute with the following SVG elements:

  • {{SVGElement("font-face")}}

font-face

For {{SVGElement("font-face")}}, ascent defines the maximum unaccented height of the font within the font coordinate system.

Value <number>
Default value Difference between {{SVGAttr("units-per-em")}} and {{SVGAttr("vert-origin-y")}}
Animatable No

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}