提交 76c459a9 编写于 作者: 雪洛's avatar 雪洛

test: 调整测试例规避iOS safari表现不一致的问题

如果父元素设置了`overflow-y: auto; -webkit-overflow-scrolling: touch;`样式,那么他的自元素即使是fixed也会受overflow属性影响而无法显示
上级 08512bdd
...@@ -4,15 +4,15 @@ ...@@ -4,15 +4,15 @@
<!-- #endif --> <!-- #endif -->
<view style="flex-grow: 1"> <view style="flex-grow: 1">
<view> <view>
<text>position: relative</text> <text>position: fixed</text>
<scroll-view <scroll-view
style="width: 250px; height: 250px; background-color: gray" style="width: 250px; height: 250px; background-color: gray"
> >
<view <view
style="width: 50px; height: 50px; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view class="common" style="position: relative"> <view class="common fixed" style="position: fixed">
<text class="text">relative</text> <text class="text">fixed</text>
</view> </view>
<view <view
style="width: 50px; height: 50px; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
...@@ -39,15 +39,15 @@ ...@@ -39,15 +39,15 @@
</view> </view>
<view> <view>
<text>position: absolute</text> <text>position: relative</text>
<scroll-view <scroll-view
style="width: 250px; height: 250px; background-color: gray" style="width: 250px; height: 250px; background-color: gray"
> >
<view <view
style="width: 50px; height: 50px; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view class="common" style="position: absolute"> <view class="common" style="position: relative">
<text class="text">absolute</text> <text class="text">relative</text>
</view> </view>
<view <view
style="width: 50px; height: 50px; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
...@@ -74,15 +74,15 @@ ...@@ -74,15 +74,15 @@
</view> </view>
<view> <view>
<text>position: fixed</text> <text>position: absolute</text>
<scroll-view <scroll-view
style="width: 250px; height: 250px; background-color: gray" style="width: 250px; height: 250px; background-color: gray"
> >
<view <view
style="width: 50px; height: 50px; background-color: red" style="width: 50px; height: 50px; background-color: red"
></view> ></view>
<view class="common fixed" style="position: fixed"> <view class="common" style="position: absolute">
<text class="text">fixed</text> <text class="text">absolute</text>
</view> </view>
<view <view
style="width: 50px; height: 50px; background-color: blue" style="width: 50px; height: 50px; background-color: blue"
...@@ -107,7 +107,8 @@ ...@@ -107,7 +107,8 @@
></view> ></view>
</scroll-view> </scroll-view>
</view> </view>
</view>
</view>
<!-- #ifdef APP --> <!-- #ifdef APP -->
</scroll-view> </scroll-view>
<!-- #endif --> <!-- #endif -->
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册