Remix.run Logo
halapro 3 hours ago

Sounds like it's CSS' fault then. I think that just like they introduced `display:contents` to remove wrappers, they should also introduce a way to group elements as if they had a common ancestor.

    :wrap(dt, dt+dd) {border: solid 1px}
eurleif 2 hours ago | parent | next [-]

Proposal from 2016 (closed): https://github.com/w3c/csswg-drafts/issues/588

WorldMaker an hour ago | parent | prev | next [-]

With CSS Grid math you can fake it, at least. If your DL is `display: grid;` and if you have a few extra DIVs lying around at the bottom of the DL to be borders around combined cells you just have to math which rows/columns you want to draw a border around and make the div fit that combined shape.

cubefox 2 hours ago | parent | prev [-]

Good idea. Together with ::after / ::before and content: (which can insert text into the website) it might then be possible to create a website without any HTML, only CSS.