Skip to content

Commit 0d8fff5

Browse files
AmeliaBRfantasai
authored andcommitted
[css-inline-3] Extend “applies to” for SVG text
Closes #3411 See issue for discussion/reasoning & differences from SVG 1. Changes should be copied over to css-inline-4 after review.
1 parent a54303c commit 0d8fff5

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

css-inline-3/Overview.bs

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ At Risk: the 'initial-letter-wrap' property
3232
spec:css-align-3; type:dfn; text:alignment baseline
3333
spec:css-box; type:dfn; text:content area
3434
spec:css-break-3; type:dfn; text:fragment
35+
spec:css-shapes-1; type:property; text:shape-margin
36+
spec:svg2; type:dfn; text: current text position
3537
</pre>
3638

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

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

600602
The <dfn>alignment baseline values</dfn>,
601-
which specify which [=baseline=] of the box is aligned
603+
specify which [=baseline=] of the box is aligned
602604
to the corresponding [=baseline=] of its [=alignment context=]
603-
when performing [=baseline alignment=], are defined below:
605+
when performing [=baseline alignment=].
606+
For SVG text layout, specifies the baseline that is aligned
607+
to the SVG <a>current text position</a>.
608+
They are defined as follows:
604609

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

0 commit comments

Comments
 (0)