REGRESSION (r241747): [iOS] Adjust default SVG focus ring width to match width for HTML documents
https://bugs.webkit.org/show_bug.cgi?id=203011

Reviewed by Wenson Hsieh.

Source/WebCore:

Update default user agent stylesheet for SVG documents (i.e. .svg resources) to use the same 3px
outline width for focused elements as we do for HTML documents.

This makes the test imported/blink/svg/custom/focus-ring-2.svg pass on iOS.

* css/svg.css:

LayoutTests:

Remove the test imported/blink/svg/custom/focus-ring-2.svg now that it passes, again.

* platform/ios/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@251299 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 8f7978b..4850cc8 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,14 @@
+2019-10-18  Daniel Bates  <dabates@apple.com>
+
+        REGRESSION (r241747): [iOS] Adjust default SVG focus ring width to match width for HTML documents
+        https://bugs.webkit.org/show_bug.cgi?id=203011
+
+        Reviewed by Wenson Hsieh.
+
+        Remove the test imported/blink/svg/custom/focus-ring-2.svg now that it passes, again.
+
+        * platform/ios/TestExpectations:
+
 2019-10-18  Jer Noble  <jer.noble@apple.com>
 
         Add experimental HDR MediaCapabilities support.
diff --git a/LayoutTests/platform/ios/TestExpectations b/LayoutTests/platform/ios/TestExpectations
index 446fcee..94bd000 100644
--- a/LayoutTests/platform/ios/TestExpectations
+++ b/LayoutTests/platform/ios/TestExpectations
@@ -3324,7 +3324,6 @@
 http/wpt/resource-timing/rt-initiatorType-xmlhttprequest.html [ Pass Failure ]
 
 # <rdar://problem/51826131> REGRESSION (r241747) 2 Layout tests are failing on Internal iOS 13 iOS / iPad Simulator testers fast/repaint/placeholder-after-caps-lock-hidden.html imported/blink/svg/custom/focus-ring-2.svg
-imported/blink/svg/custom/focus-ring-2.svg [ ImageOnlyFailure ]
 fast/repaint/placeholder-after-caps-lock-hidden.html [ Failure ]
 
 # <rdar://problem/51827049> REGRESSION (iOS 13?) Layout test fast/viewport/ios/use-minimum-device-width-for-page-without-viewport-meta.html is a highly flaky timeout on iOS 13 iOS Simulator
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index b253056..9ad938f 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,17 @@
+2019-10-18  Daniel Bates  <dabates@apple.com>
+
+        REGRESSION (r241747): [iOS] Adjust default SVG focus ring width to match width for HTML documents
+        https://bugs.webkit.org/show_bug.cgi?id=203011
+
+        Reviewed by Wenson Hsieh.
+
+        Update default user agent stylesheet for SVG documents (i.e. .svg resources) to use the same 3px
+        outline width for focused elements as we do for HTML documents.
+
+        This makes the test imported/blink/svg/custom/focus-ring-2.svg pass on iOS.
+
+        * css/svg.css:
+
 2019-10-18  Jer Noble  <jer.noble@apple.com>
 
         Add experimental HDR MediaCapabilities support.
diff --git a/Source/WebCore/css/svg.css b/Source/WebCore/css/svg.css
index cb5218a..600995e 100644
--- a/Source/WebCore/css/svg.css
+++ b/Source/WebCore/css/svg.css
@@ -69,7 +69,11 @@
 /* states */
 
 :focus {
-    outline: auto 5px -webkit-focus-ring-color
+#if defined(WTF_PLATFORM_IOS_FAMILY) && WTF_PLATFORM_IOS_FAMILY
+    outline: auto 3px -webkit-focus-ring-color;
+#else
+    outline: auto 5px -webkit-focus-ring-color;
+#endif
 }
 
 *:not(svg),