[SVG -> OTF Converter] x-height cannot be specified
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Mar 2015 19:39:12 +0000 (19:39 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Mar 2015 19:39:12 +0000 (19:39 +0000)
https://bugs.webkit.org/show_bug.cgi?id=142465

Reviewed by Simon Fraser.

For all non-system fonts, OS X disregards the font's reported x-height. Therefore,
it is impossible to satisfy this test.

* fast/css/ex-unit-with-no-x-height-expected.txt: Removed.
* fast/css/ex-unit-with-no-x-height.html: Removed.
* platform/mac/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@181277 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/css/ex-unit-with-no-x-height-expected.txt [deleted file]
LayoutTests/fast/css/ex-unit-with-no-x-height.html [deleted file]
LayoutTests/platform/mac/TestExpectations

index e73748c..3a49453 100644 (file)
@@ -1,3 +1,17 @@
+2015-03-09  Myles C. Maxfield  <mmaxfield@apple.com>
+
+        [SVG -> OTF Converter] x-height cannot be specified
+        https://bugs.webkit.org/show_bug.cgi?id=142465
+
+        Reviewed by Simon Fraser.
+
+        For all non-system fonts, OS X disregards the font's reported x-height. Therefore,
+        it is impossible to satisfy this test.
+
+        * fast/css/ex-unit-with-no-x-height-expected.txt: Removed.
+        * fast/css/ex-unit-with-no-x-height.html: Removed.
+        * platform/mac/TestExpectations:
+
 2015-03-09  Marcos Chavarría Teijeiro  <chavarria1991@gmail.com>
 
         Unreviewed GTK+ Gardening
diff --git a/LayoutTests/fast/css/ex-unit-with-no-x-height-expected.txt b/LayoutTests/fast/css/ex-unit-with-no-x-height-expected.txt
deleted file mode 100644 (file)
index 6279880..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-This test ensures that the CSS 'ex' unit is treated as half the size of the CSS 'em' unit when a font has no x-height information.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS measureExBox(); is '50px'
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/fast/css/ex-unit-with-no-x-height.html b/LayoutTests/fast/css/ex-unit-with-no-x-height.html
deleted file mode 100644 (file)
index 0d56029..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<!doctype html>
-<svg xmlns = 'http://www.w3.org/2000/svg' style='display:none'>
-  <defs>
-    <font id="Font1">
-      <font-face font-family="block" />
-    </font>
-  </defs>
-</svg>
-
-<style>
-.em { height: .5em; width: .5em; }
-.ex { height: 1ex; width: 1ex; }
-.cover { background: green; }
-.back { background: red; }
-.one { left: 10px; }
-.two { left: 70px; }
-#test > div { font-family: block; font-size: 100px; position: absolute; top: 10px; }
-#description { margin-top: 70px; }
-</style>
-
-<div id='test'>
-  <div class='back em one'></div>
-  <div class='cover ex one' id='ex'></div>
-
-  <div class='back ex two'></div>
-  <div class='cover em two'></div>
-</div>
-<script src="../../resources/js-test-pre.js"></script>
-<script>
-description("This test ensures that the CSS 'ex' unit is treated as half the size of the CSS 'em' unit when a font has no x-height information.")
-
-function measureExBox() {
-  return getComputedStyle(document.getElementById('ex')).width;
-}
-
-shouldBe("measureExBox();", "'50px'")
-</script>
-<script src="../../resources/js-test-post.js"></script>
index 0234a28..844ff9e 100644 (file)
@@ -1238,7 +1238,6 @@ webkit.org/b/140589 svg/text/text-text-06-t.svg [ Failure ]
 webkit.org/b/137098 svg/text/text-hkern.svg [ Failure ]
 webkit.org/b/137100 svg/text/text-vkern.svg [ Failure ]
 webkit.org/b/142470 svg/custom/svg-fonts-without-missing-glyph.xhtml [ Pass Failure ]
-webkit.org/b/140537 fast/css/ex-unit-with-no-x-height.html [ Failure ]
 
 # Sometimes has an extra space at the end
 fast/forms/focus-selection-textarea.html [ Pass Failure ]