mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Auto merge of #7771 - mbrubeck:rtl-stacking-context, r=pcwalton
Use the correct container size in compute_overflow Fixes #7768 - positioning of RTL stacking contexts. r? @pcwalton <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7771) <!-- Reviewable:end -->
This commit is contained in:
commit
e68bd8d4ff
6 changed files with 61 additions and 8 deletions
|
@ -111,6 +111,18 @@
|
|||
"url": "/_mozilla/css/setpropertypriority.html"
|
||||
}
|
||||
],
|
||||
"css/stacking_context_rtl.html": [
|
||||
{
|
||||
"path": "css/stacking_context_rtl.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/stacking_context_rtl-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/stacking_context_rtl.html"
|
||||
}
|
||||
],
|
||||
"css/word-spacing.html": [
|
||||
{
|
||||
"path": "css/word-spacing.html",
|
||||
|
@ -1118,4 +1130,4 @@
|
|||
"rev": null,
|
||||
"url_base": "/_mozilla/",
|
||||
"version": 2
|
||||
}
|
||||
}
|
||||
|
|
16
tests/wpt/mozilla/tests/css/stacking_context_rtl-ref.html
Normal file
16
tests/wpt/mozilla/tests/css/stacking_context_rtl-ref.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
div {
|
||||
background: green;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
Test passes if there is a green rectangle below.
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
20
tests/wpt/mozilla/tests/css/stacking_context_rtl.html
Normal file
20
tests/wpt/mozilla/tests/css/stacking_context_rtl.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel=match href="stacking_context_rtl-ref.html">
|
||||
<style>
|
||||
div {
|
||||
background: green;
|
||||
height: 100px;
|
||||
direction: rtl;
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
Test passes if there is a green rectangle below.
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue