-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
52 lines (40 loc) · 1.25 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
title: ascent
slug: Web/SVG/Attribute/ascent
page-type: svg-attribute
status:
- deprecated
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.
<table class="properties">
<tbody>
<tr>
<th scope="row">Value</th>
<td>
<a href="/en-US/docs/Web/SVG/Content_type#number"><number></a>
</td>
</tr>
<tr>
<th scope="row">Default value</th>
<td>
Difference between {{SVGAttr("units-per-em")}} and
{{SVGAttr("vert-origin-y")}}
</td>
</tr>
<tr>
<th scope="row">Animatable</th>
<td>No</td>
</tr>
</tbody>
</table>
## Specifications
{{Specifications}}
## Browser compatibility
{{Compat}}