Skip to content

[css-text][css-text-decor][css-writing-modes][css-color][css-fonts][css-color-adjust] Be explicit about which properties apply to text. #5303 #5761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[css-text][css-text-decor][css-writing-modes][css-color][css-fonts][c…
…ss-color-adjust] Be explicit about which properties apply to text. #5303
  • Loading branch information
fantasai committed Dec 8, 2020
commit 1339a165ce4024dc4b2d32d566a4c5b73f4059f0
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
24 changes: 12 additions & 12 deletions css-text-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,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 @@ -825,7 +825,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 @@ -885,7 +885,7 @@ Order of Operations</h4>

<p>This property specifies two things:
<ul>
<li>whether and how <a>white space</a> inside the element is collapsed
<li>whether and how <a>white space</a> is collapsed
<li>whether lines may <a>wrap</a> at unforced <a>soft wrap opportunities</a>
</ul>

Expand Down Expand Up @@ -2302,7 +2302,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 @@ -2863,7 +2863,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 @@ -3226,7 +3226,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 @@ -3638,7 +3638,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 @@ -3809,7 +3809,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 @@ -4302,7 +4302,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 @@ -4630,7 +4630,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 @@ -4783,7 +4783,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 @@ -5601,7 +5601,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