Title: [214725] trunk/LayoutTests
Revision
214725
Author
pvol...@apple.com
Date
2017-04-01 22:28:53 -0700 (Sat, 01 Apr 2017)

Log Message

Add test for expected fallback behavior between stroke-width and -webkit-text-stroke-width.
https://bugs.webkit.org/show_bug.cgi?id=169466

Reviewed by Jon Lee.

Now that we have added support for stroke-width, we should have a test for expected fallback behavior between
stroke-width and -webkit-text-stroke-width. Currently, stroke-width is always preferred, also when inherited,
and when -webkit-text-stroke-width is declared inline. When stroke-width is not specified, we fall back to
-webkit-text-stroke-width.

* fast/css/stroke-width-fallback-expected.html: Added.
* fast/css/stroke-width-fallback.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (214724 => 214725)


--- trunk/LayoutTests/ChangeLog	2017-04-02 05:28:10 UTC (rev 214724)
+++ trunk/LayoutTests/ChangeLog	2017-04-02 05:28:53 UTC (rev 214725)
@@ -1,3 +1,18 @@
+2017-04-01  Per Arne Vollan  <pvol...@apple.com>
+
+        Add test for expected fallback behavior between stroke-width and -webkit-text-stroke-width.
+        https://bugs.webkit.org/show_bug.cgi?id=169466
+
+        Reviewed by Jon Lee.
+
+        Now that we have added support for stroke-width, we should have a test for expected fallback behavior between
+        stroke-width and -webkit-text-stroke-width. Currently, stroke-width is always preferred, also when inherited,
+        and when -webkit-text-stroke-width is declared inline. When stroke-width is not specified, we fall back to
+        -webkit-text-stroke-width.
+
+        * fast/css/stroke-width-fallback-expected.html: Added.
+        * fast/css/stroke-width-fallback.html: Added.
+
 2017-04-01  Jon Lee  <jon...@apple.com>
 
         Add missing text styles

Added: trunk/LayoutTests/fast/css/stroke-width-fallback-expected.html (0 => 214725)


--- trunk/LayoutTests/fast/css/stroke-width-fallback-expected.html	                        (rev 0)
+++ trunk/LayoutTests/fast/css/stroke-width-fallback-expected.html	2017-04-02 05:28:53 UTC (rev 214725)
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+    <style>
+        div {
+            font-size: 80px;
+            color: gray;
+            text-shadow: none;
+            -webkit-text-stroke-color: blue;
+        }
+    </style>
+</head>
+<body>
+
+<div style="stroke-width: 10px;">&#x25fc;</div>
+<div style="stroke-width: 25px;">&#x25fc;</div>
+<div style="stroke-width: 25px;">&#x25fc;</div>
+<div style="stroke-width: 30px;">&#x25fc;</div>
+<div style="stroke-width: 25px;">&#x25fc;</div>
+
+<div style="stroke-width: 25px;"><span>&#x25fc;</span></div>
+<div style="stroke-width: 25px;"><span>&#x25fc;</span></div>
+<div style="stroke-width: 10px;"><span>&#x25fc;</span></div>
+<div style="stroke-width: 25px;"><span>&#x25fc;</span></div>
+<div style="stroke-width: 25px;"><span>&#x25fc;</span></div>
+
+<div style="stroke-width: 25px;">&#x25fc;</div>
+
+</body>
+</html>

Added: trunk/LayoutTests/fast/css/stroke-width-fallback.html (0 => 214725)


--- trunk/LayoutTests/fast/css/stroke-width-fallback.html	                        (rev 0)
+++ trunk/LayoutTests/fast/css/stroke-width-fallback.html	2017-04-02 05:28:53 UTC (rev 214725)
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+    <style>
+        div {
+            font-size: 80px;
+            color: gray;
+            text-shadow: none;
+            -webkit-text-stroke-color: blue;
+        }
+    
+        stroke-width-class {
+            stroke-width: 25px;
+        }
+    </style>
+</head>
+<body>
+
+<div style="-webkit-text-stroke-width: 10px;">&#x25fc;</div>
+<div style="stroke-width: 25px; -webkit-text-stroke-width: 10px;">&#x25fc;</div>
+<div style="-webkit-text-stroke-width: 10px; stroke-width: 25px;">&#x25fc;</div>
+<div style="-webkit-text-stroke-width: 10px; stroke-width: 25px; stroke-width: 30px;">&#x25fc;</div>
+<div style="-webkit-text-stroke-width: 10px; stroke-width: 25px; -webkit-text-stroke-width: 30px;">&#x25fc;</div>
+
+<div style="stroke-width: 25px;"><span style="-webkit-text-stroke-width: 10px;">&#x25fc;</span></div>
+<div style="-webkit-text-stroke-width: 10px;"><span style="stroke-width: 25px;">&#x25fc;</span></div>
+<div style="-webkit-text-stroke-width: 10px;"><span>&#x25fc;</span></div>
+<div style="stroke-width: 25px; -webkit-text-stroke-width: 10px;"><span>&#x25fc;</span></div>
+<div style="-webkit-text-stroke-width: 10px; stroke-width: 25px;"><span>&#x25fc;</span></div>
+
+<div class="stroke-width-class" style="-webkit-text-stroke-width: 10px;">&#x25fc;</div>
+
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to