Re: [csswg-drafts] [css-break] Add an ability to hide elements when they adjoin a page/column break (#12737)

> Perhaps some clever use of [`continue: discard`](https://drafts.csswg.org/css-overflow-4/#continue) might get you there although its intended purpose is a bit different.

That would be a major hack and I'd rather just have the `<hr>`s be visible at that point. It also seems like `continue` is very tied in with CSS Regions, which has been dead for about a decade and is not in any browser. I couldn't find it on Can I Use or MDN so I doubt there'd be good support for it.

> PS: If the `<hr>` or `<br>` markup was replaced by block-progression [gutters](https://drafts.csswg.org/css-align-3/#column-row-gap) (`row-gap`), they would automatically disappear when they coincide with a fragmentation break (which includes page breaks).

For this, I would need to wrap the content in my multi-col container in another div since `row-gap` indicates the gap between rows of columns in multi-col layout. And, to be able to style a dividing line into those gaps, I'd need to make it a 1-wide grid layout or a sideways multicol container. Both of those seem like the wrong way™.

-- 
GitHub Notification of comment by Psychpsyo
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12737#issuecomment-3258711454 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 5 September 2025 15:11:15 UTC