Skip to content

Commit c52bc38

Browse files
committed
[css-overflow-3] Added issue about padding box and overflow.
1 parent 5284867 commit c52bc38

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

css-overflow-3/Overview.bs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,30 @@ Scrollable overflow</h3>
155155
<li>
156156
the box’s own content and padding areas
157157

158+
<div class=issue>
159+
There's disagreement on the scrolling model.
160+
2.1 apparently defined that you scrolled the *content* area;
161+
the content would overflow the content-box,
162+
and you would union that overflow with the content box to find the scrollable area.
163+
In particular, this means that the content would be offset by the start-sides padding,
164+
but if it overflowed,
165+
it would go right to the edge on the end sides.
166+
This is what Firefox and IE do.
167+
168+
At least some authors (and spec authors)
169+
instead have the mental model that the padding box is what's scrollable,
170+
so when you scroll to the end of the overflow,
171+
there's the right/bottom padding.
172+
Chrome/WebKit do this for the block axis, at least.
173+
They're somewhat inconsistent for the inline axis;
174+
there's something weird about how they handle lineboxes.
175+
176+
It seems that the block-axis padding is probably web-compatible to honor.
177+
It's unclear that the inline-axis padding will be.
178+
Further experimentation is needed.
179+
</div>
180+
181+
158182
<li>
159183
all line boxes directly contained by the box
160184

0 commit comments

Comments
 (0)