Visitar URL original
[css-values-5] Do we need media-progress() and container-progress()? · Issue #11826 · w3c/csswg-drafts · GitHub
Skip to content

[css-values-5] Do we need media-progress() and container-progress()? #11826

Closed

Description

@fantasai

Given you can write progress(100vw, 200px, 4000px) and progress(100cqw, 100px, 400px)... do we even really need media-progress() and container-progress()?

progress() with viewport units even has the advantage of letting you choose among sv*,lv*, and dv*.

So are there use cases that require media-progress() or container-progress() or should we keep things simple and drop them in favor of progress()?

Activity

  1. fantasai commented on Mar 5, 2025

    @fantasai
    CollaboratorAuthor
  2. kizu commented on Mar 5, 2025

    @kizu
    Member

    I think the only thing that container-progress currently provides: an ability to mention the container name, for which I would prefer #7858 anyway.

    Also, I don't know if it is a limitation of the current prototype in Chrome Canary, but by quickly playing with the container-progress(), I couldn't even make what I wanted with it, and it felt more verbose than with just progress(), even from the syntax standpoint.

    I would be totally fine with dropping the media-progress() and container-progress(), especially given custom functions could allow us to experiment with the syntax for something more container/media-related, and if there will emerge a much more convenient pattern, we could always adopt it later as a built-in funciton.

  3. andruud commented on Mar 5, 2025

    @andruud
    Member

    (These functions are about to ship in Chrome; I've notified the I2S thread of this issue. cc @danielsakhapov)

    +1 to dropping them until they clearly provide additional value.

    I couldn't even make what I wanted with [the container-progress() prototype in Chrome]

    Please do reach out and tell us more. :-)

  4. mirisuzanne commented on Mar 5, 2025

    @mirisuzanne
    Contributor

    I think it's ok to drop for now.

  5. nt1m commented on Mar 12, 2025

    @nt1m
    Member

    WebKit is happy to remove if that ends up being the spec resolution.

  6. astearns commented on Mar 17, 2025

    @astearns
    Member

    Seeing no disagreements in the thread, I think we can handle this resolution asynchronously

    The CSSWG will automatically accept this resolution one week from now if no objections are raised here. Anyone can add an emoji to this comment to express support. If you do not support this resolution, please add a new comment.

    Proposed Resolution: Drop media-progress() and container-progress() for now

  7. scottkellum commented on Mar 18, 2025

    @scottkellum

    I’m happy with dropping media-progress() and container-progress() and only keeping progress() 👍🏻

  8. astearns commented on Mar 24, 2025

    @astearns
    Member

    RESOLVED: Drop media-progress() and container-progress() for now

  9. ByteEater-pl commented on Jun 7, 2026

    @ByteEater-pl

    Why was media-progress() deemed redundant? IIUC, it could read values from any numeric media feature, not just those expressible with viewport units. And there's no media() function that makes media features available in CSS values.

  10. mirisuzanne commented on Jun 9, 2026

    @mirisuzanne
    Contributor

    I imagine people would be open to bringing these back, if someone wanted to flesh out the use-cases that are not covered. Do you have something specific in mind?

  11. ByteEater-pl commented on Jun 9, 2026

    @ByteEater-pl

    Having images, filters, shadows and similar stuff depend on color. If there's little depth, the author may accept that quality will be poorer anyway and use a simpler style in exchange for lower requirements on transfer, bandwidth, compute and memory.

  12. tabatkins commented on Jun 9, 2026

    @tabatkins
    Member

    Note that color is, in practice, fixed to the value 8. B&W devices might set it to 0, but I'm not sure that happens in reality.

  13. ByteEater-pl commented on Jun 10, 2026

    @ByteEater-pl

    I didn't know. In that case, it's something implementors should be pestered with.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions