whatwg / whatwg.org

The WHATWG website and other static resources
https://whatwg.org/
Other
75 stars 50 forks source link

Add support for <dl class="props"> #396

Closed domenic closed 2 years ago

domenic commented 2 years ago

This makes declaring struct instances (in the sense of https://infra.spec.whatwg.org/#structs) much easier.


Extracted from https://github.com/whatwg/html/pull/6315. See some example usages at https://whatpr.org/html/6315/history.html#snapshotting-source-snapshot-params and https://whatpr.org/html/6315/history.html#navigate steps 14.7 and 14.13.6.

annevk commented 2 years ago

@tabatkins was asking for a struct literal syntax on Matrix. We should probably pick one or the other?

domenic commented 2 years ago

I think this is useful even when you don't want a literal, e.g. the examples I linked where the structs are large and so you specifically want a column-based presentation.