Index: LayoutTests/imported/csswg-test/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001.html |
diff --git a/LayoutTests/imported/csswg-test/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001.html b/LayoutTests/imported/csswg-test/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001.html |
index 438d2a0cd607ae7eb5e96a3f15f2cf2af6c4ec0d..a0d422a467e9ac8682adb8e429253efaedce034a 100644 |
--- a/LayoutTests/imported/csswg-test/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001.html |
+++ b/LayoutTests/imported/csswg-test/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001.html |
@@ -14,6 +14,7 @@ |
} |
.target { |
color:blue; |
+ height:3em; |
-webkit-writing-mode:vertical-rl; |
} |
.border { |
@@ -159,8 +160,9 @@ function run() { |
test(function () { |
try { |
var targetNode = node.querySelector(".target"); |
+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize); |
var targetBounds = targetNode.getBoundingClientRect(); |
- assert_approx_equals(targetBounds.height, targetBounds.width * 2, .01, "writing-mode is vertical") |
+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical") |
var nextNode = node.querySelector(".next"); |
var nextBounds = nextNode.getBoundingClientRect(); |
assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box"); |