New pages: rule-break properties - #45095
Conversation
|
Preview URLs (3 pages)
Flaws (9) Found an unexpected or unresolvable flaw? Please report it here. URL:
URL:
URL:
(comment last updated: 2026-08-12 17:41:43) |
|
I think i got everything. thanks for the review. |
chrisdavidmills
left a comment
There was a problem hiding this comment.
Nice work, @estelle. I've been through all of the pages now, and given them a good review.
|
|
||
| {{SeeCompatTable}} | ||
|
|
||
| The **`column-rule-break`** [CSS](/en-US/docs/Web/CSS) property sets the behavior for breaking column rules within a given column gap into segments wherever column rules intersect row gaps. |
There was a problem hiding this comment.
I'm still not sure about the "within a given column gap" wording — it sounds like you are saying that you can specify the breaking behavior for a single specific gap, but that is not the case.
Wouldn't the following be clearer?
| The **`column-rule-break`** [CSS](/en-US/docs/Web/CSS) property sets the behavior for breaking column rules within a given column gap into segments wherever column rules intersect row gaps. | |
| The **`column-rule-break`** [CSS](/en-US/docs/Web/CSS) property sets the behavior for breaking column rules into segments wherever column rules intersect row gaps. |
|
|
||
| ## Description | ||
|
|
||
| The `column-rule-break` property sets the behavior for whether or not to break column rules into segments when they cross row gaps. |
There was a problem hiding this comment.
| The `column-rule-break` property sets the behavior for whether or not to break column rules into segments when they cross row gaps. | |
| The `column-rule-break` property specifies whether or not to break column rules into segments when they cross row gaps. |
Sounded a bit awkward
|
|
||
| Column rules are painted within a column gap as one or more segments, with segments occurring between adjacent grid items in separate columns, between flex items or flex lines in flex layouts depending on the `flex-direction`, or between columns in multi-col layouts. | ||
|
|
||
| The `column-rule-break` property only determines if the break occurs. By default, the break between column rule segments is the width of the row gap, as each segments starts and ends at the edge of the gap (or edge of the container). If the row gap is `0`, this break may not be visible. The end positions can be controlled with the {{cssxref("column-rule-inset")}} properties. |
There was a problem hiding this comment.
| The `column-rule-break` property only determines if the break occurs. By default, the break between column rule segments is the width of the row gap, as each segments starts and ends at the edge of the gap (or edge of the container). If the row gap is `0`, this break may not be visible. The end positions can be controlled with the {{cssxref("column-rule-inset")}} properties. | |
| The `column-rule-break` property only determines if the break occurs. By default, the break between column rule segments is the height of the row gap, as each segment starts and ends at the edge of the gap (or edge of the container). If the row gap is `0`, this break may not be visible. The end positions can be controlled with the {{cssxref("column-rule-inset")}} properties. |
|
|
||
| {{EmbedLiveSample("grid containers", "", "240")}} | ||
|
|
||
| By default, there are no column rule breaks. Check the checkbox to set the `column-rule-break` to `intersection`, which makes the otherwise continuous rules break at every "cross" intersection. By default, the break between segments is the width of the {{cssxref("row-gap")}}, which was set to `20px` in this case. |
There was a problem hiding this comment.
| By default, there are no column rule breaks. Check the checkbox to set the `column-rule-break` to `intersection`, which makes the otherwise continuous rules break at every "cross" intersection. By default, the break between segments is the width of the {{cssxref("row-gap")}}, which was set to `20px` in this case. | |
| By default, there are no column rule breaks. Check the checkbox to set the `column-rule-break` to `intersection`, which makes the otherwise continuous rules break at every "cross" intersection. By default, the break between segments is the height of the {{cssxref("row-gap")}}, which was set to `20px` in this case. |
|
|
||
| ### Flex containers | ||
|
|
||
| In flexbox, by default, gap rules between flex items span the item only while gap rules between flex lines are continuous. Therefore, whether the column rules break at every row gap by default depends on the `flex-direction`. In horizontal writing modes, when set to `row` or `row-reverse`, the column rule breaks at every row gap, equivalent to `column-rule-break: intersection`. When the `flex-direction` is `column` or `column-reverse`, the column rule is continuous by default, equivalent to `column-rule-break: none`. |
There was a problem hiding this comment.
I am still not sure what the first sentence means. How about removing it, and just sticking with this:
| In flexbox, by default, gap rules between flex items span the item only while gap rules between flex lines are continuous. Therefore, whether the column rules break at every row gap by default depends on the `flex-direction`. In horizontal writing modes, when set to `row` or `row-reverse`, the column rule breaks at every row gap, equivalent to `column-rule-break: intersection`. When the `flex-direction` is `column` or `column-reverse`, the column rule is continuous by default, equivalent to `column-rule-break: none`. | |
| In flexbox, whether the column rules break at every row gap by default depends on the `flex-direction` (the following assumes a horizontal writing mode): | |
| - When it is set to `row` or `row-reverse`, the column rule breaks at every row gap, equivalent to `column-rule-break: intersection`. | |
| - When it is set to `column` or `column-reverse`, the column rule is continuous by default, equivalent to `column-rule-break: none`. |
|
|
||
| ### Multi-col containers | ||
|
|
||
| In multi-col containers, the default `normal` behavior differs between row rules and column rules. On `column-rule-break`, gap rule segments start and end when they intersect a row gap, behaving as `column-rule-break: intersection`, while row rules don't breaks, with `row-rule-break` behaving the same as `none`. |
There was a problem hiding this comment.
| In multi-col containers, the default `normal` behavior differs between row rules and column rules. On `column-rule-break`, gap rule segments start and end when they intersect a row gap, behaving as `column-rule-break: intersection`, while row rules don't breaks, with `row-rule-break` behaving the same as `none`. | |
| In multi-col containers, the default `normal` behavior differs between row rules and column rules. Column rule segments start and end when they intersect a row gap, behaving as `column-rule-break: intersection`, while row rules don't break when they intersect a column gap, behaving as `row-rule-break: none`. |
| <fieldset> | ||
| <legend>Set <code>rule-break:</code></legend> | ||
| <label | ||
| ><input type="radio" name="break" value="none" /> <code>none</code></label |
There was a problem hiding this comment.
Same question as on the other pages — why radio buttons instead of a single checkbox?
|
|
||
| ### Basic usage | ||
|
|
||
| In this example, we use the `rule-break` property to break each rule segment in a grid container so no rules intersects |
There was a problem hiding this comment.
| In this example, we use the `rule-break` property to break each rule segment in a grid container so no rules intersects | |
| In this example, we use the `rule-break` property to break each rule segment in a grid container so no rules intersect. |
| </ul> | ||
| <p> | ||
| <label | ||
| >Change the width of the column gap. |
There was a problem hiding this comment.
As with column-rule-break, can we put the form control at the top of the example? Much better for usability.
|
|
||
| #### Result | ||
|
|
||
| {{EmbedLiveSample("Basic", "", "510")}} |
There was a problem hiding this comment.
Increase the height of the embedded demo slightly to get rid of the vertical scrollbar.
This PR includes the creation of three new reference pages:
row-rule-breakcolumn-rule-breakrule-breakshorthandSpec: https://drafts.csswg.org/css-gaps-1/#break
The CSS gaps module page is already live.
Part of openwebdocs/project#238