Safari用这个简单的css崩溃了吗?

时间:2013-05-05 05:02:42

标签: html css safari

<style>
    .panel { margin:0px }
    .panel:after { 
       content: attr(data-text);
       height:100px; 
       overflow:scroll; /* <- looks like this is the evil css */
       line-height:2em;
       display:block;
 }
</style>
<div class="panel">i see your lips moving but all i understand is bla bla bla </div>
<div class="panel" data-text="Lorem ipsum dolor sit amet, consectetur
adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non 
proident, sunt in culpa qui officia deserunt mollit anim id est laborum."> yes
</div>

有人可以确认这一点,如果您单击滚动条导致浏览器因鼠标处理程序错误而崩溃吗?

编辑
只是为了确切..
这是使用Safari 5.0.6的crashreporter日志中的错误消息

WebCore :: RenderLayer :: scrollTo(int,int)+ 714 WebCore :: RenderLayer :: setScrollOffset(WebCore :: IntPoint const&amp;)+ 33 WebCore :: ScrollableArea :: setScrollOffsetFromAnimation(WebCore :: IntPoint const&amp;)+ 30 WebCore :: ScrollAnimator :: notityPositionChanged()+ 43 WebCore :: ScrollAnimator :: scroll(WebCore :: ScrollbarOrientation,WebCore :: ScrollGranularity,float,float)+ 140 WebCore :: ScrollAnimatorMac :: scroll(WebCore :: ScrollbarOrientation,WebCore :: ScrollGranularity,float,float)+ 300 WebCore :: ScrollableArea :: scroll(WebCore :: ScrollDirection,WebCore :: ScrollGranularity,float)+ 159 WebCore :: Scrollbar :: autoscrollPressedPart(double)+ 123 WebCore :: Scrollbar :: mouseDown(WebCore :: PlatformMouseEvent const&amp;)+ 129 WebCore :: EventHandler :: passMousePressEventToScrollbar(WebCore :: MouseEventWithHitTestResults&amp;,WebCore :: Scrollbar *)+ 58 WebCore :: EventHandler :: handleMousePressEvent(WebCore :: PlatformMouseEvent const&amp;)+ 1424 WebCore :: EventHandler :: mouseDown(NSEvent *)+ 385 - [WebHTMLView mouseDown:] + 475 WebCore :: EventHandler :: passMouseDownEventToWidget(WebCore :: Widget *)+ 388 WebCore :: EventHandler :: passWidgetMouseDownEventToWidget(WebCore :: RenderWidget *)+ 27 WebCore :: EventHandler :: passSubframeEventToSubframe(WebCore :: MouseEventWithHitTestResults&amp;,WebCore :: Frame *,WebCore :: HitTestResult *)+ 720 WebCore :: EventHandler :: passMousePressEventToSubframe(WebCore :: MouseEventWithHitTestResults&amp;,WebCore :: Frame *)+ 56 WebCore :: EventHandler :: handleMousePressEvent(WebCore :: PlatformMouseEvent const&amp;)+ 462 WebCore :: EventHandler :: mouseDown(NSEvent *)+ 385 - [WebHTMLView mouseDown:] + 475 - [NSWindow sendEvent:] + 5381 0x1000 + 259380 0x1000 + 259265 - [NSApplication sendEvent:] + 2939 0x1000 + 223168 - [NSApplication run] + 867 NSApplicationMain + 574 0x1000 + 40174

1 个答案:

答案 0 :(得分:1)

这似乎在Safari 6中略有修复。内容可以在我的Mac上滚动6.0.3,但我无法使用多点触控与滚动条交互。这意味着如果滚动条设置为在“系统偏好设置”中自动隐藏,则内容根本无法滚动。无论哪种方式,它都不会导致Safari 6崩溃。

不幸的是,Safari 6不适用于Windows,并且Windows,5.1.7,上可用的最新版本受到这两个平台上的此错误的影响。但它并没有完全崩溃浏览器 - 它只是强制所有标签重新加载。