[Inactive CSS] Display a warning when scroll-padding-* properties are used on a non-scrollable element
Categories
(DevTools :: Inspector: Rules, enhancement, P3)
Tracking
(firefox87 fixed)
Tracking | Status | |
---|---|---|
firefox87 | --- | fixed |
People
(Reporter: miker, Assigned: sebo)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
Only valid on non-scrollable elements:
[
"scroll-snap-coordinate",
"scroll-snap-destination",
"scroll-snap-points-x",
"scroll-snap-points-y",
"scroll-snap-type",
"scroll-snap-type-x",
"scroll-snap-type-y",
]
[This property] doesn't have an effect because the element doesn't scroll. Try adding a property like overflow:scroll.
Comment 1•6 years ago
|
||
(In reply to Mike Ratcliffe [:miker] [:mratcliffe] [:mikeratcliffe] from comment #0)
Only valid on non-scrollable elements:
[ "scroll-snap-coordinate", "scroll-snap-destination", "scroll-snap-points-x", "scroll-snap-points-y", "scroll-snap-type", "scroll-snap-type-x", "scroll-snap-type-y", ]
[This property] doesn't have an effect because the element doesn't scroll. Try adding a property like overflow:scroll.
Those properties other than scroll-snap-type will be dropped in bug 1218265 and bug 1218264.
That's said, I think scroll-snap-type is also valid on scrollable element. It can be applied on all elements.
Reporter | ||
Comment 2•6 years ago
|
||
You are right:
Applies to: all elements
So I guess we need to drop this one.
@hiro Thanks for letting us know!
Updated•5 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
According to the latest version of the specification, only scroll-padding-*
properties are restricted to scroll containers. Therefore I've changed the summary accordingly.
Sebastian
Assignee | ||
Comment 4•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Comment 5•4 years ago
|
||
Nicolas, could you please do the review?
Sebastian
Comment 8•4 years ago
|
||
bugherder |
Comment 9•4 years ago
|
||
Documentation done; see https://github.com/mdn/content/issues/2505
Description
•