aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-01-26 00:20:26 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2016-01-26 00:20:26 +0530
commit4755cc5c6211e845fc8081cb3c8a67b4bdbea5cc (patch)
tree3f8ae4849ca0109a213a9135d8dbf7c3fa3085db /tests
parent842ec7c41566c478c07e30c10f330f9f8595eadd (diff)
parent9c7b9fa32d43c51acadd7bb408ba94161aadb4e6 (diff)
downloadservo-4755cc5c6211e845fc8081cb3c8a67b4bdbea5cc.tar.gz
servo-4755cc5c6211e845fc8081cb3c8a67b4bdbea5cc.zip
Auto merge of #9405 - pcwalton:absolute-positioning-overflow, r=glennw
layout: Remove some bogus code that tried to handle absolutely-positioned flows separately when storing overflow. This code dates back to the time when absolutely positioned flows were ignored by all of their ancestors up to the containing block. This hasn't been true for at least a year. Closes #9306. Closes #9309. Is a partial fix for #9308. r? @glennw <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9405) <!-- Reviewable:end -->
Diffstat (limited to 'tests')
-rw-r--r--tests/html/overflow-bug-0.html18
-rw-r--r--tests/html/overflow-bug-1.html29
-rw-r--r--tests/html/overflow-bug-2.html28
-rw-r--r--tests/wpt/metadata-css/css21_dev/html4/numbers-units-018.htm.ini3
4 files changed, 75 insertions, 3 deletions
diff --git a/tests/html/overflow-bug-0.html b/tests/html/overflow-bug-0.html
new file mode 100644
index 00000000000..10e2207ca56
--- /dev/null
+++ b/tests/html/overflow-bug-0.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<!-- https://github.com/servo/servo/issues/9306 -->
+<style>
+ body {
+ margin: 0;
+ }
+
+ .green {
+ background: #0F0;
+ height: 40px;
+ width: 600px;
+ margin-left: -300px;
+ }
+</style>
+
+<div class="green">
+</div>
+
diff --git a/tests/html/overflow-bug-1.html b/tests/html/overflow-bug-1.html
new file mode 100644
index 00000000000..1a11bf1320f
--- /dev/null
+++ b/tests/html/overflow-bug-1.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<!-- https://github.com/servo/servo/issues/9306 -->
+<style>
+ body {
+ margin: 0;
+ }
+
+ .green {
+ background: #0F0;
+ height: 40px;
+ width: 400px;
+ top: 40px;
+ left: 50%;
+ margin-left: -300px;
+ position: absolute;
+ padding: 0px 100px;
+ }
+
+ .red {
+ background: #F00;
+ position: absolute;
+ right: 0;
+ }
+
+</style>
+
+<div class="green">
+ <span class="red">x</span>
+</div>
diff --git a/tests/html/overflow-bug-2.html b/tests/html/overflow-bug-2.html
new file mode 100644
index 00000000000..1251b6de34c
--- /dev/null
+++ b/tests/html/overflow-bug-2.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<!-- https://github.com/servo/servo/issues/9309 -->
+<style>
+ body {
+ margin: 0;
+ }
+
+ .a {
+ background: red;
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ overflow: hidden;
+ }
+
+ .b {
+ background: green;
+ width: 40px;
+ height: 40px;
+ position: absolute;
+ right: -40px;
+ }
+
+</style>
+
+<div class="a">
+ <div class="b"></div>
+</div>
diff --git a/tests/wpt/metadata-css/css21_dev/html4/numbers-units-018.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/numbers-units-018.htm.ini
deleted file mode 100644
index 232a3f71a50..00000000000
--- a/tests/wpt/metadata-css/css21_dev/html4/numbers-units-018.htm.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[numbers-units-018.htm]
- type: reftest
- expected: FAIL