Skip to content

Deprecate and replace the grid system #99

@geoffrey-eisenbarth

Description

@geoffrey-eisenbarth

Deprecate the convoluted grid system. Replace its docs page with a guide on defining grids tersely with @scope. - Missing Roadmap

Blocked: @scope in Firefox.
Blocked: attr() for <custom-ident> in Firefox (I think? mdn isn't clear on this)

Possible new syntax from @dz4k

<style>
.grid {
  [id] {
    grid-area: attr(id);
  }
}
</style>

<div class="grid" style="
  grid-template: if(
    media(width < 768px), 'title' 'nav' 'content',
    'title title' 'nav content' / auto 1fr
  )
">
  <h1 id=title>...</h1>
  <nav id=nav>...</nav>
  <div id=content>...</nav>

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked:platformWaiting for new web platform features to stabilizedocumentationImprovements or additions to documentationenhancementNew feature or request

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions