mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
LibWeb: Use String::to_fullwidth()
when applying text-transform
Some checks are pending
CI / Lagom (false, FUZZ, ubuntu-24.04, Linux, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, macos-14, macOS, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, ubuntu-24.04, Linux, GNU) (push) Waiting to run
CI / Lagom (true, NO_FUZZ, ubuntu-24.04, Linux, Clang) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (macos-14, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (ubuntu-24.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Push notes / build (push) Waiting to run
Some checks are pending
CI / Lagom (false, FUZZ, ubuntu-24.04, Linux, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, macos-14, macOS, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, ubuntu-24.04, Linux, GNU) (push) Waiting to run
CI / Lagom (true, NO_FUZZ, ubuntu-24.04, Linux, Clang) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (macos-14, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (ubuntu-24.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Push notes / build (push) Waiting to run
Before, we just returned the input string. Now the property is applied using the `String::to_fullwidth()` function. fixes: https://wpt.fyi/results/css/css-text/text-transform/text-transform-fullwidth-001.xht
This commit is contained in:
parent
a8a81342bb
commit
8703ca0c7d
Notes:
github-actions[bot]
2024-11-01 11:49:12 +00:00
Author: https://github.com/Grubre Commit: https://github.com/LadybirdBrowser/ladybird/commit/8703ca0c7de Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2045 Reviewed-by: https://github.com/trflynn89
3 changed files with 564 additions and 3 deletions
|
@ -0,0 +1,243 @@
|
|||
[ ]
|
||||
[ ] !
|
||||
! "
|
||||
" #
|
||||
# $
|
||||
$ %
|
||||
% &
|
||||
& '
|
||||
' (
|
||||
( )
|
||||
) *
|
||||
* +
|
||||
+ ,
|
||||
, -
|
||||
- .
|
||||
. /
|
||||
/ 0
|
||||
0 1
|
||||
1 2
|
||||
2 3
|
||||
3 4
|
||||
4 5
|
||||
5 6
|
||||
6 7
|
||||
7 8
|
||||
8 9
|
||||
9 :
|
||||
: ;
|
||||
; <
|
||||
< =
|
||||
= >
|
||||
> ?
|
||||
? @
|
||||
@ A
|
||||
A B
|
||||
B C
|
||||
C D
|
||||
D E
|
||||
E F
|
||||
F G
|
||||
G H
|
||||
H I
|
||||
I J
|
||||
J K
|
||||
K L
|
||||
L M
|
||||
M N
|
||||
N O
|
||||
O P
|
||||
P Q
|
||||
Q R
|
||||
R S
|
||||
S T
|
||||
T U
|
||||
U V
|
||||
V W
|
||||
W X
|
||||
X Y
|
||||
Y Z
|
||||
Z [
|
||||
[ \
|
||||
\ ]
|
||||
] ^
|
||||
^ _
|
||||
_ `
|
||||
` a
|
||||
a b
|
||||
b c
|
||||
c d
|
||||
d e
|
||||
e f
|
||||
f g
|
||||
g h
|
||||
h i
|
||||
i j
|
||||
j k
|
||||
k l
|
||||
l m
|
||||
m n
|
||||
n o
|
||||
o p
|
||||
p q
|
||||
q r
|
||||
r s
|
||||
s t
|
||||
t u
|
||||
u v
|
||||
v w
|
||||
w x
|
||||
x y
|
||||
y z
|
||||
z {
|
||||
{ |
|
||||
| }
|
||||
} ~
|
||||
~ ⦅
|
||||
⦅ ⦆
|
||||
⦆ 。
|
||||
。 「
|
||||
「 」
|
||||
」 、
|
||||
、 ・
|
||||
・ ヲ
|
||||
ヲ ァ
|
||||
ァ ィ
|
||||
ィ ゥ
|
||||
ゥ ェ
|
||||
ェ ォ
|
||||
ォ ャ
|
||||
ャ ュ
|
||||
ュ ョ
|
||||
ョ ッ
|
||||
ッ ー
|
||||
ー ア
|
||||
ア イ
|
||||
イ ウ
|
||||
ウ エ
|
||||
エ オ
|
||||
オ カ
|
||||
カ キ
|
||||
キ ク
|
||||
ク ケ
|
||||
ケ コ
|
||||
コ サ
|
||||
サ シ
|
||||
シ ス
|
||||
ス セ
|
||||
セ ソ
|
||||
ソ タ
|
||||
タ チ
|
||||
チ ツ
|
||||
ツ テ
|
||||
テ ト
|
||||
ト ナ
|
||||
ナ ニ
|
||||
ニ ヌ
|
||||
ヌ ネ
|
||||
ネ ノ
|
||||
ノ ハ
|
||||
ハ ヒ
|
||||
ヒ フ
|
||||
フ ヘ
|
||||
ヘ ホ
|
||||
ホ マ
|
||||
マ ミ
|
||||
ミ ム
|
||||
ム メ
|
||||
メ モ
|
||||
モ ヤ
|
||||
ヤ ユ
|
||||
ユ ヨ
|
||||
ヨ ラ
|
||||
ラ リ
|
||||
リ ル
|
||||
ル レ
|
||||
レ ロ
|
||||
ロ ワ
|
||||
ワ ン
|
||||
ン ゙
|
||||
゙ ゚
|
||||
゚ [ᅟ]
|
||||
[ᅠ] ᆨ
|
||||
ᄀ ㄲ
|
||||
ᄁ ᆪ
|
||||
ᆪ ᆫ
|
||||
ᄂ ᆬ
|
||||
ᆬ ᆭ
|
||||
ᆭ ᆮ
|
||||
ᄃ ᄄ
|
||||
ᄄ ᆯ
|
||||
ᄅ ᆰ
|
||||
ᆰ ᆱ
|
||||
ᆱ ᆲ
|
||||
ᆲ ᆳ
|
||||
ᆳ ᆴ
|
||||
ᆴ ᆵ
|
||||
ᆵ ㅀ
|
||||
ᄚ ᄆ
|
||||
ᄆ ᄇ
|
||||
ᄇ ᄈ
|
||||
ᄈ ᆹ
|
||||
ᄡ ᄉ
|
||||
ᄉ ᆻ
|
||||
ᄊ ᄋ
|
||||
ᄋ ᆽ
|
||||
ᄌ ᄍ
|
||||
ᄍ ᆾ
|
||||
ᄎ ᄏ
|
||||
ᄏ ᇀ
|
||||
ᄐ ᄑ
|
||||
ᄑ ᇂ
|
||||
ᄒ ᅡ
|
||||
ᅡ ᅢ
|
||||
ᅢ ᅣ
|
||||
ᅣ ᅤ
|
||||
ᅤ ᅥ
|
||||
ᅥ ᅦ
|
||||
ᅦ ᅧ
|
||||
ᅧ ᅨ
|
||||
ᅨ ᅩ
|
||||
ᅩ ᅪ
|
||||
ᅪ ᅫ
|
||||
ᅫ ᅬ
|
||||
ᅬ ᅭ
|
||||
ᅭ ᅮ
|
||||
ᅮ ᅯ
|
||||
ᅯ ᅰ
|
||||
ᅰ ᅱ
|
||||
ᅱ ᅲ
|
||||
ᅲ ᅳ
|
||||
ᅳ ᅴ
|
||||
ᅴ ᅵ
|
||||
ᅵ ¢
|
||||
¢ £
|
||||
£ ¬
|
||||
¬  ̄
|
||||
 ̄ ¦
|
||||
¦ ¥
|
||||
¥ ₩
|
||||
₩ │
|
||||
│ ←
|
||||
← ↑
|
||||
↑ →
|
||||
→ ↓
|
||||
↓ ■
|
||||
■ ○
|
||||
○ A
|
||||
A B
|
||||
B C
|
||||
C a
|
||||
a b
|
||||
b c
|
||||
c あ
|
||||
あ い
|
||||
い う
|
||||
う え
|
||||
え お
|
||||
お ア
|
||||
ア イ
|
||||
イ ウ
|
||||
ウ エ
|
||||
エ オ
|
||||
オ
|
|
@ -0,0 +1,315 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'mplus-1p-regular';
|
||||
src: url('/fonts/mplus-1p-regular.woff') format('woff');
|
||||
}
|
||||
.test span {
|
||||
text-transform: full-width;
|
||||
}
|
||||
span {
|
||||
font-family: 'mplus-1p-regular';
|
||||
background-color: cyan;
|
||||
}
|
||||
.test {
|
||||
color: Blue;
|
||||
line-height: 1.1;
|
||||
}
|
||||
.test div {
|
||||
display: inline-block;
|
||||
margin-bottom: .5em;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<script src="../include.js"></script>
|
||||
|
||||
<body>
|
||||
<div class="test">
|
||||
<!-- FULLWIDTH LATIN -->
|
||||
<div>[<span> </span>]<br />[<span> </span>]</div>
|
||||
<div><span>!</span><br /><span>!</span></div>
|
||||
<div><span>"</span><br /><span>"</span></div>
|
||||
<div><span>#</span><br /><span>#</span></div>
|
||||
<div><span>$</span><br /><span>$</span></div>
|
||||
<div><span>%</span><br /><span>%</span></div>
|
||||
<div><span>&</span><br /><span>&</span></div>
|
||||
<div><span>'</span><br /><span>'</span></div>
|
||||
<div><span>(</span><br /><span>(</span></div>
|
||||
<div><span>)</span><br /><span>)</span></div>
|
||||
<div><span>*</span><br /><span>*</span></div>
|
||||
<div><span>+</span><br /><span>+</span></div>
|
||||
<div><span>,</span><br /><span>,</span></div>
|
||||
<div><span>-</span><br /><span>-</span></div>
|
||||
<div><span>.</span><br /><span>.</span></div>
|
||||
<div><span>/</span><br /><span>/</span></div>
|
||||
|
||||
<div><span>0</span><br /><span>0</span></div>
|
||||
<div><span>1</span><br /><span>1</span></div>
|
||||
<div><span>2</span><br /><span>2</span></div>
|
||||
<div><span>3</span><br /><span>3</span></div>
|
||||
<div><span>4</span><br /><span>4</span></div>
|
||||
<div><span>5</span><br /><span>5</span></div>
|
||||
<div><span>6</span><br /><span>6</span></div>
|
||||
<div><span>7</span><br /><span>7</span></div>
|
||||
<div><span>8</span><br /><span>8</span></div>
|
||||
<div><span>9</span><br /><span>9</span></div>
|
||||
|
||||
<div><span>:</span><br /><span>:</span></div>
|
||||
<div><span>;</span><br /><span>;</span></div>
|
||||
<div><span><</span><br /><span><</span></div>
|
||||
<div><span>=</span><br /><span>=</span></div>
|
||||
<div><span>></span><br /><span>></span></div>
|
||||
<div><span>?</span><br /><span>?</span></div>
|
||||
<div><span>@</span><br /><span>@</span></div>
|
||||
|
||||
<div><span>A</span><br /><span>A</span></div>
|
||||
<div><span>B</span><br /><span>B</span></div>
|
||||
<div><span>C</span><br /><span>C</span></div>
|
||||
<div><span>D</span><br /><span>D</span></div>
|
||||
<div><span>E</span><br /><span>E</span></div>
|
||||
<div><span>F</span><br /><span>F</span></div>
|
||||
<div><span>G</span><br /><span>G</span></div>
|
||||
<div><span>H</span><br /><span>H</span></div>
|
||||
<div><span>I</span><br /><span>I</span></div>
|
||||
<div><span>J</span><br /><span>J</span></div>
|
||||
<div><span>K</span><br /><span>K</span></div>
|
||||
<div><span>L</span><br /><span>L</span></div>
|
||||
<div><span>M</span><br /><span>M</span></div>
|
||||
<div><span>N</span><br /><span>N</span></div>
|
||||
<div><span>O</span><br /><span>O</span></div>
|
||||
<div><span>P</span><br /><span>P</span></div>
|
||||
<div><span>Q</span><br /><span>Q</span></div>
|
||||
<div><span>R</span><br /><span>R</span></div>
|
||||
<div><span>S</span><br /><span>S</span></div>
|
||||
<div><span>T</span><br /><span>T</span></div>
|
||||
<div><span>U</span><br /><span>U</span></div>
|
||||
<div><span>V</span><br /><span>V</span></div>
|
||||
<div><span>W</span><br /><span>W</span></div>
|
||||
<div><span>X</span><br /><span>X</span></div>
|
||||
<div><span>Y</span><br /><span>Y</span></div>
|
||||
<div><span>Z</span><br /><span>Z</span></div>
|
||||
|
||||
<div><span>[</span><br /><span>[</span></div>
|
||||
<div><span>\</span><br /><span>\</span></div>
|
||||
<div><span>]</span><br /><span>]</span></div>
|
||||
<div><span>^</span><br /><span>^</span></div>
|
||||
<div><span>_</span><br /><span>_</span></div>
|
||||
<div><span>`</span><br /><span>`</span></div>
|
||||
|
||||
<div><span>a</span><br /><span>a</span></div>
|
||||
<div><span>b</span><br /><span>b</span></div>
|
||||
<div><span>c</span><br /><span>c</span></div>
|
||||
<div><span>d</span><br /><span>d</span></div>
|
||||
<div><span>e</span><br /><span>e</span></div>
|
||||
<div><span>f</span><br /><span>f</span></div>
|
||||
<div><span>g</span><br /><span>g</span></div>
|
||||
<div><span>h</span><br /><span>h</span></div>
|
||||
<div><span>i</span><br /><span>i</span></div>
|
||||
<div><span>j</span><br /><span>j</span></div>
|
||||
<div><span>k</span><br /><span>k</span></div>
|
||||
<div><span>l</span><br /><span>l</span></div>
|
||||
<div><span>m</span><br /><span>m</span></div>
|
||||
<div><span>n</span><br /><span>n</span></div>
|
||||
<div><span>o</span><br /><span>o</span></div>
|
||||
<div><span>p</span><br /><span>p</span></div>
|
||||
<div><span>q</span><br /><span>q</span></div>
|
||||
<div><span>r</span><br /><span>r</span></div>
|
||||
<div><span>s</span><br /><span>s</span></div>
|
||||
<div><span>t</span><br /><span>t</span></div>
|
||||
<div><span>u</span><br /><span>u</span></div>
|
||||
<div><span>v</span><br /><span>v</span></div>
|
||||
<div><span>w</span><br /><span>w</span></div>
|
||||
<div><span>x</span><br /><span>x</span></div>
|
||||
<div><span>y</span><br /><span>y</span></div>
|
||||
<div><span>z</span><br /><span>z</span></div>
|
||||
|
||||
<div><span>{</span><br /><span>{</span></div>
|
||||
<div><span>|</span><br /><span>|</span></div>
|
||||
<div><span>}</span><br /><span>}</span></div>
|
||||
<div><span>~</span><br /><span>~</span></div>
|
||||
|
||||
<div><span>⦅</span><br /><span>⦅</span></div> <!-- LEFT WHITE PARENTHESIS -->
|
||||
<div><span>⦆</span><br /><span>⦆</span></div> <!-- RIGHT WHITE PARENTHESIS -->
|
||||
|
||||
<!-- HALFWIDTH KATAKANA -->
|
||||
<div><span>。</span><br /><span>。</span></div>
|
||||
<div><span>「</span><br /><span>「</span></div>
|
||||
<div><span>」</span><br /><span>」</span></div>
|
||||
<div><span>、</span><br /><span>、</span></div>
|
||||
<div><span>・</span><br /><span>・</span></div>
|
||||
|
||||
<div><span>ヲ</span><br /><span>ヲ</span></div>
|
||||
<div><span>ァ</span><br /><span>ァ</span></div>
|
||||
<div><span>ィ</span><br /><span>ィ</span></div>
|
||||
<div><span>ゥ</span><br /><span>ゥ</span></div>
|
||||
<div><span>ェ</span><br /><span>ェ</span></div>
|
||||
<div><span>ォ</span><br /><span>ォ</span></div>
|
||||
<div><span>ャ</span><br /><span>ャ</span></div>
|
||||
<div><span>ュ</span><br /><span>ュ</span></div>
|
||||
<div><span>ョ</span><br /><span>ョ</span></div>
|
||||
<div><span>ッ</span><br /><span>ッ</span></div>
|
||||
<div><span>ー</span><br /><span>ー</span></div>
|
||||
|
||||
<div><span>ア</span><br /><span>ア</span></div>
|
||||
<div><span>イ</span><br /><span>イ</span></div>
|
||||
<div><span>ウ</span><br /><span>ウ</span></div>
|
||||
<div><span>エ</span><br /><span>エ</span></div>
|
||||
<div><span>オ</span><br /><span>オ</span></div>
|
||||
<div><span>カ</span><br /><span>カ</span></div>
|
||||
<div><span>キ</span><br /><span>キ</span></div>
|
||||
<div><span>ク</span><br /><span>ク</span></div>
|
||||
<div><span>ケ</span><br /><span>ケ</span></div>
|
||||
<div><span>コ</span><br /><span>コ</span></div>
|
||||
<div><span>サ</span><br /><span>サ</span></div>
|
||||
<div><span>シ</span><br /><span>シ</span></div>
|
||||
<div><span>ス</span><br /><span>ス</span></div>
|
||||
<div><span>セ</span><br /><span>セ</span></div>
|
||||
<div><span>ソ</span><br /><span>ソ</span></div>
|
||||
<div><span>タ</span><br /><span>タ</span></div>
|
||||
<div><span>チ</span><br /><span>チ</span></div>
|
||||
<div><span>ツ</span><br /><span>ツ</span></div>
|
||||
<div><span>テ</span><br /><span>テ</span></div>
|
||||
<div><span>ト</span><br /><span>ト</span></div>
|
||||
<div><span>ナ</span><br /><span>ナ</span></div>
|
||||
<div><span>ニ</span><br /><span>ニ</span></div>
|
||||
<div><span>ヌ</span><br /><span>ヌ</span></div>
|
||||
<div><span>ネ</span><br /><span>ネ</span></div>
|
||||
<div><span>ノ</span><br /><span>ノ</span></div>
|
||||
<div><span>ハ</span><br /><span>ハ</span></div>
|
||||
<div><span>ヒ</span><br /><span>ヒ</span></div>
|
||||
<div><span>フ</span><br /><span>フ</span></div>
|
||||
<div><span>ヘ</span><br /><span>ヘ</span></div>
|
||||
<div><span>ホ</span><br /><span>ホ</span></div>
|
||||
<div><span>マ</span><br /><span>マ</span></div>
|
||||
<div><span>ミ</span><br /><span>ミ</span></div>
|
||||
<div><span>ム</span><br /><span>ム</span></div>
|
||||
<div><span>メ</span><br /><span>メ</span></div>
|
||||
<div><span>モ</span><br /><span>モ</span></div>
|
||||
<div><span>ヤ</span><br /><span>ヤ</span></div>
|
||||
<div><span>ユ</span><br /><span>ユ</span></div>
|
||||
<div><span>ヨ</span><br /><span>ヨ</span></div>
|
||||
<div><span>ラ</span><br /><span>ラ</span></div>
|
||||
<div><span>リ</span><br /><span>リ</span></div>
|
||||
<div><span>ル</span><br /><span>ル</span></div>
|
||||
<div><span>レ</span><br /><span>レ</span></div>
|
||||
<div><span>ロ</span><br /><span>ロ</span></div>
|
||||
<div><span>ワ</span><br /><span>ワ</span></div>
|
||||
<div><span>ン</span><br /><span>ン</span></div>
|
||||
|
||||
<div><span> ゙</span><br /><span> ゙</span></div>
|
||||
<div><span> ゚</span><br /><span> ゚</span></div>
|
||||
|
||||
<!-- HALFWIDTH HANGUL -->
|
||||
<div>[<span>ᅟ</span>]<br />[<span>ᅠ</span>]</div> <!-- HANGUL FILLER -->
|
||||
<div><span>ᆨ</span><br /><span>ᄀ</span></div> <!-- HANGUL LETTER KIYEOK -->
|
||||
<div><span>ㄲ</span><br /><span>ᄁ</span></div> <!-- HANGUL LETTER SSANGKIYEOK -->
|
||||
<div><span>ᆪ</span><br /><span>ᆪ</span></div> <!-- HANGUL LETTER KIYEOK-SIOS -->
|
||||
<div><span>ᆫ</span><br /><span>ᄂ</span></div> <!-- HANGUL LETTER NIEUN -->
|
||||
<div><span>ᆬ</span><br /><span>ᆬ</span></div> <!-- HANGUL LETTER NIEUN-CIEUC -->
|
||||
<div><span>ᆭ</span><br /><span>ᆭ</span></div> <!-- HANGUL LETTER NIEUN-HIEUH -->
|
||||
<div><span>ᆮ</span><br /><span>ᄃ</span></div> <!-- HANGUL LETTER TIKEUT -->
|
||||
<div><span>ᄄ</span><br /><span>ᄄ</span></div> <!-- HANGUL LETTER SSANGTIKEUT -->
|
||||
<div><span>ᆯ</span><br /><span>ᄅ</span></div> <!-- HANGUL LETTER RIEUL -->
|
||||
<div><span>ᆰ</span><br /><span>ᆰ</span></div> <!-- HANGUL LETTER RIEUL-KIYEOK -->
|
||||
<div><span>ᆱ</span><br /><span>ᆱ</span></div> <!-- HANGUL LETTER RIEUL-MIEUM -->
|
||||
<div><span>ᆲ</span><br /><span>ᆲ</span></div> <!-- HANGUL LETTER RIEUL-PIEUP -->
|
||||
<div><span>ᆳ</span><br /><span>ᆳ</span></div> <!-- HANGUL LETTER RIEUL-SIOS -->
|
||||
<div><span>ᆴ</span><br /><span>ᆴ</span></div> <!-- HANGUL LETTER RIEUL-THIEUTH -->
|
||||
<div><span>ᆵ</span><br /><span>ᆵ</span></div> <!-- HANGUL LETTER RIEUL-PHIEUPH -->
|
||||
<div><span>ㅀ</span><br /><span>ᄚ</span></div> <!-- HANGUL LETTER RIEUL-HIEUH -->
|
||||
<div><span>ᄆ</span><br /><span>ᄆ</span></div> <!-- HANGUL LETTER MIEUM -->
|
||||
<div><span>ᄇ</span><br /><span>ᄇ</span></div> <!-- HANGUL LETTER PIEUP -->
|
||||
<div><span>ᄈ</span><br /><span>ᄈ</span></div> <!-- HANGUL LETTER SSANGPIEUP -->
|
||||
<div><span>ᆹ</span><br /><span>ᄡ</span></div> <!-- HANGUL LETTER PIEUP-SIOS -->
|
||||
<div><span>ᄉ</span><br /><span>ᄉ</span></div> <!-- HANGUL LETTER SIOS -->
|
||||
<div><span>ᆻ</span><br /><span>ᄊ</span></div> <!-- HANGUL LETTER SSANGSIOS -->
|
||||
<div><span>ᄋ</span><br /><span>ᄋ</span></div> <!-- HANGUL LETTER IEUNG -->
|
||||
<div><span>ᆽ</span><br /><span>ᄌ</span></div> <!-- HANGUL LETTER CIEUC -->
|
||||
<div><span>ᄍ</span><br /><span>ᄍ</span></div> <!-- HANGUL LETTER SSANGCIEUC -->
|
||||
<div><span>ᆾ</span><br /><span>ᄎ</span></div> <!-- HANGUL LETTER CHIEUCH -->
|
||||
<div><span>ᄏ</span><br /><span>ᄏ</span></div> <!-- HANGUL LETTER KHIEUKH -->
|
||||
<div><span>ᇀ</span><br /><span>ᄐ</span></div> <!-- HANGUL LETTER THIEUTH -->
|
||||
<div><span>ᄑ</span><br /><span>ᄑ</span></div> <!-- HANGUL LETTER PHIEUPH -->
|
||||
<div><span>ᇂ</span><br /><span>ᄒ</span></div> <!-- HANGUL LETTER HIEUH -->
|
||||
<div><span>ᅡ</span><br /><span>ᅡ</span></div> <!-- HANGUL LETTER A -->
|
||||
<div><span>ᅢ</span><br /><span>ᅢ</span></div> <!-- HANGUL LETTER AE -->
|
||||
<div><span>ᅣ</span><br /><span>ᅣ</span></div> <!-- HANGUL LETTER YA -->
|
||||
<div><span>ᅤ</span><br /><span>ᅤ</span></div> <!-- HANGUL LETTER YAE -->
|
||||
<div><span>ᅥ</span><br /><span>ᅥ</span></div> <!-- HANGUL LETTER EO -->
|
||||
<div><span>ᅦ</span><br /><span>ᅦ</span></div> <!-- HANGUL LETTER E -->
|
||||
|
||||
<div><span>ᅧ</span><br /><span>ᅧ</span></div> <!-- HANGUL LETTER YEO -->
|
||||
<div><span>ᅨ</span><br /><span>ᅨ</span></div> <!-- HANGUL LETTER YE -->
|
||||
<div><span>ᅩ</span><br /><span>ᅩ</span></div> <!-- HANGUL LETTER O -->
|
||||
<div><span>ᅪ</span><br /><span>ᅪ</span></div> <!-- HANGUL LETTER WA -->
|
||||
<div><span>ᅫ</span><br /><span>ᅫ</span></div> <!-- HANGUL LETTER WAE -->
|
||||
<div><span>ᅬ</span><br /><span>ᅬ</span></div> <!-- HANGUL LETTER OE -->
|
||||
|
||||
<div><span>ᅭ</span><br /><span>ᅭ</span></div> <!-- HANGUL LETTER YO -->
|
||||
<div><span>ᅮ</span><br /><span>ᅮ</span></div> <!-- HANGUL LETTER U -->
|
||||
<div><span>ᅯ</span><br /><span>ᅯ</span></div> <!-- HANGUL LETTER WEO -->
|
||||
<div><span>ᅰ</span><br /><span>ᅰ</span></div> <!-- HANGUL LETTER WE -->
|
||||
<div><span>ᅱ</span><br /><span>ᅱ</span></div> <!-- HANGUL LETTER WI -->
|
||||
<div><span>ᅲ</span><br /><span>ᅲ</span></div> <!-- HANGUL LETTER YU -->
|
||||
|
||||
<div><span>ᅳ</span><br /><span>ᅳ</span></div> <!-- HANGUL LETTER EU -->
|
||||
<div><span>ᅴ</span><br /><span>ᅴ</span></div> <!-- HANGUL LETTER YI -->
|
||||
<div><span>ᅵ</span><br /><span>ᅵ</span></div> <!-- HANGUL LETTER I -->
|
||||
|
||||
<!-- FULLWIDTH SIGN -->
|
||||
<div><span>¢</span><br /><span>¢</span></div> <!-- CENT SIGN -->
|
||||
<div><span>£</span><br /><span>£</span></div> <!-- POUND SIGN -->
|
||||
<div><span>¬</span><br /><span>¬</span></div> <!-- NOT SIGN -->
|
||||
<div><span> ̄</span><br /><span>¯</span></div> <!-- MACRON -->
|
||||
<div><span>¦</span><br /><span>¦</span></div> <!-- BROKEN BAR -->
|
||||
<div><span>¥</span><br /><span>¥</span></div> <!-- YEN SIGN -->
|
||||
<div><span>₩</span><br /><span>₩</span></div> <!-- WON SIGN -->
|
||||
|
||||
<!-- HALFWIDTH SIGN -->
|
||||
<div><span>│</span><br /><span>│</span></div> <!-- FORMS LIGHT VERTICAL -->
|
||||
<div><span>←</span><br /><span>←</span></div> <!-- LEFTWARDS ARROW -->
|
||||
<div><span>↑</span><br /><span>↑</span></div> <!-- UPWARDS ARROW -->
|
||||
<div><span>→</span><br /><span>→</span></div> <!-- RIGHTWARDS ARROW -->
|
||||
<div><span>↓</span><br /><span>↓</span></div> <!-- DOWNWARDS ARROW -->
|
||||
<div><span>■</span><br /><span>■</span></div> <!-- BLACK SQUARE -->
|
||||
<div><span>○</span><br /><span>○</span></div> <!-- WHITE CIRCLE -->
|
||||
|
||||
<!-- HALFWIDTH LATIN -->
|
||||
<div><span>A</span><br /><span>A</span></div>
|
||||
<div><span>B</span><br /><span>B</span></div>
|
||||
<div><span>C</span><br /><span>C</span></div>
|
||||
|
||||
<div><span>a</span><br /><span>a</span></div>
|
||||
<div><span>b</span><br /><span>b</span></div>
|
||||
<div><span>c</span><br /><span>c</span></div>
|
||||
|
||||
<!-- FULLWIDTH KANA -->
|
||||
<div><span>あ</span><br /><span>あ</span></div>
|
||||
<div><span>い</span><br /><span>い</span></div>
|
||||
<div><span>う</span><br /><span>う</span></div>
|
||||
<div><span>え</span><br /><span>え</span></div>
|
||||
<div><span>お</span><br /><span>お</span></div>
|
||||
|
||||
<div><span>ア</span><br /><span>ア</span></div>
|
||||
<div><span>イ</span><br /><span>イ</span></div>
|
||||
<div><span>ウ</span><br /><span>ウ</span></div>
|
||||
<div><span>エ</span><br /><span>エ</span></div>
|
||||
<div><span>オ</span><br /><span>オ</span></div>
|
||||
</div>
|
||||
<script>
|
||||
test(() => {
|
||||
var elements = document.getElementsByClassName('test');
|
||||
for (var i = 0; i < elements.length; i++) {
|
||||
println(elements[i].innerText);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -293,11 +293,14 @@ static ErrorOr<String> apply_text_transform(String const& string, CSS::TextTrans
|
|||
case CSS::TextTransform::Capitalize: {
|
||||
return string.to_titlecase(locale, TrailingCodePointTransformation::PreserveExisting);
|
||||
}
|
||||
case CSS::TextTransform::FullSizeKana:
|
||||
case CSS::TextTransform::FullWidth:
|
||||
// FIXME: Implement these!
|
||||
case CSS::TextTransform::FullSizeKana: {
|
||||
// FIXME: Implement this!
|
||||
return string;
|
||||
}
|
||||
case CSS::TextTransform::FullWidth: {
|
||||
return string.to_fullwidth();
|
||||
}
|
||||
}
|
||||
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue