Skip to content

Why a dedicated <feature> element and not <figure> #58

Open

Description

@dead-claudia

<feature> and <featurecaption> are defined very similarly to <figure> and <figcaption>, and I don't understand why feature captions couldn't contain elements. And accessibility considerations are nearly identical.

Activity

  1. prushforth commented on May 9, 2025

    @prushforth
    Member

    Your later comments suggest you answered this, but for the record.

    <featurecaption> is intended to be the accessible name of the feature, explicitly marked up. <properties> maps to GeoJSON member properties, except it can contain any HTML markup and <geometry> is a mapping of GeoJSON geometry to markup, so that it can be rendered natively and styled via CSS.

    cc @shepazu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions