Skip to content

Commit d3e3f44

Browse files
committed
[css-text][css-text-decor][css-writing-modes][css-color][css-fonts][css-color-adjust] Be explicit about which properties apply to text. w3c#5303
1 parent 83e344e commit d3e3f44

File tree

8 files changed

+63
-51
lines changed

8 files changed

+63
-51
lines changed

css-color-4/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Foreground Color: the 'color' property</h2>
222222
Name: color
223223
Value: <<color>>
224224
Initial: CanvasText
225-
Applies to: all elements
225+
Applies to: all elements and text
226226
Inherited: yes
227227
Percentages: N/A
228228
Computed value: computed color, see <a href="#resolving-color-values">resolving color values</a>

css-color-adjust-1/Overview.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Opting Into a Preferred Color Scheme: the 'color-scheme' property {#color-scheme
115115
Name: color-scheme
116116
Value: normal | [ light | dark | <<custom-ident>> ]+
117117
Initial: normal
118-
Applies to: all elements
118+
Applies to: all elements and text
119119
Inherited: yes
120120
Computed Value: the keyword ''normal'', or an ordered list of specified color scheme keywords
121121
</pre>
@@ -407,7 +407,7 @@ Opting Out of a Forced Color Scheme: the 'forced-color-adjust' property {#forced
407407
Name: forced-color-adjust
408408
Value: auto | none
409409
Initial: auto
410-
Applies to: all elements
410+
Applies to: all elements and text
411411
Inherited: yes
412412
Animatable: not animatable
413413
</pre>

css-fonts-4/Overview.bs

+25-25
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Font family: the 'font-family!!property' property</h3>
6868
Name: font-family
6969
Value: [ <<family-name>> | <<generic-family>> ]#
7070
Initial: depends on user agent
71-
Applies to: all elements
71+
Applies to: all elements and text
7272
Inherited: yes
7373
Percentages: n/a
7474
Computed value: list, each item a string and/or <<generic-family>> keywords
@@ -505,7 +505,7 @@ Generic font families</h4>
505505
Name: font-weight
506506
Value: <<font-weight-absolute>> | bolder | lighter
507507
Initial: normal
508-
Applies to: all elements
508+
Applies to: all elements and text
509509
Inherited: yes
510510
Percentages: n/a
511511
Computed value: a number, see below
@@ -651,7 +651,7 @@ Font width: the 'font-stretch!!property' property</h3>
651651
Name: font-stretch
652652
Value: normal | <<percentage>> | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded
653653
Initial: normal
654-
Applies to: all elements
654+
Applies to: all elements and text
655655
Inherited: yes
656656
Percentages: Not resolved
657657
Computed value: a percentage, see below
@@ -723,7 +723,7 @@ Font style: the 'font-style!!property' property</h3>
723723
Name: font-style
724724
Value: normal | italic | oblique <<angle>>?
725725
Initial: normal
726-
Applies to: all elements
726+
Applies to: all elements and text
727727
Inherited: yes
728728
Percentages: n/a
729729
Computed value: the keyword specified, plus angle in degrees if specified
@@ -840,7 +840,7 @@ Font size: the 'font-size' property</h3>
840840
Name: font-size
841841
Value: <<absolute-size>> | <<relative-size>> | <<length-percentage>>
842842
Initial: medium
843-
Applies to: all elements
843+
Applies to: all elements and text
844844
Inherited: yes
845845
Percentages: refer to parent element's font size
846846
Computed value: an absolute length
@@ -1019,7 +1019,7 @@ Relative sizing: the 'font-size-adjust' property</h3>
10191019
Name: font-size-adjust
10201020
Value: none | <<number>>
10211021
Initial: none
1022-
Applies to: all elements
1022+
Applies to: all elements and text
10231023
Inherited: yes
10241024
Percentages: N/A
10251025
Computed value: a number or the keyword ''font-size-adjust/none''
@@ -1207,7 +1207,7 @@ Shorthand font property: the 'font' property</h3>
12071207
<<font-stretch-css3>> ]? <<'font-size'>> [ / <<'line-height'>> ]? <<'font-family'>> ] |
12081208
caption | icon | menu | message-box | small-caption | status-bar
12091209
Initial: see individual properties
1210-
Applies to: all elements
1210+
Applies to: all elements and text
12111211
Inherited: yes
12121212
Percentages: see individual properties
12131213
Computed value: see individual properties
@@ -1428,7 +1428,7 @@ Controlling synthesized bold: The 'font-synthesis-weight' property</h4>
14281428
Name: font-synthesis-weight
14291429
Value: auto | none
14301430
Initial: auto
1431-
Applies to: all elements
1431+
Applies to: all elements and text
14321432
Inherited: yes
14331433
Percentages: N/A
14341434
Computed value: specified keyword
@@ -1457,7 +1457,7 @@ Controlling synthesized oblique: The 'font-synthesis-style' property</h4>
14571457
Name: font-synthesis-style
14581458
Value: auto | none
14591459
Initial: auto
1460-
Applies to: all elements
1460+
Applies to: all elements and text
14611461
Inherited: yes
14621462
Percentages: N/A
14631463
Computed value: specified keyword
@@ -1486,7 +1486,7 @@ Controlling synthesized small caps: The 'font-synthesis-small-caps' property</h4
14861486
Name: font-synthesis-small-caps
14871487
Value: auto | none
14881488
Initial: auto
1489-
Applies to: all elements
1489+
Applies to: all elements and text
14901490
Inherited: yes
14911491
Percentages: N/A
14921492
Computed value: specified keyword
@@ -1514,7 +1514,7 @@ Controlling synthetic faces: the 'font-synthesis' shorthand</h4>
15141514
Name: font-synthesis
15151515
Value: none | [ weight || style ]
15161516
Initial: weight style small-caps
1517-
Applies to: all elements
1517+
Applies to: all elements and text
15181518
Inherited: yes
15191519
Percentages: N/A
15201520
Computed value: specified keyword(s)
@@ -3700,7 +3700,7 @@ Name: font-kerning
37003700
37013701
Value: auto | normal | none
37023702
Initial: auto
3703-
Applies to: all elements
3703+
Applies to: all elements and text
37043704
Inherited: yes
37053705
Percentages: n/a
37063706
Computed value: as specified
@@ -3773,7 +3773,7 @@ Name: font-variant-ligatures
37733773
37743774
Value: <span title="normal!!font-variant-ligatures">normal</span> | <span title="none!!font-variant-ligatures">none</span> | [ <var>&lt;common-lig-values&gt;</var> || <var>&lt;discretionary-lig-values&gt;</var> || <var>&lt;historical-lig-values&gt;</var> || <var>&lt;contextual-alt-values&gt;</var> ]
37753775
Initial: normal
3776-
Applies to: all elements
3776+
Applies to: all elements and text
37773777
Inherited: yes
37783778
Percentages: n/a
37793779
Computed value: as specified
@@ -3880,7 +3880,7 @@ Name: font-variant-position
38803880
38813881
Value: normal | sub | super
38823882
Initial: normal
3883-
Applies to: all elements
3883+
Applies to: all elements and text
38843884
Inherited: yes
38853885
Percentages: n/a
38863886
Computed value: as specified
@@ -4086,7 +4086,7 @@ Name: font-variant-caps
40864086
40874087
Value: normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps
40884088
Initial: normal
4089-
Applies to: all elements
4089+
Applies to: all elements and text
40904090
Inherited: yes
40914091
Percentages: n/a
40924092
Computed value: as specified
@@ -4245,7 +4245,7 @@ Name: font-variant-numeric
42454245
42464246
Value: normal | [ <<numeric-figure-values>> || <<numeric-spacing-values>> || <<numeric-fraction-values>> || ordinal || slashed-zero ]
42474247
Initial: normal
4248-
Applies to: all elements
4248+
Applies to: all elements and text
42494249
Inherited: yes
42504250
Percentages: n/a
42514251
Computed value: as specified
@@ -4386,7 +4386,7 @@ Value: normal | [ stylistic(<<feature-value-name>>) ||
43864386
ornaments(<<feature-value-name>>) ||
43874387
annotation(<<feature-value-name>>) ]
43884388
Initial: normal
4389-
Applies to: all elements
4389+
Applies to: all elements and text
43904390
Inherited: yes
43914391
Percentages: n/a
43924392
Computed value: as specified
@@ -4838,7 +4838,7 @@ Name: font-variant-east-asian
48384838
48394839
Value: normal | [ <<east-asian-variant-values>> || <<east-asian-width-values>> || ruby ]
48404840
Initial: normal
4841-
Applies to: all elements
4841+
Applies to: all elements and text
48424842
Inherited: yes
48434843
Percentages: n/a
48444844
Computed value: as specified
@@ -4946,7 +4946,7 @@ Name: font-variant
49464946
49474947
Value: normal | none | [ <<common-lig-values>> || <<discretionary-lig-values>> || <<historical-lig-values>> || <<contextual-alt-values>> || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || [ stylistic(<<feature-value-name>>) || historical-forms || styleset(<<feature-value-name>>#) || character-variant(<<feature-value-name>>#) || swash(<<feature-value-name>>) || ornaments(<<feature-value-name>>) || annotation(<<feature-value-name>>) ] || <<numeric-figure-values>> || <<numeric-spacing-values>> || <<numeric-fraction-values>> || ordinal || slashed-zero || <<east-asian-variant-values>> || <<east-asian-width-values>> || ruby || [ sub | super ] ]
49484948
Initial: normal
4949-
Applies to: all elements
4949+
Applies to: all elements and text
49504950
Inherited: yes
49514951
Percentages: n/a
49524952
Computed value: as specified
@@ -4982,7 +4982,7 @@ Name: font-feature-settings
49824982
49834983
Value: normal | <<feature-tag-value>>#
49844984
Initial: normal
4985-
Applies to: all elements
4985+
Applies to: all elements and text
49864986
Inherited: yes
49874987
Percentages: n/a
49884988
Computed value: as specified
@@ -5155,7 +5155,7 @@ body { font-feature-settings: "hwid"; /* Half-width OpenType feature */ }
51555155
Name: font-language-override
51565156
Value: normal | <<string>>
51575157
Initial: normal
5158-
Applies to: all elements
5158+
Applies to: all elements and text
51595159
Inherited: yes
51605160
Percentages: N/A
51615161
Computed value: specified string or the keyword ''font-language-override/none''
@@ -5471,7 +5471,7 @@ Optical sizing control: the 'font-optical-sizing' property</h3>
54715471
Name: font-optical-sizing
54725472
Value: auto | none
54735473
Initial: auto
5474-
Applies to: all elements
5474+
Applies to: all elements and text
54755475
Inherited: yes
54765476
Percentages: n/a
54775477
Computed value: specified keyword
@@ -5554,7 +5554,7 @@ Low-level font variation settings control: the 'font-variation-settings' propert
55545554
Name: font-variation-settings
55555555
Value: normal | [ <<string>> <<number>>]#
55565556
Initial: normal
5557-
Applies to: all elements
5557+
Applies to: all elements and text
55585558
Inherited: yes
55595559
Percentages: n/a
55605560
Computed value: the keyword ''font-variation-settings/normal'' or a list, each item a string paired with a number
@@ -5683,7 +5683,7 @@ as well as the colored versions.
56835683
Name: font-palette
56845684
Value: none | normal | light | dark | <<palette-identifier>>
56855685
Initial: normal
5686-
Applies to: all elements
5686+
Applies to: all elements and text
56875687
Inherited: yes
56885688
Percentages: N/a
56895689
Computed value: specified keyword or identifier
@@ -6017,7 +6017,7 @@ Selecting the text presentation style: The 'font-variant-emoji' property</h3>
60176017
Name: font-variant-emoji
60186018
Value: auto | text | emoji | unicode
60196019
Initial: auto
6020-
Applies to: all elements
6020+
Applies to: all elements and text
60216021
Inherited: yes
60226022
Percentages: N/a
60236023
Computed value: specified keyword

css-text-3/Overview.bs

+11-11
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ Text Processing</h3>
442442
Name: text-transform
443443
Value: none | [capitalize | uppercase | lowercase ] || full-width || full-size-kana
444444
Initial: none
445-
Applies to: <a>inline boxes</a>
445+
Applies to: text
446446
Inherited: yes
447447
Canonical order: n/a
448448
Computed value: specified keyword
@@ -824,7 +824,7 @@ Order of Operations</h4>
824824
Name: white-space
825825
Value: normal | pre | nowrap | pre-wrap | break-spaces | pre-line
826826
Initial: normal
827-
Applies to: <a>inline boxes</a>
827+
Applies to: text
828828
Inherited: yes
829829
Canonical order: n/a
830830
Computed value: specified keyword
@@ -2260,7 +2260,7 @@ CUT SEGMENT BREAK TRANSFORM -->
22602260
Name: tab-size
22612261
Value: <<number>> | <<length>>
22622262
Initial: 8
2263-
Applies to: inline boxes
2263+
Applies to: text
22642264
Inherited: yes
22652265
Computed value: the specified number or absolute length
22662266
Animation type: by computed value type
@@ -2821,7 +2821,7 @@ Line Breaking Details</h3>
28212821
Name: word-break
28222822
Value: normal | keep-all | break-all | break-word
28232823
Initial: normal
2824-
Applies to: <a>inline boxes</a>
2824+
Applies to: text
28252825
Inherited: yes
28262826
Canonical order: n/a
28272827
Computed value: specified keyword
@@ -3184,7 +3184,7 @@ Line Breaking Details</h3>
31843184
Name: line-break
31853185
Value: auto | loose | normal | strict | anywhere
31863186
Initial: auto
3187-
Applies to: <a>inline boxes</a>
3187+
Applies to: text
31883188
Inherited: yes
31893189
Canonical order: n/a
31903190
Computed value: specified keyword
@@ -3596,7 +3596,7 @@ Line Breaking Details</h3>
35963596
Name: hyphens
35973597
Value: none | manual | auto
35983598
Initial: manual
3599-
Applies to: <a>inline boxes</a>
3599+
Applies to: text
36003600
Inherited: yes
36013601
Canonical order: n/a
36023602
Computed value: specified keyword
@@ -3766,7 +3766,7 @@ Line Breaking Details</h3>
37663766
Name: overflow-wrap, word-wrap
37673767
Value: normal | break-word | anywhere
37683768
Initial: normal
3769-
Applies to: <a>inline boxes</a>
3769+
Applies to: text
37703770
Inherited: yes
37713771
Canonical order: n/a
37723772
Computed value: specified keyword
@@ -4252,7 +4252,7 @@ Shaping Across Intra-word Breaks</h3>
42524252
Name: text-justify
42534253
Value: auto | none | inter-word | inter-character
42544254
Initial: auto
4255-
Applies to: <a>inline boxes</a>
4255+
Applies to: text
42564256
Inherited: yes
42574257
Canonical order: n/a
42584258
Computed value: specified keyword
@@ -4580,7 +4580,7 @@ Word Spacing: the 'word-spacing' property</h3>
45804580
Name: word-spacing
45814581
Value: normal | <<length>>
45824582
Initial: normal
4583-
Applies to: <a>inline boxes</a>
4583+
Applies to: text
45844584
Inherited: yes
45854585
Percentages: N/A
45864586
Computed value: an absolute length
@@ -4733,7 +4733,7 @@ Word Spacing: the 'word-spacing' property</h3>
47334733
Name: letter-spacing
47344734
Value: normal | <<length>>
47354735
Initial: normal
4736-
Applies to: <a>inline boxes</a>
4736+
Applies to: <a>inline boxes</a> and text
47374737
Inherited: yes
47384738
Computed value: an absolute length
47394739
Animation type: by computed value type
@@ -5546,7 +5546,7 @@ Cursive Scripts</h4>
55465546
Name: hanging-punctuation
55475547
Value: none | [ first || [ force-end | allow-end ] || last ]
55485548
Initial: none
5549-
Applies to: <a>inline boxes</a>
5549+
Applies to: text
55505550
Inherited: yes
55515551
Canonical order: <abbr title="follows order of property value definition">per grammar</abbr>
55525552
Computed value: specified keyword(s)

0 commit comments

Comments
 (0)