New data type page: line-width#44597
Conversation
| - `<'border-width'>` | ||
| - : The width of the border. See {{ cssxref("border-width") }}. | ||
| - {{cssxref("line-width")}} | ||
| - : Defines the width of the border, either as an explicit non-negative {{cssxref("<length>")}} or the keywords `thin`, `medium`, or `thick`. The default is `medium`. |
There was a problem hiding this comment.
FYI, changed ll instances of nonnegative to non-negative. The vast majority of MDN uses this form.
| - `<'border-width'>` | ||
| - {{cssxref("line-width")}} | ||
| - : The width of the border. See {{cssxref("border-width")}}. | ||
| - `<'border-style'>` |
There was a problem hiding this comment.
The next case of this I saw was updated to {{cssxref("line-style")}} - is there a reason that this isn't? There are 5 or 6 of them.
|
|
||
| - `<'column-rule-width'>` | ||
| - : Is a {{cssxref("<length>")}} or one of the three keywords, `thin`, `medium`, or `thick`. See {{cssxref("border-width")}} for details. | ||
| - : A {{cssxref("line-width")}}, being either a {{cssxref("<length>")}} or one of the keywords, `hairline`, `thin`, `medium`, or `thick`. See {{cssxref("column-rule-width")}}. |
There was a problem hiding this comment.
@estelle hairline appears to be in the spec, but one of your commits removed most of them. I still see a few, like this one. Most important, I see it as an allowed value.
What's the story - hairline only allowed in some properties? Or perhaps only currently supported in some properties?
| - `<'border-width'>` | ||
| - : The width of the border. See {{ cssxref("border-width") }}. | ||
| - {{cssxref("line-width")}} | ||
| - : Defines the width of the border, either as an explicit nonnegative {{cssxref("<length>")}} or the keyword `thin`, `medium`, or `thick`. The default is `medium`. |
There was a problem hiding this comment.
Every case should be a plural like this:
| - : Defines the width of the border, either as an explicit nonnegative {{cssxref("<length>")}} or the keyword `thin`, `medium`, or `thick`. The default is `medium`. | |
| - : Defines the width of the border, either as an explicit nonnegative {{cssxref("<length>")}} or the keywords: `thin`, `medium`, or `thick`. The default is `medium`. |
| short-title: <line-width> | ||
| slug: Web/CSS/Reference/Values/line-width | ||
| page-type: css-type | ||
| browser-compat: css.types.line-width |
There was a problem hiding this comment.
NO compat. I presume this is to come.
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
The
line-widthdata type is used in multiple properties. It's time it had a page.reduces redundancy.
https://drafts.csswg.org/css-borders-4/#typedef-line-width defines hairline as a value I included it in the data-type page, along with an example and a no support message.
Part of openwebdocs/project#238