forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1816628 Part 2 - Make text-shadow react to stroke properties and …
…fill opacity r=jfkthame Differential Revision: https://phabricator.services.mozilla.com/D200436
- Loading branch information
Showing
11 changed files
with
186 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
testing/web-platform/tests/css/css-text-decor/text-shadow/svg-fill-none-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<!doctype html> | ||
<style> | ||
svg { font: bold 64px Arial, sans-serif; fill: none; stroke-width: 4px; } | ||
</style> | ||
<svg width="240" height="80"> | ||
<text x="40" y="60" stroke="grey">Hello</text> | ||
<text x="30" y="50" stroke="black">Hello</text> | ||
</svg> |
10 changes: 10 additions & 0 deletions
10
testing/web-platform/tests/css/css-text-decor/text-shadow/svg-fill-none.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!doctype html> | ||
<title>CSS Test: 'text-shadow' respects 'fill="none"'</title> | ||
<link rel="help" href="https://www.w3.org/TR/css-text-decor-3/#text-shadow-property"> | ||
<link rel="match" href="svg-fill-none-ref.html"> | ||
<style> | ||
svg { font: bold 64px Arial, sans-serif; text-shadow: grey 10px 10px } | ||
</style> | ||
<svg width="240" height="80"> | ||
<text x="30" y="50" fill="none" stroke="black" stroke-width="4">Hello</text> | ||
</svg> |
7 changes: 7 additions & 0 deletions
7
testing/web-platform/tests/css/css-text-decor/text-shadow/svg-fill-opacity-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!doctype html> | ||
<style> | ||
svg { font: bold 64px Arial, sans-serif; text-shadow: grey 10px 10px } | ||
</style> | ||
<svg width="240" height="80"> | ||
<text x="30" y="50" fill-opacity="0.5" fill="#FFFF00">Hello</text> | ||
</svg> |
10 changes: 10 additions & 0 deletions
10
testing/web-platform/tests/css/css-text-decor/text-shadow/svg-fill-opacity.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!doctype html> | ||
<title>CSS Test: 'text-shadow' respects non-opaque fill</title> | ||
<link rel="help" href="https://www.w3.org/TR/css-text-decor-3/#text-shadow-property"> | ||
<link rel="match" href="svg-fill-opacity-ref.html"> | ||
<style> | ||
svg { font: bold 64px Arial, sans-serif; text-shadow: grey 10px 10px } | ||
</style> | ||
<svg width="240" height="80"> | ||
<text x="30" y="50" fill="rgba(255, 255, 0, 0.5)">Hello</text> | ||
</svg> |
8 changes: 8 additions & 0 deletions
8
testing/web-platform/tests/css/css-text-decor/text-shadow/svg-stroke-dasharray-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<!doctype html> | ||
<style> | ||
svg { font: bold 64px Arial, sans-serif; fill: none; stroke-width: 2px; stroke-dasharray:2, 2; } | ||
</style> | ||
<svg width="240" height="80"> | ||
<text x="40" y="60" stroke="grey">Hello</text> | ||
<text x="30" y="50" stroke="black">Hello</text> | ||
</svg> |
Oops, something went wrong.