Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: sideshowbarker <[email protected]>
  • Loading branch information
estelle and sideshowbarker authored Jan 9, 2025
1 parent b88b192 commit 0005c32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions files/en-us/web/css/alignment-baseline/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,33 +55,33 @@ alignment-baseline: unset;

- `alphabetic`

- : Used in writing Latin, Cyrillic, Greek, and many other scripts, matches the box's alphabetic baseline to that of its parent, corresponding to the bottom of most, but not all characters.
- : Used in writing Latin, Cyrillic, Greek, and many other scripts; matches the box's alphabetic baseline to that of its parent, corresponding to the bottom of most, but not all characters.

- `central`

- : Matches the box's central baseline to the central baseline of its parent, corresponding to the ideographic central baseline, halfway between the ideographic-under and ideographic-over baselines.

- `ideographic`

- : Matches the box's ideographic character face under-side baseline to that of its parent, with the derived baseline-table is constructed using the ideographic baseline-table in the font.
- : Matches the box's ideographic character face under-side baseline to that of its parent, with the derived baseline-table constructed using the ideographic baseline-table in the font.

- `mathematical`

- : Matches the box's mathematical baseline to that of its parent, corresponding to the center baseline around which mathematical characters are designed.

- `middle`

- : Aligns the vertical midpoint of the box with the baseline of the parent box plus half the x-height of the parent. Uses the x-middle baselines; except under [`text-orientation: upright;`](/en-US/docs/Web/CSS/text-orientation) (where the alphabetic and x-height baselines are essentially meaningless) in which case it uses the `central` baseline instead.
- : Aligns the vertical midpoint of the box with the baseline of the parent box plus half the x-height of the parent. Uses the x-middle baselines; except under [`text-orientation: upright;`](/en-US/docs/Web/CSS/text-orientation) (where the alphabetic and x-height baselines are essentially meaningless), in which case it uses the `central` baseline instead.

- `text-bottom`

- : Matches the bottom of the box to the top of the parent's content area; using the line-under edge of an inline's content box.
- : Matches the bottom of the box to the top of the parent's content area, using the line-under edge of an inline's content box.

- `text-top`
- : Matches the top of the box to the top of the parent's content area; the line-over edge of an inline's content box.

> [!NOTE]
> In SVG2, the `auto`, `before-edge`, and `after-edge` were deprecated and `text-before-edge` is an alias for `text-top` and `text-after-edge` is an alias for `text-bottom`. These keywords should not be used as part of the {{cssxref("vertical-align")}} shorthand property. Browsers support `auto` as a synonym for `baseline` and `hanging`, wherein the alignment-point of the object being aligned is aligned with the "hanging" baseline of the parent text content element, but neither is part of the specification.
> In SVG2, the `auto`, `before-edge`, and `after-edge` were deprecated and `text-before-edge` is an alias for `text-top`, and `text-after-edge` is an alias for `text-bottom`. These keywords should not be used as part of the {{cssxref("vertical-align")}} shorthand property. Browsers support `auto` as a synonym for `baseline` and `hanging`, wherein the alignment-point of the object being aligned is aligned with the "hanging" baseline of the parent text content element, but neither is part of the specification.

## Formal definition

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/svg/attribute/alignment-baseline/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ browser-compat: svg.global_attributes.alignment-baseline
The **`alignment-baseline`** attribute specifies how an object is aligned with respect to its parent. This property specifies which baseline of this element is to be aligned with the corresponding baseline of the parent. For example, this allows alphabetic baselines in Roman text to stay aligned across font size changes. It defaults to the baseline with the same name as the computed value of the `alignment-baseline` property.

> [!NOTE]
> As a presentation attribute {{cssxref("alignment-baseline")}} can be used as a CSS property.
> As a presentation attribute, {{cssxref("alignment-baseline")}} can be used as a CSS property.
You can use this attribute with the following SVG elements:

Expand Down

0 comments on commit 0005c32

Please sign in to comment.