overflow-x:visible; overflow-y:hidden does not work as expected

RESOLVED INVALID

Status

()

RESOLVED INVALID
13 years ago
5 months ago

People

(Reporter: siulung, Assigned: roc)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

667 bytes, text/html
Details
(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060731 Ubuntu/dapper-security Firefox/1.5.0.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060731 Ubuntu/dapper-security Firefox/1.5.0.5

Setting style="overflow-x:hidden; overflow-y:visible"
works like style="overflow-x:hidden; overflow-y:auto"

The "hidden, visible" test case in bug 72747 already demonstrated this issue.
See https://bugzilla.mozilla.org/attachment.cgi?id=156617

Reproducible: Always
(Reporter)

Comment 1

13 years ago
Created attachment 239460 [details]
Test case

Test case added
(Reporter)

Comment 2

13 years ago
The summary was wrong, but the problem is actually symmetric.
Summary: overflow-x:hidden; overflow-y:visible does not work as expected → overflow-x:visible; overflow-y:hidden does not work as expected
This is not a bug. I'm not sure where it's specified, but 'visible' only works if you specify it in both directions.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → INVALID

Comment 4

6 years ago
(In reply to Robert O'Callahan (:roc) (Mozilla Corporation) from comment #3)
> This is not a bug. I'm not sure where it's specified, but 'visible' only
> works if you specify it in both directions.

Please provide reference to the CSS spec where you see this rule.

Comment 5

6 years ago
The spec does specify that if an overflow axis is set to either 'auto' or 'scroll' then setting the other axis to 'visible' is not possible: http://dev.w3.org/csswg/css-box/#collapse-scroll

> The computed values of ‘overflow-x’ and ‘overflow-y’ are the same as their specified values, except that some combinations with ‘visible’ are not possible: if one is specified as ‘visible’ and the other is ‘scroll’ or ‘auto’, then ‘visible’ is set to ‘auto’.

But that doesn't explain why 'hidden' would be preventing the other axis from being 'visible'.
Thae spec should prevent visible+hidden as well. Other browsers agree on this.
The spec wording in css3-box hasn't been agreed to by other members of the CSS Working Group.

This matches what I specified in http://dev.w3.org/csswg/css-overflow/#overflow-properties .  Though the working group hasn't agreed to that either... though I think we might have informally about 10 years ago.
Component: Layout: View Rendering → Layout: Web Painting
Product: Core → Core
You need to log in before you can comment on or make changes to this bug.