Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: LayoutTests/svg/foreignObject/fO-percentage-height-style.html

Issue 218403009: Map width/height to style for foreignObject (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated TextExpectations to include height variants too Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <script src="../../resources/js-test.js"></script>
3 <svg viewBox="0 0 250 250">
4 <foreignObject width="250" height="250">
5 <svg style="height:100%; background: blue">
6 </svg>
7 </foreignObject>
8 </svg>
9 <script>
10 description("Test use of percentages inside foreignObject");
11
12 var nestedSvg = document.querySelectorAll('svg')[1];
13 shouldBe("nestedSvg.offsetHeight", "250");
14
15 nestedSvg.style.height = "50%";
16 shouldBe("nestedSvg.offsetHeight", "125");
17
18 var foreignObject = nestedSvg.parentNode;
19 foreignObject.height.baseVal.value = 400;
20 shouldBe("nestedSvg.offsetHeight", "200");
21 </script>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/foreignObject/fO-percentage-height-style-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698