Skip to content

Update .multimedia to aspect-ratio with @supports fallback #10

@nerdpruitt

Description

@nerdpruitt

Something to this effect:

.multimedia {
    aspect-ratio: 16 / 9;
}

@supports not (aspect-ratio: 16 / 9) {
    .multimedia {
        position: relative;
        width: 100%;
    }

    .multimedia::before {
        content: '';
        display: block;
        height: 0;
        padding-bottom: 56.25%;
    }
}

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