Skip to content

[css-ui] Proposal: change outline-offset initial value to auto #13587

@sb3nder

Description

@sb3nder

Problem

When outline-style: auto is used in combination with outline-offset,
Chrome currently subtracts around 1px from the used value of outline-offset to help keep focus outlines visible in overflow scenarios not handled by authors.

Unfortunately, when the author wants to handle the offset themselves, this makes outline-offset very hard to use in a predictable way in Chrome and in an interoperable way across browsers.

In other UAs, outline-offset currently behaves normally with outline-style: auto, but I don’t think this interaction is clearly specified, so I’m not sure there is a guarantee that this behavior would not change in the future, for example due to UA stylistic or accessibility changes.


Maybe changing the initial value of outline-offset to auto could give UAs enough flexibility to choose their own default offset, while making numeric values specified by authors behave normally.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions