[Webkit-unassigned] [Bug 17488] New: If either overflow-x or overflow-y value is not visible, Webkit will change it to auto
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 22 06:41:25 PST 2008
http://bugs.webkit.org/show_bug.cgi?id=17488
Summary: If either overflow-x or overflow-y value is not visible,
Webkit will change it to auto
Product: WebKit
Version: 525+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: johnnyding.webkit at gmail.com
See attached test cause, The first div has style: ""height:100px;
overflow-y:hidden; overflow-x:visable; width:1px", which means the page author
wants to make sure that the div box have hidden clipped content in y direction,
but doesn't clip the content in x direction.
In IE 6/7, Opera 9, I think they have correct behavior.
But in FireFox 2/3, Safari, the overflow-y:hidden will cause the actual used
value of overflow-x is auto, since the div's width is not long enough for
creating horizontal bar, the content in x direction has been clipped.
The reason of this problem is if either overflow-x or overflow-y value is not
visible, Webkit will change it to auto. then the element will be treated as
having overflow clip property. See function CSSStyleSelector::adjustRenderStyle
(file: CSSStyleSelector.cpp, line:1201) and function RenderBox::setStyle (file:
RenderBox.cpp, line:110).
I did not see that The CSS
2(http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow) and
CSS3(http://www.w3.org/TR/2002/WD-css3-box-20021024/#the-overflow-x)
specification have define the behavior just like webkit did.
Is that a bug? Anyone can point me for this problem. The problem caused some
contentz can't be displayed in webpages for some high traffic Chinese websites.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list