Skip to content

Commit 39ded77

Browse files
authored
Merge pull request #5761 from fantasai/applies-to-text
[css-text][css-text-decor][css-writing-modes][css-color][css-fonts][css-color-adjust] Be explicit about which properties apply to text. #5303
2 parents ea71303 + 1339a16 commit 39ded77

File tree

8 files changed

+65
-53
lines changed

8 files changed

+65
-53
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

+12-12
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ Text Processing</h3>
443443
Name: text-transform
444444
Value: none | [capitalize | uppercase | lowercase ] || full-width || full-size-kana
445445
Initial: none
446-
Applies to: <a>inline boxes</a>
446+
Applies to: text
447447
Inherited: yes
448448
Canonical order: n/a
449449
Computed value: specified keyword
@@ -825,7 +825,7 @@ Order of Operations</h4>
825825
Name: white-space
826826
Value: normal | pre | nowrap | pre-wrap | break-spaces | pre-line
827827
Initial: normal
828-
Applies to: <a>inline boxes</a>
828+
Applies to: text
829829
Inherited: yes
830830
Canonical order: n/a
831831
Computed value: specified keyword
@@ -885,7 +885,7 @@ Order of Operations</h4>
885885

886886
<p>This property specifies two things:
887887
<ul>
888-
<li>whether and how <a>white space</a> inside the element is collapsed
888+
<li>whether and how <a>white space</a> is collapsed
889889
<li>whether lines may <a>wrap</a> at unforced <a>soft wrap opportunities</a>
890890
</ul>
891891

@@ -2302,7 +2302,7 @@ CUT SEGMENT BREAK TRANSFORM -->
23022302
Name: tab-size
23032303
Value: <<number>> | <<length>>
23042304
Initial: 8
2305-
Applies to: inline boxes
2305+
Applies to: text
23062306
Inherited: yes
23072307
Computed value: the specified number or absolute length
23082308
Animation type: by computed value type
@@ -2863,7 +2863,7 @@ Line Breaking Details</h3>
28632863
Name: word-break
28642864
Value: normal | keep-all | break-all | break-word
28652865
Initial: normal
2866-
Applies to: <a>inline boxes</a>
2866+
Applies to: text
28672867
Inherited: yes
28682868
Canonical order: n/a
28692869
Computed value: specified keyword
@@ -3226,7 +3226,7 @@ Line Breaking Details</h3>
32263226
Name: line-break
32273227
Value: auto | loose | normal | strict | anywhere
32283228
Initial: auto
3229-
Applies to: <a>inline boxes</a>
3229+
Applies to: text
32303230
Inherited: yes
32313231
Canonical order: n/a
32323232
Computed value: specified keyword
@@ -3638,7 +3638,7 @@ Line Breaking Details</h3>
36383638
Name: hyphens
36393639
Value: none | manual | auto
36403640
Initial: manual
3641-
Applies to: <a>inline boxes</a>
3641+
Applies to: text
36423642
Inherited: yes
36433643
Canonical order: n/a
36443644
Computed value: specified keyword
@@ -3809,7 +3809,7 @@ Line Breaking Details</h3>
38093809
Name: overflow-wrap, word-wrap
38103810
Value: normal | break-word | anywhere
38113811
Initial: normal
3812-
Applies to: <a>inline boxes</a>
3812+
Applies to: text
38133813
Inherited: yes
38143814
Canonical order: n/a
38153815
Computed value: specified keyword
@@ -4302,7 +4302,7 @@ Shaping Across Intra-word Breaks</h3>
43024302
Name: text-justify
43034303
Value: auto | none | inter-word | inter-character
43044304
Initial: auto
4305-
Applies to: <a>inline boxes</a>
4305+
Applies to: text
43064306
Inherited: yes
43074307
Canonical order: n/a
43084308
Computed value: specified keyword
@@ -4630,7 +4630,7 @@ Word Spacing: the 'word-spacing' property</h3>
46304630
Name: word-spacing
46314631
Value: normal | <<length>>
46324632
Initial: normal
4633-
Applies to: <a>inline boxes</a>
4633+
Applies to: text
46344634
Inherited: yes
46354635
Percentages: N/A
46364636
Computed value: an absolute length
@@ -4783,7 +4783,7 @@ Word Spacing: the 'word-spacing' property</h3>
47834783
Name: letter-spacing
47844784
Value: normal | <<length>>
47854785
Initial: normal
4786-
Applies to: <a>inline boxes</a>
4786+
Applies to: <a>inline boxes</a> and text
47874787
Inherited: yes
47884788
Computed value: an absolute length
47894789
Animation type: by computed value type
@@ -5601,7 +5601,7 @@ Cursive Scripts</h4>
56015601
Name: hanging-punctuation
56025602
Value: none | [ first || [ force-end | allow-end ] || last ]
56035603
Initial: none
5604-
Applies to: <a>inline boxes</a>
5604+
Applies to: text
56055605
Inherited: yes
56065606
Canonical order: <abbr title="follows order of property value definition">per grammar</abbr>
56075607
Computed value: specified keyword(s)

0 commit comments

Comments
 (0)