mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 965030 - Pass the correct positioned frame to PushAbsoluteContainingBlock. r=roc
This commit is contained in:
parent
921f918ebf
commit
61e8facd78
@ -3659,7 +3659,7 @@ nsCSSFrameConstructor::ConstructFrameFromItemInternal(FrameConstructionItem& aIt
|
||||
(maybeAbsoluteContainingBlockDisplay->HasTransformStyle() &&
|
||||
cb->IsFrameOfType(nsIFrame::eSupportsCSSTransforms))) &&
|
||||
!cb->IsSVGText()) {
|
||||
aState.PushAbsoluteContainingBlock(cb, primaryFrame, absoluteSaveState);
|
||||
aState.PushAbsoluteContainingBlock(cb, cb, absoluteSaveState);
|
||||
}
|
||||
}
|
||||
|
||||
|
9
layout/reftests/svg/foreignObject-fixedpos-02.html
Normal file
9
layout/reftests/svg/foreignObject-fixedpos-02.html
Normal file
@ -0,0 +1,9 @@
|
||||
<!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; width: 100px; height: 100px; background-color: red">
|
||||
</div>
|
||||
</foreignObject>
|
||||
</svg>
|
4
layout/reftests/svg/foreignObject-fixedpos-ref.html
Normal file
4
layout/reftests/svg/foreignObject-fixedpos-ref.html
Normal file
@ -0,0 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<div style="height: 100px">
|
||||
</div>
|
||||
<div style="top: 100px; width: 100px; height: 100px; background-color:red"></div>
|
@ -172,6 +172,7 @@ skip-if(B2G) == foreignObject-start-hidden-02.svg pass.svg
|
||||
skip-if(B2G) == foreignObject-style-change-01.svg pass.svg
|
||||
== foreignObject-dynamic-abspos-01.html foreignObject-dynamic-abspos-01-ref.html
|
||||
fuzzy-if(Android,18,600) == foreignObject-fixedpos-01.html foreignObject-dynamic-abspos-01-ref.html
|
||||
== foreignObject-fixedpos-02.html foreignObject-fixedpos-ref.html
|
||||
== foreignObject-dynamic-fixedpos-01.html foreignObject-dynamic-abspos-01-ref.html
|
||||
== g-transform-01.svg pass.svg
|
||||
== getElementById-a-element-01.svg pass.svg
|
||||
|
Loading…
Reference in New Issue
Block a user