LGTM3

On 11/23/26 4:33 p.m., Chris Harrelson wrote:
LGTM2

On Mon, Nov 23, 2026 at 1:32 PM Vladimir Levin <[email protected]> wrote:



    On Mon, Nov 23, 2026 at 4:13 AM Thomas Nguyen
    <[email protected]> wrote:

        Thanks for the feedback, Vlad.

        To clarify, in the current version, sites don't (and cannot)
        provide the text for capability elements. The text (e.g., "Use
        microphone") is fixed, entirely browser-generated, and
        localized by the UA in both normal and icon-only modes.
        For any inner text or child elements—such as
        <microphone">placeholder</microphone> —we ignore those both
        visually and in the accessibility tree, and still announce the
        browser's localized "Use microphone" string.


    Ah that makes a lot of sense. Thanks for the explanation.

    LGTM1

        The general issue
        <https://g-issues.chromium.org/issues/576585412>, I think will
        not have effect to this ship, we can restrict aria-label
        overrides on capability elements. The only way an author could
        influence the string would be via a misconfigured language,
        which I think is fine to treat as a standard error. Does it
        make sense to you?

        On Friday, November 20, 2026 at 5:20:32 PM UTC+1 Vladimir
        Levin wrote:

            On Fri, Nov 20, 2026 at 10:13 AM 'Ravjit Uppal' via
            blink-dev <[email protected]> wrote:

                Hi Vlad and Dan, answering both of your concerns here
                in this reply.

                 1. *Signals*
                    We have updated both the signals.

                 2. *Screen reader announcements
                    *The default announcement is what the text of the
                    button would be in normal mode. (e.g. Use
                    Microphone). With aria-label the announcement
                    changes to the aria-label. This issue exists in
                    the normal mode as well and we have a bug
                    <https://g-issues.chromium.org/issues/576585412>tracking
                    it.

            I see. It sounds like the text should still be used, but
            this feature (icon-only mode) will not render it visually.
            I worry that if this is the case, then over time authors
            that use icon-only mode will put placeholder or even
            incorrect text since visually they wouldn't notice that.
            Is this a concern or do you think that treating this as an
            author error is sufficient?

            Thanks,
            Vlad

                1.
                 2. *CSS property vs Attribute*
                    Thanks for raising this! We'll add this as a
                    /Considered Alternative/ in the explainer. We did
                    explore CSS-based approaches such as exposing
                    *::permission-text { display: none }* or adding a
                    *dedicated CSS property. *We agree that
                    @media/@container responsiveness is the strongest
                    argument for CSS. Ultimately, we went with
                    *displayhint="icon-only" *which we also discussed
                    in the W3C WebRTC WG with no objections for the
                    following reasons:

                 *
                      o *WG consensus, encapsulation & security:*As
                        discussed in the W3C WebRTC WG (with no
                        objections), displayhintis intentionally
                        modeled as a high-level hint so UAs retain
                        flexibility over their internal UI structure
                        without introducing a new CSSWG property
                        scoped to only three elements. Keeping the
                        text span private inside the closed UA Shadow
                        DOM rather than exposing ::permission-textjust
                        for display: none avoids expanding the CSS
                        anti-spoofing allowlist surface and prevents
                        dynamic CSS state-flipping (e.g., :hoveror
                        animations) without DOM mutations, routing
                        mode changes cleanly through stability cooldowns.
                      o *Coordinated widget defaults:*Icon-only mode
                        updates multiple UA defaults together: hiding
                        the text, zeroing ::permission-icon's
                        inline-end margin to center the icon, and
                        changing default host padding from pillto
                        compact at UA specificity so authors can still
                        override it. Standard CSS cascade cannot
                        conditionally update host paddingor sibling
                        ::permission-iconmargins from
                        ::permission-text's computed display(nor can
                        one CSS property alter another property's UA
                        default without custom cascade hacks).
                      o *Simpler maintainable code:*With an HTML
                        attribute, icon-only state is known upfront in
                        the DOM before style resolution so UA styles,
                        icon clamping, and stability cooldowns all use
                        a single stateless check. Making icon-only
                        depend on ComputedStyleintroduces tree-order
                        style dependencies across the host,
                        ::permission-icon, and ::permission-text, and
                        requires diffing computed state across every
                        style recalc for clickjacking cooldowns.

                Thanks,
                Rav

                On Wednesday, November 18, 2026 at 7:02:46 PM UTC+1
                [email protected] wrote:

                    My understanding is that there is at least some
                    constrained ability to style these elements
                    through CSS
                    
