View in English

  • Apple Developer
    • 今すぐ始める

    「今すぐ始める」を詳しく見る

    • 概要
    • 学ぶ
    • Apple Developer Program

    最新情報

    • 最新ニュース
    • Hello Developer
    • プラットフォーム

    プラットフォームを詳しく見る

    • Appleプラットフォーム
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    特集

    • デザイン
    • 配信
    • ゲーム
    • アクセサリ
    • Web
    • Home
    • CarPlay
    • テクノロジー

    テクノロジーを詳しく見る

    • 概要
    • Xcode
    • Swift
    • SwiftUI

    特集

    • アクセシビリティ
    • App Intent
    • Apple Intelligence
    • ゲーム
    • 機械学習とAI
    • セキュリティ
    • Xcode Cloud
    • コミュニティ

    コミュニティを詳しく見る

    • 概要
    • 「Appleに相談」イベント
    • コミュニティによるイベント
    • デベロッパフォーラム
    • オープンソース

    特集

    • WWDC
    • Swift Student Challenge
    • デベロッパストーリー
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Center
    • ドキュメント

    ドキュメントを詳しく見る

    • ドキュメントライブラリ
    • テクノロジー概要
    • サンプルコード
    • ヒューマンインターフェイスガイドライン
    • ビデオ

    リリースノート

    • 注目のアップデート
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • ダウンロード

    ダウンロードを詳しく見る

    • すべてのダウンロード
    • オペレーティングシステム
    • アプリ
    • デザインリソース

    特集

    • Xcode
    • TestFlight
    • フォント
    • SF Symbols
    • Icon Composer
    • サポート

    サポートを詳しく見る

    • 概要
    • ヘルプガイド
    • デベロッパフォーラム
    • フィードバックアシスタント
    • お問い合わせ

    特集

    • アカウントヘルプ
    • App Reviewガイドライン
    • App Store Connectヘルプ
    • 近日導入予定の要件
    • 契約およびガイドライン
    • システムステータス
  • クイックリンク

    • イベント
    • ニュース
    • Forum
    • サンプルコード
    • ビデオ
 

ビデオ

メニューを開く メニューを閉じる
  • コレクション
  • すべてのビデオ
  • 利用方法

その他のビデオ

  • 概要
  • Summary
  • コード
  • CSSグリッドレーンについて

    あらゆる形やサイズのコンテンツに対応する、適応性に優れた柔軟なWebレイアウトを構築しましょう。グリッドレーンを使って、さまざまな形の要素を、シンプルなCSSですっきりした柔軟なデザインに配置する方法を紹介します。レイアウトの柔軟性を保ちながらアクセシビリティを向上させるのに役立つ、フロートレランスについても取り上げます。

    関連する章

    • 0:00 - Introduction
    • 1:35 - CSS Flexbox and Grid
    • 2:45 - CSS Grid Lanes
    • 3:55 - Build a Grid Lanes container
    • 4:31 - Implement brick variation
    • 4:49 - Experiment with different layouts
    • 5:40 - Control individual items
    • 7:05 - Flow Tolerance
    • 8:46 - Web Inspector
    • 9:20 - Next steps

    リソース

    • WebKit.org - CSS Grid Lanes Field Guide
    • WebKit.org – Report issues to the WebKit open-source project
    • Submit feedback
      • HDビデオ
      • SDビデオ

    関連ビデオ

    WWDC26

    • HTMLのselect要素の新たな可能性
    • Safari 27用WebKitの新機能
  • このビデオを検索
    • 3:58 - Create a Grid Lanes Container

      .container {
      	display: grid-lanes;
      }
    • 4:02 - Create a Grid Lanes Container

      .container {
      	display: grid-lanes;
        grid-template-columns: repeat(3, 1fr);
      }
    • 4:26 - Create a Grid Lanes Container

      .container {
      	display: grid-lanes;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
      }
    • 4:33 - Implement a Brick Variation

      .container {
      	display: grid-lanes;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
      }
    • 4:36 - Implement a Brick Variation

      .container {
      	display: grid-lanes;
        grid-template-rows: repeat(3, 1fr);
        gap: 10px;
      }
    • 4:58 - Experiment with different layouts

      .container {
      	display: grid-lanes;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
      }
    • 5:02 - Experiment with different layouts

      .container {
      	display: grid-lanes;
        grid-template-columns: 1fr 2fr 1fr;
        gap: 10px;
      }
    • 5:10 - Experiment with different layouts

      .container {
      	display: grid-lanes;
        grid-template-columns:
          repeat(auto-fill,
            minmax(200px, 1fr));
        gap: 10px;
      }
    • 5:24 - Experiment with different layouts

      .container {
      	display: grid-lanes;
        grid-template-columns:
          repeat(auto-fill,
            minmax(8rem, 1fr)
            minmax(14rem, 2fr);
        gap: 10px;
      }
    • 5:45 - Control Individual Items

      .container {
      	display: grid-lanes;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
      }
    • 5:59 - Control Individual Items

      .container {
      	display: grid-lanes;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
      }
      
      .item {
        grid-column: span 2;
      }
    • 6:07 - Control Individual Items

      .container {
      	display: grid-lanes;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
      }
      
      .item {
        grid-column: 2 / span 2;
      }
    • 6:22 - Integrate Subgrid

      .container {
      	display: grid-lanes;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
      }
      
      .item {
        grid-column: span 2;
      }
    • 6:34 - Integrate Subgrid

      .container {
      	display: grid-lanes;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
      }
      
      .item {
        display: grid-lanes;
        grid-template-columns: subgrid;
        grid-column: span 2;
      }
    • 6:48 - Integrate Subgrid

      .container {
      	display: grid-lanes;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
      }
      
      .item {
        display: grid;
        grid-template-columns: subgrid;
        grid-column: span 2;
      }
    • 8:37 - Improve item positioning

      .container {
      	display: grid-lanes;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        flow-tolerance: normal;
      }
    • 8:41 - Improve item positioning

      .container {
      	display: grid-lanes;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        flow-tolerance: 2.1em;
      }
    • 0:00 - Introduction
    • Learn about CSS Grid Lanes, a new layout mode for masonry-style "waterfall" and "brick wall" design patterns in just a few lines of CSS, available now in Safari 26.4.

    • 1:35 - CSS Flexbox and Grid
    • Understand what a layout mode actually does and see why Flexbox and Grid fall short for content with mixed aspect ratios, where stretching, zooming, and cropping all distort your design.

    • 2:45 - CSS Grid Lanes
    • Learn how Grid Lanes fits between Grid and Flexbox, structuring one axis while leaving the other free so items pack tightly without distortion. Each item lands in whichever column leaves it closest to the top, and the same rules apply to images, text, or any other content.

    • 3:55 - Build a Grid Lanes container
    • Build your first Grid Lanes layout in three lines of CSS: `display: grid-lanes`, `grid-template-columns` with `fr` units to divide available space into fractions, and `gap` to space items apart.

    • 4:31 - Implement brick variation
    • Flip the layout 90 degrees by swapping `grid-template-columns` for `grid-template-rows` to flow items horizontally into a brick-wall layout. Grid Lanes structures one direction at a time — pick columns or rows, not both.

    • 4:49 - Experiment with different layouts
    • Use the full power of CSS track sizing inside Grid Lanes: unequal column widths, `auto-fill` with `minmax()` to let the browser choose how many columns fit, and repeating patterns of narrow and wide columns.

    • 5:40 - Control individual items
    • Shape individual items using familiar Grid properties — `grid-column: span 2` to stretch an item across columns, explicit column placement (rows are still chosen for you), and `grid-template-columns: subgrid` to align nested content with the parent layout.

    • 7:05 - Flow Tolerance
    • Discover why the shortest-column rule can produce visually pleasing layouts that confuse keyboard users when DOM order and visual order diverge. The `flow-tolerance` property loosens the rule so items prefer to fill earlier columns when heights are similar, with a default of `1em` you can tune to your content.

    • 8:46 - Web Inspector
    • Debug Grid Lanes layouts visually with Safari Web Inspector. Turn on the overlay to see column and row lines, gaps, and order numbers projected over each item — useful when tuning `flow-tolerance` or diagnosing surprising placements.

    • 9:20 - Next steps
    • Explore the WebKit team's Grid Lanes Field Guide for interactive demos, try Grid Lanes in your own projects (available in Safari 26.4), and share feedback with the team. To see what else is coming to Safari, watch "What's new in WebKit for Safari 27."

Developer Footer

  • ビデオ
  • WWDC26
  • CSSグリッドレーンについて
  • メニューを開く メニューを閉じる
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • SF Symbols
    メニューを開く メニューを閉じる
    • アクセシビリティ
    • アクセサリ
    • Apple Intelligence
    • App Extension
    • App Store
    • オーディオとビデオ(英語)
    • 拡張現実
    • デザイン
    • 配信
    • 教育
    • フォント(英語)
    • ゲーム
    • ヘルスケアとフィットネス
    • アプリ内課金
    • ローカリゼーション
    • マップと位置情報
    • 機械学習とAI
    • オープンソース(英語)
    • セキュリティ
    • SafariとWeb(英語)
    メニューを開く メニューを閉じる
    • 英語ドキュメント(完全版)
    • 日本語ドキュメント(一部トピック)
    • チュートリアル
    • ダウンロード
    • フォーラム(英語)
    • ビデオ
    Open Menu Close Menu
    • サポートドキュメント
    • お問い合わせ
    • バグ報告
    • システム状況(英語)
    メニューを開く メニューを閉じる
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles(英語)
    • フィードバックアシスタント
    メニューを開く メニューを閉じる
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program(英語)
    • Mini Apps Partner Program
    • News Partner Program(英語)
    • Video Partner Program(英語)
    • セキュリティ報奨金プログラム(英語)
    • Security Research Device Program(英語)
    Open Menu Close Menu
    • Appleに相談
    • Apple Developer Center
    • App Store Awards(英語)
    • Apple Design Awards
    • Apple Developer Academy(英語)
    • WWDC
    最新ニュースを読む。
    Apple Developerアプリを入手する。
    Copyright © 2026 Apple Inc. All rights reserved.
    利用規約 プライバシーポリシー 契約とガイドライン