зеркало из https://github.com/mozilla/pjs.git
Bug 640917. Treat foreignObject as a fixed position containing block. r=jwatt
--HG-- rename : layout/reftests/svg/foreignObject-dynamic-abspos-01.html => layout/reftests/svg/foreignObject-dynamic-fixedpos-01.html rename : layout/reftests/svg/foreignObject-dynamic-abspos-01-ref.html => layout/reftests/svg/foreignObject-fixedpos-01.html
This commit is contained in:
Родитель
1399d98d1e
Коммит
af55c4ccd9
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<div style="height: 100px">
|
||||
</div>
|
||||
<svg width="200" height="200" style="overflow: visible">
|
||||
<foreignObject width="200" height="200">
|
||||
<div id="x" style="position:fixed; top: 0; left: 0">
|
||||
This is a test
|
||||
</div>
|
||||
</foreignObject>
|
||||
<script>
|
||||
document.body.offsetWidth;
|
||||
var kid = document.getElementById("x");
|
||||
var parent = kid.parentNode;
|
||||
var nextSibling = kid.nextSibling;
|
||||
parent.removeChild(kid);
|
||||
parent.insertBefore(kid, nextSibling);
|
||||
</script>
|
||||
</svg>
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<div style="height: 100px">
|
||||
</div>
|
||||
<svg width="200" height="200" style="overflow: visible">
|
||||
<foreignObject width="200" height="200">
|
||||
<div id="x" style="position:fixed; top: 0; left: 0">
|
||||
This is a test
|
||||
</div>
|
||||
</foreignObject>
|
||||
</svg>
|
|
@ -148,6 +148,8 @@ fails-if(Android) == filter-extref-differentOrigin-01.svg pass.svg # Bug 695385
|
|||
== foreignObject-start-hidden-02.svg pass.svg
|
||||
== foreignObject-style-change-01.svg pass.svg
|
||||
== foreignObject-dynamic-abspos-01.html foreignObject-dynamic-abspos-01-ref.html
|
||||
== foreignObject-fixedpos-01.html foreignObject-dynamic-abspos-01-ref.html
|
||||
== foreignObject-dynamic-fixedpos-01.html foreignObject-dynamic-abspos-01-ref.html
|
||||
== getElementById-a-element-01.svg pass.svg
|
||||
fails-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)&&!layersGPUAccelerated) == gradient-live-01a.svg gradient-live-01-ref.svg # bug 696674
|
||||
fails-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)&&!layersGPUAccelerated) == gradient-live-01b.svg gradient-live-01-ref.svg # bug 696674
|
||||
|
|
|
@ -64,7 +64,7 @@ foreignObject {
|
|||
|
||||
*|*::-moz-svg-foreign-content {
|
||||
display: block !important;
|
||||
/* We need to be an absolute container */
|
||||
position: relative !important;
|
||||
/* We need to be an absolute and fixed container */
|
||||
-moz-transform: translate(0) !important;
|
||||
text-indent: 0;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче