-
Notifications
You must be signed in to change notification settings - Fork 23.2k
CSS properties: intro sentence in values section part 3 #44936
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -35,6 +35,8 @@ clip: unset; | |||||
|
|
||||||
| ### Values | ||||||
|
|
||||||
| This property is specified as a `rect()` function or the keyword `auto`: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| - `rect()` | ||||||
| - : A rectangle defined using a `rect()` function of the form `rect(<top>, <right>, <bottom>, <left>)`. The `<top>` and `<bottom>` values are offsets from the _inside top border edge_ of the box, while `<right>` and `<left>` are offsets from the _inside left border edge_ of the box — that is, the extent of the padding box. | ||||||
|
|
||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -110,12 +110,10 @@ color: revert-layer; | |||||
| color: unset; | ||||||
| ``` | ||||||
|
|
||||||
| The `color` property is specified as a single {{cssxref("<color>")}} value. | ||||||
|
|
||||||
| Note that the value must be a uniform color. It can't be a {{cssxref("gradient")}}, which is actually a type of {{cssxref("image")}}. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we retain this Note? looks like important guidance |
||||||
|
|
||||||
| ### Values | ||||||
|
|
||||||
| This property is specified as one {{cssxref("<color>")}} value: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| - {{cssxref("<color>")}} | ||||||
| - : Sets the color of the textual and decorative parts of the element. | ||||||
| - [`currentColor`](/en-US/docs/Web/CSS/Reference/Values/color_value#currentcolor_keyword) | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -68,6 +68,8 @@ column-count: unset; | |||||
|
|
||||||
| ### Values | ||||||
|
|
||||||
| This property is specified as an `<integer>` or the keyword `auto`: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| - `auto` | ||||||
| - : The number of columns is determined by other CSS properties, such as {{cssxref("column-width")}}. | ||||||
| - {{cssxref("<integer>")}} | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -77,6 +77,8 @@ column-gap: unset; | |||||
|
|
||||||
| ### Values | ||||||
|
|
||||||
| This property is specified as a `<length>`, `<percentage>`, or the keyword `normal`: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| - `normal` | ||||||
| - : For multi-column layout, resolves to `1em`; otherwise `0`. This is the default value. | ||||||
| - {{CSSxRef("<length>")}} | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -36,6 +36,8 @@ column-height: unset; | |||||
|
|
||||||
| ### Values | ||||||
|
|
||||||
| This property is specified as a `<length>` or the keyword `auto`: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| - `auto` | ||||||
| - : The initial value. If the content container has a set height, the content columns will grow to that height, overflowing to the side if the content doesn't fit inside the container. If the content container does not have a set height, the content will be equally distributed between the columns generated inside the container. | ||||||
| - {{cssxref("<length>")}} | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -96,7 +96,7 @@ column-rule: unset; | |||||
|
|
||||||
| ### Values | ||||||
|
|
||||||
| The `column-rule` property accepts a comma-separated list of values, including: | ||||||
| This property is specified as a comma-separated list of values, each value being one of the following value types: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| - `<gap-rule>` | ||||||
| - : Specified as one, two, or three of the values listed below, in any order. | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -102,13 +102,7 @@ contain: unset; | |||||
|
|
||||||
| ### Values | ||||||
|
|
||||||
| The `contain` property can have any of the following values: | ||||||
|
|
||||||
| - The keyword `none` **or** | ||||||
| - One or more of the space-separated keywords `size` (or `inline-size`), `layout`, `style`, and `paint` in any order **or** | ||||||
| - One of the shorthand values `strict` or `content` | ||||||
|
|
||||||
| The keywords have the following meanings: | ||||||
| This property is specified as the keyword `none`, `strict`, or `content`, or a space-separated list of keyword values: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This info from original looks crucial - "one or more"
Suggested change
|
||||||
|
|
||||||
| - `none` | ||||||
| - : The element renders as normal, with no containment applied. | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -35,7 +35,7 @@ container-type: unset; | |||||
|
|
||||||
| ### Values | ||||||
|
|
||||||
| The `container-type` property can take a single value from the list below, or two values. In the two-value case, one must be `scroll-state` and the other can be `inline-size` or `size`. | ||||||
| This property is specified as one of the following keyword values, optionally with the keywords `inline-size` or `size` if the keyword is `scroll-state`: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the original had valuable framing around single-value and two-value cases.
Suggested change
|
||||||
|
|
||||||
| - `anchored` | ||||||
| - : Establishes a query container for anchored container queries on the container. In this case, the size of the element is not computed in isolation; no [containment](/en-US/docs/Web/CSS/Guides/Containment/Using) is applied. | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -94,13 +94,10 @@ counter-set: revert-layer; | |||||
| counter-set: unset; | ||||||
| ``` | ||||||
|
|
||||||
| The `counter-set` property is specified as either one of the following: | ||||||
|
|
||||||
| - A `<custom-ident>` naming the counter, followed optionally by an `<integer>`. You may specify as many counters to reset as you want, with each name or name-number pair separated by a space. | ||||||
| - The keyword value `none`. | ||||||
|
|
||||||
| ### Values | ||||||
|
|
||||||
| The `counter-set` property is specified as either a space-separated list of `<custom-ident>` values, each optionally followed by an `<integer>`, or the keyword `none`: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| - {{cssxref("custom-ident", "<custom-ident>")}} | ||||||
| - : The name of the counter to set. | ||||||
| - {{cssxref("<integer>")}} | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -30,6 +30,8 @@ dynamic-range-limit: unset; | |||||
|
|
||||||
| ### Values | ||||||
|
|
||||||
| This property is specified as one of the following keyword values or a `dynamic-range-limit-mix()` function: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| - `standard` | ||||||
| - : Specifies the maximum luminance as High Dynamic Range (HDR) reference white, which is the CSS color `white`. | ||||||
| - `no-limit` | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -46,7 +46,7 @@ fill: unset; | |||||
|
|
||||||
| ### Values | ||||||
|
|
||||||
| This property is specified as one keyword, `<color>`, or `url()` with an optional `<color>`: | ||||||
| This property is specified as a `<color>`, a `url()` optionally followed by a `<color>` or the keyword `none`, or one of the following keyword values: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This again mixes "one of the following keyword values" when the list also includes
Suggested change
|
||||||
|
|
||||||
| - `none` | ||||||
| - : No `fill` is painted; the areas inside the stroke, if any, are transparent. | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -79,7 +79,7 @@ Generally, `flex-shrink` is used alongside the {{cssxref("flex-grow")}} and {{cs | |||||
|
|
||||||
| ## Values | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This section needs to be moved before "Description"
Suggested change
|
||||||
|
|
||||||
| The `flex-shrink` property is specified as a single `<number>`. | ||||||
| This property is specified as one `<number>` value: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| - `<number>` | ||||||
| - : See {{cssxref("<number>")}}. Negative values are invalid. Defaults to 1. | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -35,6 +35,8 @@ The `font-language-override` property is specified as the keyword `normal` or a | |||||
|
|
||||||
| ### Values | ||||||
|
|
||||||
| This property is specified as a `<string>` or the keyword `normal`: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| - `normal` | ||||||
| - : Tells the browser to use font glyphs that are appropriate for the language specified by the `lang` attribute. This is the default value. | ||||||
| - {{cssxref("string")}} | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -27,6 +27,8 @@ font-palette: palette-mix(in lch, --blue, --yellow); | |||||
|
|
||||||
| ### Values | ||||||
|
|
||||||
| This property is specified as a `<dashed-ident>`, a `paletter-mix()` function, or one of the following keyword values: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The listed values are not just the keywords but also include
Suggested change
|
||||||
|
|
||||||
| - `normal` | ||||||
| - : Specifies the default color palette or the default glyph colorization (set by the font maker) to be used for the font. With this setting, the palette in the font at index 0 is rendered. | ||||||
| - `light` | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.