Skip to content

Commit

Permalink
[css-inline-3] Extend “applies to” for SVG text
Browse files Browse the repository at this point in the history
Closes #3411
See issue for discussion/reasoning & differences from SVG 1.

Changes should be copied over to css-inline-4
after review.
  • Loading branch information
AmeliaBR authored and fantasai committed Jun 10, 2020
1 parent a54303c commit 0d8fff5
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions css-inline-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ At Risk: the 'initial-letter-wrap' property
spec:css-align-3; type:dfn; text:alignment baseline
spec:css-box; type:dfn; text:content area
spec:css-break-3; type:dfn; text:fragment
spec:css-shapes-1; type:property; text:shape-margin
spec:svg2; type:dfn; text: current text position
</pre>

<h2 id="intro">
Expand Down Expand Up @@ -446,7 +448,7 @@ Dominant Baselines: the 'dominant-baseline' property</h3>
Name: dominant-baseline
Value: auto | text-bottom | alphabetic | ideographic | middle | central | mathematical | hanging | text-top
Initial: auto
Applies to: block containers, inline boxes, table rows, table columns, grid containers, and flex containers
Applies to: block containers, inline boxes, table rows, table columns, grid containers, flex containers, and SVG <a>text content elements</a>
Inherited: yes
Percentages: N/A
Computed value: specified keyword
Expand Down Expand Up @@ -526,7 +528,7 @@ Transverse Box Alignment: the 'vertical-align' property</h3>
Name: vertical-align
Value: <<'baseline-source'>> || <<'baseline-shift'>> || <<'alignment-baseline'>>
Initial: baseline
Applies to: inline-level boxes
Applies to: see individual properties
Inherited: no
Percentages: N/A
</pre>
Expand Down Expand Up @@ -567,7 +569,7 @@ Alignment Baseline Source: the 'baseline-source' longhand</h4>
indicating the box’s <dfn export>baseline alignment preference</dfn>.
Values have the following meanings:

<dl dfn-for=alignment-baseline dfn-type=value>
<dl dfn-for=baseline-source dfn-type=value>
<dt><dfn>auto</dfn>
<dd>Specifies <a>last-baseline alignment</a> for ''inline-block'',
<a>first-baseline alignment</a> for everything else.
Expand All @@ -586,7 +588,7 @@ Alignment Baseline Type: the 'alignment-baseline' longhand</h4>
Name: alignment-baseline
Value: baseline | text-bottom | alphabetic | ideographic | middle | central | mathematical | text-top | bottom | center | top
Initial: baseline
Applies to: inline-level boxes, flex items, grid items, table cells
Applies to: inline-level boxes, flex items, grid items, table cells, and SVG <a>text content elements</a>
Inherited: no
Percentages: N/A
Computed value: specified keyword
Expand All @@ -598,9 +600,12 @@ Alignment Baseline Type: the 'alignment-baseline' longhand</h4>
prior to applying its [=post-alignment shift=].

The <dfn>alignment baseline values</dfn>,
which specify which [=baseline=] of the box is aligned
specify which [=baseline=] of the box is aligned
to the corresponding [=baseline=] of its [=alignment context=]
when performing [=baseline alignment=], are defined below:
when performing [=baseline alignment=].
For SVG text layout, specifies the baseline that is aligned
to the SVG <a>current text position</a>.
They are defined as follows:

<dl dfn-for=alignment-baseline dfn-type=value>
<dt><dfn>baseline</dfn>
Expand Down Expand Up @@ -692,7 +697,7 @@ Post-Alignment Shift: the 'baseline-shift' longhand</h4>
Name: baseline-shift
Value: <<length-percentage>> | sub | super
Initial: 0
Applies to: inline-level boxes, flex items, grid items
Applies to: inline-level boxes, flex items, grid items, and SVG <a>text content elements</a>
<!-- table cells left out b/c CSS2.1 vertical-align values must have no effect... -->
Inherited: no
Percentages: refer to the used value of 'line-height'
Expand Down Expand Up @@ -744,7 +749,7 @@ Line Spacing: the 'line-height' property</h3>
Name: line-height
Value: normal | <<number>> | <<length-percentage>>
Initial: normal
Applies to: non-replaced inline boxes
Applies to: non-replaced inline boxes and SVG <a>text content elements</a>
Inherited: yes
Percentages: computed relative to ''1em''
Computed value: the specified keyword, a number, or a computed <<length>> value
Expand Down

0 comments on commit 0d8fff5

Please sign in to comment.