-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
2 changed files
with
140 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Text stroke tests</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<script type="text/javascript" src="../../test.js"></script> | ||
<style> | ||
div span:first-child { | ||
font-size: 2em; | ||
} | ||
|
||
div span:nth-child(2) { | ||
font-size: 5em; | ||
} | ||
|
||
.stroke1 { | ||
-webkit-text-stroke-width: .09em; | ||
-webkit-text-stroke-color: red; | ||
font-size: 1em; | ||
} | ||
|
||
.stroke2 { | ||
-webkit-text-stroke-width: .12em; | ||
-webkit-text-stroke-color: green; | ||
font-size: 2em; | ||
} | ||
|
||
.stroke3 { | ||
-webkit-text-stroke-width: .19em; | ||
-webkit-text-stroke-color: blue; | ||
font-size: 3em; | ||
} | ||
|
||
.ordered { | ||
paint-order: stroke fill; | ||
} | ||
|
||
body { | ||
font-family: Arial; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="stroke1"> | ||
Some text <span> with bigger text </span> that should have a stroke | ||
<strong>Bolder stroke</strong> that makes things pretty | ||
</div> | ||
<div class="stroke2"> | ||
Some text <span> with bigger text </span> that should have a stroke | ||
<strong>Bolder stroke</strong> that makes things pretty | ||
</div> | ||
<div class="stroke3"> | ||
Some text <span> with bigger text </span> that should have a stroke | ||
<strong>Bolder stroke</strong> that makes things pretty | ||
</div> | ||
<div class="stroke1 ordered"> | ||
Some text <span> with bigger text </span> that should have a stroke | ||
<strong>Bolder stroke</strong> that makes things pretty | ||
</div> | ||
<div class="stroke2 ordered"> | ||
Some text <span> with bigger text </span> that should have a stroke | ||
<strong>Bolder stroke</strong> that makes things pretty | ||
</div> | ||
<div class="stroke3 ordered"> | ||
Some text <span> with bigger text </span> that should have a stroke | ||
<strong>Bolder stroke</strong> that makes things pretty | ||
</div> | ||
<div class="stroke4"> | ||
Some text <span> with bigger text </span> that should have no stroke | ||
<strong>Bolder text</strong> that makes things pretty | ||
</div> | ||
</body> | ||
</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,67 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>textarea</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<script type="text/javascript" src="../../test.js"></script> | ||
<style> | ||
textarea{ | ||
font-family: Arial; | ||
font-size: 14px; | ||
width: 10em; | ||
height: 90px; | ||
} | ||
div { | ||
display: inline-block; | ||
} | ||
</style> | ||
|
||
</head> | ||
<body> | ||
<div> | ||
<p>1. word wrap</p> | ||
<textarea> A long text with many words that should be wrapped on various lines. | ||
</textarea> | ||
|
||
<p>2. padding</p> | ||
<textarea style="padding: 1em">A long text with many words that should be wrapped on various lines. | ||
</textarea> | ||
|
||
<p>3. line height</p> | ||
<textarea style="line-height: 25px">A long text with many words. | ||
</textarea> | ||
|
||
<p>4. letter spacing</p> | ||
<textarea style="letter-spacing: 5px"> A long text with many words that should be wrapped on various lines.</textarea> | ||
</div> | ||
<div> | ||
<p>5. multiple spaces</p> | ||
<textarea>A long text with many words that should be wrapped on various lines. | ||
</textarea> | ||
|
||
<p>6. newlines</p> | ||
<textarea>A long text with many | ||
words that | ||
|
||
should be wrapped on various lines. | ||
</textarea> | ||
|
||
<p>7. long word</p> | ||
<textarea>Donaudampfschifffahrtsgesellschaftskapitänskochmütze</textarea> | ||
|
||
<p>8. hyphen</p> | ||
<textarea>A text with many-manymany manys.</textarea> | ||
</div> | ||
<div> | ||
<p>9. kerning</p> | ||
<textarea>AVAVAVAVAVAVAVAV TeTeTeTeTeTeTeTeTe YaYaYaYaYaYaYaYaY</textarea> | ||
|
||
<p>10. kerning with letter spacing</p> | ||
<textarea style="letter-spacing: 1px">AVAVAVAVAVAVAV TeTeTeTeTeTeTeTe YaYaYaYaYaYaYaY</textarea> | ||
|
||
<p>11. kerning with letter spacing</p> | ||
<textarea style="letter-spacing: 5px">AVAVAVAVAV TeTeTeTeTeT YaYaYaYaYa</textarea> | ||
|
||
</div> | ||
</body> | ||
</html> |