Skip to content

scroll-padding-inline with container query? #12900

@bakura10

Description

@bakura10

Hello,

I run into a behavior that surprised me a bit, but it consistent across browsers. I wonder if this is the expected result or if it is a spec bug. I'm trying to create a full bleed feature and use cqw units to do automatic calculation. Unfortunately, while the margin and padding are calculated correctly, the scroll-padding-inline does not seem to work. This issue can be reproduced here: https://codepen.io/bakura10/pen/wBMoaqK

As you can see in the inspector the correct value is calculated for both padding-inline and margin-inline, but for some reason it does not apply to the scroll-padding-inline.

What is the reason of this behavior?

Thanks.

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