(https://developer.chrome.com/blog/geolocation-html-element#styling_constraints).


                    Have you looked at whether achieving the icon-only
                    appearance through CSS might be a better fit, e.g.
                    by exposing a pseudo-element for the element's
                    text that could be set to display:none to leave
                    only the icon?
                    This approach would allow use with CSS media
                    queries to more easily build responsive UI, like
                    switching to the icon-only version when space is
                    constrained.

                    This is the kind of thing that'd be great to see
                    as a Considered Alternative in the explainer.

                    Thanks,
                    Dan
                    On Wednesday, November 18, 2026 at 8:22:28 AM
                    UTC-8 [email protected] wrote:

                        Hey,

                        There seems to be signals filed via
                        
https://groups.google.com/a/chromium.org/g/blink-dev/c/Iaoq0CYadzo/m/NlncYTu1GwAJ,
                        can you amend those signals to mention this
                        functionality as well?

                        For accessibility, you mention that this
                        provides "full screen reader accessibility".
                        Can you clarify what the default screen reader
                        announcement would be? Is this customizable
                        via aria attributes?

                        Thanks,
                        Vlad

                        On Thursday, November 12, 2026 at 10:52:32 AM
                        UTC-5 Chromestatus wrote:

                            *Contact emails*
                            [email protected], [email protected]

                            *Explainer*
                            
https://github.com/w3c/mediacapture-extensions/blob/main/media-capture-elements-explainer.md

                            *Specification*
                            
https://github.com/w3c/mediacapture-extensions/pull/184


                            *Summary*
                            Introduces a new attribute to render
                            Capability Elements(<camera>, <microphone>
                            and <geolocation>) as compact icon buttons
                            without text using a `displayhint`
                            attribute. This gives developers flexible
                            UI density for spatial layouts such as map
                            controls and video floating trays while
                            preserving native security guarantees and
                            full screen reader accessibility. This is
                            an extension to the recently released
                            Capability Elements
                            https://chromestatus.com/feature/5153829504024576


                            *Blink component*
                            UI>Browser>Permissions>Prompts
                            
<https://issues.chromium.org/issues?q=customfield1222907:%22UI%3EBrowser%3EPermissions%3EPrompts%22>

                            *Web Feature ID*
                            permissions
                            <https://webstatus.dev/features/permissions>

                            *Motivation*
                            Capability elements currently default to a
                            horizontal button layout containing an
                            icon and mandatory localized text that
                            cannot be removed or customized. However,
                            modern web layouts such as interactive
                            maps and video conferencing floating trays
                            rely heavily on compact, icon-only UI
                            patterns. Providing a declarative display
                            mode allows developers to integrate
                            capability elements seamlessly into
                            space-constrained designs while fully
                            preserving browser-mediated security
                            guarantees.

                            *Initial public proposal*
                            /No information provided/

                            *TAG review*
                            https://github.com/w3ctag/design-reviews/issues/1218


                            *TAG review status*
                            Issues addressed

                            *Goals for experimentation*
                            None

                            *Risks*


                            *Interoperability and Compatibility*
                            /No information provided/

                            /Gecko/: No signal

                            /WebKit/: No signal

                            /Web developers/: No signals

                            /Other signals/:

                            *WebView application risks*

                            Does this intent deprecate or change
                            behavior of existing APIs, such that it
                            has potentially high risk for Android
                            WebView-based applications?

                            /No information provided/


                            *Debuggability*
                            /No information provided/

                            *Will this feature be supported on all six
                            Blink platforms (Windows, Mac, Linux,
                            ChromeOS, Android, and Android WebView)?*
                            No

                            *Is this feature fully tested by
                            web-platform-tests
                            
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>?*
                            No


                            *Flag name on about://flags*
                            CapabilityElementIconOnlyMode

                            *Finch feature name*
                            CapabilityElementIconOnlyMode

                            *Rollout plan*
                            Will ship enabled for all users

                            *Requires code in //chrome?*
                            False

                            *Tracking bug*
                            https://g-issues.chromium.org/issues/583741580

                            *Launch bug*
                            https://launch.corp.google.com/launch/4475538

                            *Availability expectation*
                            Feature is available only in Chromium
                            browsers. We are not aware of other
                            browsers adoption.

                            *Adoption expectation*
                            The current partner users of Capability
                            Elements are keen to use the icon-only
                            mode within the next 6 months.

                            *Adoption plan*
                            The Spec for media capture elements will
                            be update to include the addition of this
                            new attribute.

                            *Non-OSS dependencies*

                            Does the feature depend on any code or
                            APIs outside the Chromium open source
                            repository and its open-source
                            dependencies to function?

                            No

                            *Estimated milestones*
                            Shipping on desktop         160
                            Shipping on Android         160



                            *Anticipated spec changes*

                            Open questions about a feature may be a
                            source of future web compat or interop
                            issues. Please list open issues (e.g.
                            links to known github issues in the
                            project for the feature specification)
                            whose resolution may introduce web
                            compat/interop risk (e.g., changing to
                            naming or structure of the API in a
                            non-backward-compatible way).

                            /No information provided/

                            *Link to entry on the Chrome Platform Status*
                            
https://chromestatus.com/feature/5107682460696576?gate=6075922708037632

                            This intent message was generated by
                            Chrome Platform Status
                            <https://chromestatus.com>.

-- You received this message because you are subscribed
                to the Google Groups "blink-dev" group.
                To unsubscribe from this group and stop receiving
                emails from it, send an email to
                [email protected].
                To view this discussion visit
                
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6b12b52c-075e-401d-b1fb-bdfdb5726a9dn%40chromium.org
                
<https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6b12b52c-075e-401d-b1fb-bdfdb5726a9dn%40chromium.org?utm_medium=email&utm_source=footer>.

-- You received this message because you are subscribed to the Google
    Groups "blink-dev" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to [email protected].
    To view this discussion visit
    
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADsXd2MMcWf%3DFKf5yf4%3DEpc5nU34RjKydAWZeJO0dgH0-dKoaw%40mail.gmail.com
    
<https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADsXd2MMcWf%3DFKf5yf4%3DEpc5nU34RjKydAWZeJO0dgH0-dKoaw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw_kWVYxvzGeJzvm3_CLhLa0qe4diG79Ez_zOUROVdGT3A%40mail.gmail.com <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw_kWVYxvzGeJzvm3_CLhLa0qe4diG79Ez_zOUROVdGT3A%40mail.gmail.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/8b3c66e8-355f-44b0-95a0-b9c85519ab63%40chromium.org.

Reply via email to