Skip to content

Commit

Permalink
[css-text][css-text-decor][css-writing-modes][css-color][css-fonts][c…
Browse files Browse the repository at this point in the history
…ss-color-adjust] Be explicit about which properties apply to text. #5303
  • Loading branch information
fantasai committed Dec 2, 2020
1 parent 83e344e commit d3e3f44
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 51 deletions.
2 changes: 1 addition & 1 deletion css-color-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ Foreground Color: the 'color' property</h2>
Name: color
Value: <<color>>
Initial: CanvasText
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: N/A
Computed value: computed color, see <a href="#resolving-color-values">resolving color values</a>
Expand Down
4 changes: 2 additions & 2 deletions css-color-adjust-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Opting Into a Preferred Color Scheme: the 'color-scheme' property {#color-scheme
Name: color-scheme
Value: normal | [ light | dark | <<custom-ident>> ]+
Initial: normal
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Computed Value: the keyword ''normal'', or an ordered list of specified color scheme keywords
</pre>
Expand Down Expand Up @@ -407,7 +407,7 @@ Opting Out of a Forced Color Scheme: the 'forced-color-adjust' property {#forced
Name: forced-color-adjust
Value: auto | none
Initial: auto
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Animatable: not animatable
</pre>
Expand Down
50 changes: 25 additions & 25 deletions css-fonts-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Font family: the 'font-family!!property' property</h3>
Name: font-family
Value: [ <<family-name>> | <<generic-family>> ]#
Initial: depends on user agent
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: n/a
Computed value: list, each item a string and/or <<generic-family>> keywords
Expand Down Expand Up @@ -505,7 +505,7 @@ Generic font families</h4>
Name: font-weight
Value: <<font-weight-absolute>> | bolder | lighter
Initial: normal
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: n/a
Computed value: a number, see below
Expand Down Expand Up @@ -651,7 +651,7 @@ Font width: the 'font-stretch!!property' property</h3>
Name: font-stretch
Value: normal | <<percentage>> | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded
Initial: normal
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: Not resolved
Computed value: a percentage, see below
Expand Down Expand Up @@ -723,7 +723,7 @@ Font style: the 'font-style!!property' property</h3>
Name: font-style
Value: normal | italic | oblique <<angle>>?
Initial: normal
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: n/a
Computed value: the keyword specified, plus angle in degrees if specified
Expand Down Expand Up @@ -840,7 +840,7 @@ Font size: the 'font-size' property</h3>
Name: font-size
Value: <<absolute-size>> | <<relative-size>> | <<length-percentage>>
Initial: medium
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: refer to parent element's font size
Computed value: an absolute length
Expand Down Expand Up @@ -1019,7 +1019,7 @@ Relative sizing: the 'font-size-adjust' property</h3>
Name: font-size-adjust
Value: none | <<number>>
Initial: none
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: N/A
Computed value: a number or the keyword ''font-size-adjust/none''
Expand Down Expand Up @@ -1207,7 +1207,7 @@ Shorthand font property: the 'font' property</h3>
<<font-stretch-css3>> ]? <<'font-size'>> [ / <<'line-height'>> ]? <<'font-family'>> ] |
caption | icon | menu | message-box | small-caption | status-bar
Initial: see individual properties
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: see individual properties
Computed value: see individual properties
Expand Down Expand Up @@ -1428,7 +1428,7 @@ Controlling synthesized bold: The 'font-synthesis-weight' property</h4>
Name: font-synthesis-weight
Value: auto | none
Initial: auto
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: N/A
Computed value: specified keyword
Expand Down Expand Up @@ -1457,7 +1457,7 @@ Controlling synthesized oblique: The 'font-synthesis-style' property</h4>
Name: font-synthesis-style
Value: auto | none
Initial: auto
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: N/A
Computed value: specified keyword
Expand Down Expand Up @@ -1486,7 +1486,7 @@ Controlling synthesized small caps: The 'font-synthesis-small-caps' property</h4
Name: font-synthesis-small-caps
Value: auto | none
Initial: auto
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: N/A
Computed value: specified keyword
Expand Down Expand Up @@ -1514,7 +1514,7 @@ Controlling synthetic faces: the 'font-synthesis' shorthand</h4>
Name: font-synthesis
Value: none | [ weight || style ]
Initial: weight style small-caps
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: N/A
Computed value: specified keyword(s)
Expand Down Expand Up @@ -3700,7 +3700,7 @@ Name: font-kerning

Value: auto | normal | none
Initial: auto
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: n/a
Computed value: as specified
Expand Down Expand Up @@ -3773,7 +3773,7 @@ Name: font-variant-ligatures

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> ]
Initial: normal
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: n/a
Computed value: as specified
Expand Down Expand Up @@ -3880,7 +3880,7 @@ Name: font-variant-position

Value: normal | sub | super
Initial: normal
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: n/a
Computed value: as specified
Expand Down Expand Up @@ -4086,7 +4086,7 @@ Name: font-variant-caps

Value: normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps
Initial: normal
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: n/a
Computed value: as specified
Expand Down Expand Up @@ -4245,7 +4245,7 @@ Name: font-variant-numeric

Value: normal | [ <<numeric-figure-values>> || <<numeric-spacing-values>> || <<numeric-fraction-values>> || ordinal || slashed-zero ]
Initial: normal
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: n/a
Computed value: as specified
Expand Down Expand Up @@ -4386,7 +4386,7 @@ Value: normal | [ stylistic(<<feature-value-name>>) ||
ornaments(<<feature-value-name>>) ||
annotation(<<feature-value-name>>) ]
Initial: normal
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: n/a
Computed value: as specified
Expand Down Expand Up @@ -4838,7 +4838,7 @@ Name: font-variant-east-asian

Value: normal | [ <<east-asian-variant-values>> || <<east-asian-width-values>> || ruby ]
Initial: normal
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: n/a
Computed value: as specified
Expand Down Expand Up @@ -4946,7 +4946,7 @@ Name: font-variant

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 ] ]
Initial: normal
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: n/a
Computed value: as specified
Expand Down Expand Up @@ -4982,7 +4982,7 @@ Name: font-feature-settings

Value: normal | <<feature-tag-value>>#
Initial: normal
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: n/a
Computed value: as specified
Expand Down Expand Up @@ -5155,7 +5155,7 @@ body { font-feature-settings: "hwid"; /* Half-width OpenType feature */ }
Name: font-language-override
Value: normal | <<string>>
Initial: normal
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: N/A
Computed value: specified string or the keyword ''font-language-override/none''
Expand Down Expand Up @@ -5471,7 +5471,7 @@ Optical sizing control: the 'font-optical-sizing' property</h3>
Name: font-optical-sizing
Value: auto | none
Initial: auto
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: n/a
Computed value: specified keyword
Expand Down Expand Up @@ -5554,7 +5554,7 @@ Low-level font variation settings control: the 'font-variation-settings' propert
Name: font-variation-settings
Value: normal | [ <<string>> <<number>>]#
Initial: normal
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: n/a
Computed value: the keyword ''font-variation-settings/normal'' or a list, each item a string paired with a number
Expand Down Expand Up @@ -5683,7 +5683,7 @@ as well as the colored versions.
Name: font-palette
Value: none | normal | light | dark | <<palette-identifier>>
Initial: normal
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: N/a
Computed value: specified keyword or identifier
Expand Down Expand Up @@ -6017,7 +6017,7 @@ Selecting the text presentation style: The 'font-variant-emoji' property</h3>
Name: font-variant-emoji
Value: auto | text | emoji | unicode
Initial: auto
Applies to: all elements
Applies to: all elements and text
Inherited: yes
Percentages: N/a
Computed value: specified keyword
Expand Down
22 changes: 11 additions & 11 deletions css-text-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ Text Processing</h3>
Name: text-transform
Value: none | [capitalize | uppercase | lowercase ] || full-width || full-size-kana
Initial: none
Applies to: <a>inline boxes</a>
Applies to: text
Inherited: yes
Canonical order: n/a
Computed value: specified keyword
Expand Down Expand Up @@ -824,7 +824,7 @@ Order of Operations</h4>
Name: white-space
Value: normal | pre | nowrap | pre-wrap | break-spaces | pre-line
Initial: normal
Applies to: <a>inline boxes</a>
Applies to: text
Inherited: yes
Canonical order: n/a
Computed value: specified keyword
Expand Down Expand Up @@ -2260,7 +2260,7 @@ CUT SEGMENT BREAK TRANSFORM -->
Name: tab-size
Value: <<number>> | <<length>>
Initial: 8
Applies to: inline boxes
Applies to: text
Inherited: yes
Computed value: the specified number or absolute length
Animation type: by computed value type
Expand Down Expand Up @@ -2821,7 +2821,7 @@ Line Breaking Details</h3>
Name: word-break
Value: normal | keep-all | break-all | break-word
Initial: normal
Applies to: <a>inline boxes</a>
Applies to: text
Inherited: yes
Canonical order: n/a
Computed value: specified keyword
Expand Down Expand Up @@ -3184,7 +3184,7 @@ Line Breaking Details</h3>
Name: line-break
Value: auto | loose | normal | strict | anywhere
Initial: auto
Applies to: <a>inline boxes</a>
Applies to: text
Inherited: yes
Canonical order: n/a
Computed value: specified keyword
Expand Down Expand Up @@ -3596,7 +3596,7 @@ Line Breaking Details</h3>
Name: hyphens
Value: none | manual | auto
Initial: manual
Applies to: <a>inline boxes</a>
Applies to: text
Inherited: yes
Canonical order: n/a
Computed value: specified keyword
Expand Down Expand Up @@ -3766,7 +3766,7 @@ Line Breaking Details</h3>
Name: overflow-wrap, word-wrap
Value: normal | break-word | anywhere
Initial: normal
Applies to: <a>inline boxes</a>
Applies to: text
Inherited: yes
Canonical order: n/a
Computed value: specified keyword
Expand Down Expand Up @@ -4252,7 +4252,7 @@ Shaping Across Intra-word Breaks</h3>
Name: text-justify
Value: auto | none | inter-word | inter-character
Initial: auto
Applies to: <a>inline boxes</a>
Applies to: text
Inherited: yes
Canonical order: n/a
Computed value: specified keyword
Expand Down Expand Up @@ -4580,7 +4580,7 @@ Word Spacing: the 'word-spacing' property</h3>
Name: word-spacing
Value: normal | <<length>>
Initial: normal
Applies to: <a>inline boxes</a>
Applies to: text
Inherited: yes
Percentages: N/A
Computed value: an absolute length
Expand Down Expand Up @@ -4733,7 +4733,7 @@ Word Spacing: the 'word-spacing' property</h3>
Name: letter-spacing
Value: normal | <<length>>
Initial: normal
Applies to: <a>inline boxes</a>
Applies to: <a>inline boxes</a> and text
Inherited: yes
Computed value: an absolute length
Animation type: by computed value type
Expand Down Expand Up @@ -5546,7 +5546,7 @@ Cursive Scripts</h4>
Name: hanging-punctuation
Value: none | [ first || [ force-end | allow-end ] || last ]
Initial: none
Applies to: <a>inline boxes</a>
Applies to: text
Inherited: yes
Canonical order: <abbr title="follows order of property value definition">per grammar</abbr>
Computed value: specified keyword(s)
Expand Down
Loading

0 comments on commit d3e3f44

Please sign in to comment.