long7181226 / compatibility-detector

Automatically exported from code.google.com/p/compatibility-detector
Apache License 2.0
0 stars 0 forks source link

RV1001 overflow #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
第一轮测试:有误报(100%)

原文已做大量修改,现为:各浏览器中当 'overflow-x' 和 
'overflow-y' 一个值为 'hidden' 另一个值为 'visible' 
时的组合渲染结果存在差异

---------------------------[误报] #1

当容器的 ‘overflow-x’ 或 ‘overflow-y’ 值为 ‘scroll’ 或 
‘auto’,另一个特性指定值为 ‘visible’ 
时,视觉效果上不存在兼容性问题。

只有当一个元素的 'overflow-x' 或 'overflow-y' 指定值为 
'hidden',另一个特性的指定值为 'visible' 时, 
该元素最终渲染使用的 'overflow-y' 或 'overflow-x' 值不同。IE6 
IE7 IE8 使用 'hidden',其它浏览器使用 'auto'。

测试用例:
get_overflow-y_by_overflow-x.html

---------------------------[误报] #2

对 HTML BODY 的 overflow-x 或 overflow-y 指定值为 ‘visible’ 
时,它们的计算值总为 
‘auto’,不受另一个特性的指定值影响。

测试用例:
HTML_overflow-x_overflow-y.html
BODY_overflow-x_overflow-y.html

URL:
http://bbs.city.tianya.cn/tianyacity/articleslist/0/41.shtml
http://detail.zol.com.cn/cell_phone_index/subcate57_297_list_1.html
http://detail.zol.com.cn/cell_phone_index/subcate57_list_1.html
http://detail.zol.com.cn/notebook_index/subcate16_list_1.html
http://www.tianya.cn/publicforum/articleslist/0/develop.shtml
http://www.tianya.cn/publicforum/articleslist/0/worldlook.shtml
http://www.tianya.cn/publicforum/articleslist/0/funinfo.shtml
http://www.tianya.cn/publicforum/articleslist/0/free.shtml
http://www.tianya.cn/publicforum/articleslist/0/feeling.shtml

---------------------------[误报] #3

存在以下两种情况:

1、容器的 width 为 0,子元素的 width 不为 0,设置了 
‘overflow-y:hidden’, ‘overflow-x : visible’
2、容器的 height 为 0,子元素的 height 不为 0,设置了 
‘overflow-x:hidden’, ‘overflow-y : visible’

容器 width 或 height 为 0 且子元素 width 或 height 不为 0 
时容器的 scrollWidth 或 scrollHeight 大于 offsetWidth(0) 或 
offsetHeight(0),应忽略宽高为0的情况。

这种情况可能由于 “RD1002: IE6 IE7(Q) IE8(Q) 中 'width' 或 'height' 
的设定值在不足以容纳其内容时将被撑大” 
的问题导致差异。

测试用例:
element_width_height_0.html

URL:
http://www.cmbchina.com/

Original issue reported on code.google.com by wangju...@beyondsoft.com on 16 Nov 2010 at 8:41

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by wangju...@beyondsoft.com on 19 Nov 2010 at 2:30

GoogleCodeExporter commented 9 years ago

Original comment by sundongg...@beyondsoft.com on 2 Dec 2010 at 3:15

GoogleCodeExporter commented 9 years ago
误报 #1、#2、#3 均已修复。

Original comment by sundongg...@beyondsoft.com on 6 Dec 2010 at 10:21

GoogleCodeExporter commented 9 years ago

Original comment by sundongg...@beyondsoft.com on 6 Dec 2010 at 10:23

GoogleCodeExporter commented 9 years ago
准确率: 100%
EN: 0/1 (1 不能重现)
CN: 7/8 (1 不能重现)
JA: 8/8
KO: 7/8 (1 不能重现)

Original comment by sundongg...@beyondsoft.com on 9 Dec 2010 at 7:41