Truly independent web browser
Tests/LibWeb: Import WPT coverage for conditional Japanese starters
Andreas Kling8f4809216269
diff --git a/Tests/LibWeb/Text/expected/CSS/line-break-cj-style-changes.txt b/Tests/LibWeb/Text/expected/CSS/line-break-cj-style-changes.txtnew file mode 100644index 00000000000..1fb2791f5f7--- /dev/null+++ b/Tests/LibWeb/Text/expected/CSS/line-break-cj-style-changes.txt@@ -0,0 +1,5 @@+normal is inherited: false+normal allows a CJ line start: false+strict restores the original break: true+loose allows a CJ line start: false+auto restores the original break: truediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-loose.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-loose.txtnew file mode 100644index 00000000000..3771a4c1428--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-loose.txt@@ -0,0 +1,56 @@+Harness status: OK++Found 51 tests++51 Fail+Fail 3041 HIRAGANA LETTER SMALL A may appear at line start if ja and loose+Fail 3043 HIRAGANA LETTER SMALL I may appear at line start if ja and loose+Fail 3045 HIRAGANA LETTER SMALL U may appear at line start if ja and loose+Fail 3047 HIRAGANA LETTER SMALL E may appear at line start if ja and loose+Fail 3049 HIRAGANA LETTER SMALL O may appear at line start if ja and loose+Fail 3063 HIRAGANA LETTER SMALL TU may appear at line start if ja and loose+Fail 3083 HIRAGANA LETTER SMALL YA may appear at line start if ja and loose+Fail 3085 HIRAGANA LETTER SMALL YU may appear at line start if ja and loose+Fail 3087 HIRAGANA LETTER SMALL YO may appear at line start if ja and loose+Fail 308E HIRAGANA LETTER SMALL WA may appear at line start if ja and loose+Fail 3095 HIRAGANA LETTER SMALL KA may appear at line start if ja and loose+Fail 3096 HIRAGANA LETTER SMALL KE may appear at line start if ja and loose+Fail 30A1 KATAKANA LETTER SMALL A may appear at line start if ja and loose+Fail 30A3 KATAKANA LETTER SMALL I may appear at line start if ja and loose+Fail 30A5 KATAKANA LETTER SMALL U may appear at line start if ja and loose+Fail 30A7 KATAKANA LETTER SMALL E may appear at line start if ja and loose+Fail 30A9 KATAKANA LETTER SMALL O may appear at line start if ja and loose+Fail 30C3 KATAKANA LETTER SMALL TU may appear at line start if ja and loose+Fail 30E3 KATAKANA LETTER SMALL YA may appear at line start if ja and loose+Fail 30E5 KATAKANA LETTER SMALL YU may appear at line start if ja and loose+Fail 30E7 KATAKANA LETTER SMALL YO may appear at line start if ja and loose+Fail 30EE KATAKANA LETTER SMALL WA may appear at line start if ja and loose+Fail 30F5 KATAKANA LETTER SMALL KA may appear at line start if ja and loose+Fail 30F6 KATAKANA LETTER SMALL KE may appear at line start if ja and loose+Fail 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK may appear at line start if ja and loose+Fail 31F0 KATAKANA LETTER SMALL KU may appear at line start if ja and loose+Fail 31F1 KATAKANA LETTER SMALL SI may appear at line start if ja and loose+Fail 31F2 KATAKANA LETTER SMALL SU may appear at line start if ja and loose+Fail 31F3 KATAKANA LETTER SMALL TO may appear at line start if ja and loose+Fail 31F4 KATAKANA LETTER SMALL NU may appear at line start if ja and loose+Fail 31F5 KATAKANA LETTER SMALL HA may appear at line start if ja and loose+Fail 31F6 KATAKANA LETTER SMALL HI may appear at line start if ja and loose+Fail 31F7 KATAKANA LETTER SMALL HU may appear at line start if ja and loose+Fail 31F8 KATAKANA LETTER SMALL HE may appear at line start if ja and loose+Fail 31F9 KATAKANA LETTER SMALL HO may appear at line start if ja and loose+Fail 31FA KATAKANA LETTER SMALL MU may appear at line start if ja and loose+Fail 31FB KATAKANA LETTER SMALL RA may appear at line start if ja and loose+Fail 31FC KATAKANA LETTER SMALL RI may appear at line start if ja and loose+Fail 31FD KATAKANA LETTER SMALL RU may appear at line start if ja and loose+Fail 31FE KATAKANA LETTER SMALL RE may appear at line start if ja and loose+Fail 31FF KATAKANA LETTER SMALL RO may appear at line start if ja and loose+Fail FF67 HALFWIDTH KATAKANA LETTER SMALL A may appear at line start if ja and loose+Fail FF68 HALFWIDTH KATAKANA LETTER SMALL I may appear at line start if ja and loose+Fail FF69 HALFWIDTH KATAKANA LETTER SMALL U may appear at line start if ja and loose+Fail FF6A HALFWIDTH KATAKANA LETTER SMALL E may appear at line start if ja and loose+Fail FF6B HALFWIDTH KATAKANA LETTER SMALL O may appear at line start if ja and loose+Fail FF6C HALFWIDTH KATAKANA LETTER SMALL YA may appear at line start if ja and loose+Fail FF6D HALFWIDTH KATAKANA LETTER SMALL YU may appear at line start if ja and loose+Fail FF6E HALFWIDTH KATAKANA LETTER SMALL YO may appear at line start if ja and loose+Fail FF6F HALFWIDTH KATAKANA LETTER SMALL TU may appear at line start if ja and loose+Fail FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK may appear at line start if ja and loose\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-normal.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-normal.txtnew file mode 100644index 00000000000..fc64a3aab3c--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-normal.txt@@ -0,0 +1,56 @@+Harness status: OK++Found 51 tests++51 Fail+Fail 3041 HIRAGANA LETTER SMALL A may appear at line start if ja and normal+Fail 3043 HIRAGANA LETTER SMALL I may appear at line start if ja and normal+Fail 3045 HIRAGANA LETTER SMALL U may appear at line start if ja and normal+Fail 3047 HIRAGANA LETTER SMALL E may appear at line start if ja and normal+Fail 3049 HIRAGANA LETTER SMALL O may appear at line start if ja and normal+Fail 3063 HIRAGANA LETTER SMALL TU may appear at line start if ja and normal+Fail 3083 HIRAGANA LETTER SMALL YA may appear at line start if ja and normal+Fail 3085 HIRAGANA LETTER SMALL YU may appear at line start if ja and normal+Fail 3087 HIRAGANA LETTER SMALL YO may appear at line start if ja and normal+Fail 308E HIRAGANA LETTER SMALL WA may appear at line start if ja and normal+Fail 3095 HIRAGANA LETTER SMALL KA may appear at line start if ja and normal+Fail 3096 HIRAGANA LETTER SMALL KE may appear at line start if ja and normal+Fail 30A1 KATAKANA LETTER SMALL A may appear at line start if ja and normal+Fail 30A3 KATAKANA LETTER SMALL I may appear at line start if ja and normal+Fail 30A5 KATAKANA LETTER SMALL U may appear at line start if ja and normal+Fail 30A7 KATAKANA LETTER SMALL E may appear at line start if ja and normal+Fail 30A9 KATAKANA LETTER SMALL O may appear at line start if ja and normal+Fail 30C3 KATAKANA LETTER SMALL TU may appear at line start if ja and normal+Fail 30E3 KATAKANA LETTER SMALL YA may appear at line start if ja and normal+Fail 30E5 KATAKANA LETTER SMALL YU may appear at line start if ja and normal+Fail 30E7 KATAKANA LETTER SMALL YO may appear at line start if ja and normal+Fail 30EE KATAKANA LETTER SMALL WA may appear at line start if ja and normal+Fail 30F5 KATAKANA LETTER SMALL KA may appear at line start if ja and normal+Fail 30F6 KATAKANA LETTER SMALL KE may appear at line start if ja and normal+Fail 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK may appear at line start if ja and normal+Fail 31F0 KATAKANA LETTER SMALL KU may appear at line start if ja and normal+Fail 31F1 KATAKANA LETTER SMALL SI may appear at line start if ja and normal+Fail 31F2 KATAKANA LETTER SMALL SU may appear at line start if ja and normal+Fail 31F3 KATAKANA LETTER SMALL TO may appear at line start if ja and normal+Fail 31F4 KATAKANA LETTER SMALL NU may appear at line start if ja and normal+Fail 31F5 KATAKANA LETTER SMALL HA may appear at line start if ja and normal+Fail 31F6 KATAKANA LETTER SMALL HI may appear at line start if ja and normal+Fail 31F7 KATAKANA LETTER SMALL HU may appear at line start if ja and normal+Fail 31F8 KATAKANA LETTER SMALL HE may appear at line start if ja and normal+Fail 31F9 KATAKANA LETTER SMALL HO may appear at line start if ja and normal+Fail 31FA KATAKANA LETTER SMALL MU may appear at line start if ja and normal+Fail 31FB KATAKANA LETTER SMALL RA may appear at line start if ja and normal+Fail 31FC KATAKANA LETTER SMALL RI may appear at line start if ja and normal+Fail 31FD KATAKANA LETTER SMALL RU may appear at line start if ja and normal+Fail 31FE KATAKANA LETTER SMALL RE may appear at line start if ja and normal+Fail 31FF KATAKANA LETTER SMALL RO may appear at line start if ja and normal+Fail FF67 HALFWIDTH KATAKANA LETTER SMALL A may appear at line start if ja and normal+Fail FF68 HALFWIDTH KATAKANA LETTER SMALL I may appear at line start if ja and normal+Fail FF69 HALFWIDTH KATAKANA LETTER SMALL U may appear at line start if ja and normal+Fail FF6A HALFWIDTH KATAKANA LETTER SMALL E may appear at line start if ja and normal+Fail FF6B HALFWIDTH KATAKANA LETTER SMALL O may appear at line start if ja and normal+Fail FF6C HALFWIDTH KATAKANA LETTER SMALL YA may appear at line start if ja and normal+Fail FF6D HALFWIDTH KATAKANA LETTER SMALL YU may appear at line start if ja and normal+Fail FF6E HALFWIDTH KATAKANA LETTER SMALL YO may appear at line start if ja and normal+Fail FF6F HALFWIDTH KATAKANA LETTER SMALL TU may appear at line start if ja and normal+Fail FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK may appear at line start if ja and normal\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-strict.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-strict.txtnew file mode 100644index 00000000000..07cac67670e--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-strict.txt@@ -0,0 +1,56 @@+Harness status: OK++Found 51 tests++51 Pass+Pass 3041 HIRAGANA LETTER SMALL A may NOT appear at line start if ja and strict+Pass 3043 HIRAGANA LETTER SMALL I may NOT appear at line start if ja and strict+Pass 3045 HIRAGANA LETTER SMALL U may NOT appear at line start if ja and strict+Pass 3047 HIRAGANA LETTER SMALL E may NOT appear at line start if ja and strict+Pass 3049 HIRAGANA LETTER SMALL O may NOT appear at line start if ja and strict+Pass 3063 HIRAGANA LETTER SMALL TU may NOT appear at line start if ja and strict+Pass 3083 HIRAGANA LETTER SMALL YA may NOT appear at line start if ja and strict+Pass 3085 HIRAGANA LETTER SMALL YU may NOT appear at line start if ja and strict+Pass 3087 HIRAGANA LETTER SMALL YO may NOT appear at line start if ja and strict+Pass 308E HIRAGANA LETTER SMALL WA may NOT appear at line start if ja and strict+Pass 3095 HIRAGANA LETTER SMALL KA may NOT appear at line start if ja and strict+Pass 3096 HIRAGANA LETTER SMALL KE may NOT appear at line start if ja and strict+Pass 30A1 KATAKANA LETTER SMALL A may NOT appear at line start if ja and strict+Pass 30A3 KATAKANA LETTER SMALL I may NOT appear at line start if ja and strict+Pass 30A5 KATAKANA LETTER SMALL U may NOT appear at line start if ja and strict+Pass 30A7 KATAKANA LETTER SMALL E may NOT appear at line start if ja and strict+Pass 30A9 KATAKANA LETTER SMALL O may NOT appear at line start if ja and strict+Pass 30C3 KATAKANA LETTER SMALL TU may NOT appear at line start if ja and strict+Pass 30E3 KATAKANA LETTER SMALL YA may NOT appear at line start if ja and strict+Pass 30E5 KATAKANA LETTER SMALL YU may NOT appear at line start if ja and strict+Pass 30E7 KATAKANA LETTER SMALL YO may NOT appear at line start if ja and strict+Pass 30EE KATAKANA LETTER SMALL WA may NOT appear at line start if ja and strict+Pass 30F5 KATAKANA LETTER SMALL KA may NOT appear at line start if ja and strict+Pass 30F6 KATAKANA LETTER SMALL KE may NOT appear at line start if ja and strict+Pass 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK may NOT appear at line start if ja and strict+Pass 31F0 KATAKANA LETTER SMALL KU may NOT appear at line start if ja and strict+Pass 31F1 KATAKANA LETTER SMALL SI may NOT appear at line start if ja and strict+Pass 31F2 KATAKANA LETTER SMALL SU may NOT appear at line start if ja and strict+Pass 31F3 KATAKANA LETTER SMALL TO may NOT appear at line start if ja and strict+Pass 31F4 KATAKANA LETTER SMALL NU may NOT appear at line start if ja and strict+Pass 31F5 KATAKANA LETTER SMALL HA may NOT appear at line start if ja and strict+Pass 31F6 KATAKANA LETTER SMALL HI may NOT appear at line start if ja and strict+Pass 31F7 KATAKANA LETTER SMALL HU may NOT appear at line start if ja and strict+Pass 31F8 KATAKANA LETTER SMALL HE may NOT appear at line start if ja and strict+Pass 31F9 KATAKANA LETTER SMALL HO may NOT appear at line start if ja and strict+Pass 31FA KATAKANA LETTER SMALL MU may NOT appear at line start if ja and strict+Pass 31FB KATAKANA LETTER SMALL RA may NOT appear at line start if ja and strict+Pass 31FC KATAKANA LETTER SMALL RI may NOT appear at line start if ja and strict+Pass 31FD KATAKANA LETTER SMALL RU may NOT appear at line start if ja and strict+Pass 31FE KATAKANA LETTER SMALL RE may NOT appear at line start if ja and strict+Pass 31FF KATAKANA LETTER SMALL RO may NOT appear at line start if ja and strict+Pass FF67 HALFWIDTH KATAKANA LETTER SMALL A may NOT appear at line start if ja and strict+Pass FF68 HALFWIDTH KATAKANA LETTER SMALL I may NOT appear at line start if ja and strict+Pass FF69 HALFWIDTH KATAKANA LETTER SMALL U may NOT appear at line start if ja and strict+Pass FF6A HALFWIDTH KATAKANA LETTER SMALL E may NOT appear at line start if ja and strict+Pass FF6B HALFWIDTH KATAKANA LETTER SMALL O may NOT appear at line start if ja and strict+Pass FF6C HALFWIDTH KATAKANA LETTER SMALL YA may NOT appear at line start if ja and strict+Pass FF6D HALFWIDTH KATAKANA LETTER SMALL YU may NOT appear at line start if ja and strict+Pass FF6E HALFWIDTH KATAKANA LETTER SMALL YO may NOT appear at line start if ja and strict+Pass FF6F HALFWIDTH KATAKANA LETTER SMALL TU may NOT appear at line start if ja and strict+Pass FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK may NOT appear at line start if ja and strict\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-loose.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-loose.txtnew file mode 100644index 00000000000..e210720bde5--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-loose.txt@@ -0,0 +1,56 @@+Harness status: OK++Found 51 tests++51 Fail+Fail 3041 HIRAGANA LETTER SMALL A may appear at line start if de and loose+Fail 3043 HIRAGANA LETTER SMALL I may appear at line start if de and loose+Fail 3045 HIRAGANA LETTER SMALL U may appear at line start if de and loose+Fail 3047 HIRAGANA LETTER SMALL E may appear at line start if de and loose+Fail 3049 HIRAGANA LETTER SMALL O may appear at line start if de and loose+Fail 3063 HIRAGANA LETTER SMALL TU may appear at line start if de and loose+Fail 3083 HIRAGANA LETTER SMALL YA may appear at line start if de and loose+Fail 3085 HIRAGANA LETTER SMALL YU may appear at line start if de and loose+Fail 3087 HIRAGANA LETTER SMALL YO may appear at line start if de and loose+Fail 308E HIRAGANA LETTER SMALL WA may appear at line start if de and loose+Fail 3095 HIRAGANA LETTER SMALL KA may appear at line start if de and loose+Fail 3096 HIRAGANA LETTER SMALL KE may appear at line start if de and loose+Fail 30A1 KATAKANA LETTER SMALL A may appear at line start if de and loose+Fail 30A3 KATAKANA LETTER SMALL I may appear at line start if de and loose+Fail 30A5 KATAKANA LETTER SMALL U may appear at line start if de and loose+Fail 30A7 KATAKANA LETTER SMALL E may appear at line start if de and loose+Fail 30A9 KATAKANA LETTER SMALL O may appear at line start if de and loose+Fail 30C3 KATAKANA LETTER SMALL TU may appear at line start if de and loose+Fail 30E3 KATAKANA LETTER SMALL YA may appear at line start if de and loose+Fail 30E5 KATAKANA LETTER SMALL YU may appear at line start if de and loose+Fail 30E7 KATAKANA LETTER SMALL YO may appear at line start if de and loose+Fail 30EE KATAKANA LETTER SMALL WA may appear at line start if de and loose+Fail 30F5 KATAKANA LETTER SMALL KA may appear at line start if de and loose+Fail 30F6 KATAKANA LETTER SMALL KE may appear at line start if de and loose+Fail 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK may appear at line start if de and loose+Fail 31F0 KATAKANA LETTER SMALL KU may appear at line start if de and loose+Fail 31F1 KATAKANA LETTER SMALL SI may appear at line start if de and loose+Fail 31F2 KATAKANA LETTER SMALL SU may appear at line start if de and loose+Fail 31F3 KATAKANA LETTER SMALL TO may appear at line start if de and loose+Fail 31F4 KATAKANA LETTER SMALL NU may appear at line start if de and loose+Fail 31F5 KATAKANA LETTER SMALL HA may appear at line start if de and loose+Fail 31F6 KATAKANA LETTER SMALL HI may appear at line start if de and loose+Fail 31F7 KATAKANA LETTER SMALL HU may appear at line start if de and loose+Fail 31F8 KATAKANA LETTER SMALL HE may appear at line start if de and loose+Fail 31F9 KATAKANA LETTER SMALL HO may appear at line start if de and loose+Fail 31FA KATAKANA LETTER SMALL MU may appear at line start if de and loose+Fail 31FB KATAKANA LETTER SMALL RA may appear at line start if de and loose+Fail 31FC KATAKANA LETTER SMALL RI may appear at line start if de and loose+Fail 31FD KATAKANA LETTER SMALL RU may appear at line start if de and loose+Fail 31FE KATAKANA LETTER SMALL RE may appear at line start if de and loose+Fail 31FF KATAKANA LETTER SMALL RO may appear at line start if de and loose+Fail FF67 HALFWIDTH KATAKANA LETTER SMALL A may appear at line start if de and loose+Fail FF68 HALFWIDTH KATAKANA LETTER SMALL I may appear at line start if de and loose+Fail FF69 HALFWIDTH KATAKANA LETTER SMALL U may appear at line start if de and loose+Fail FF6A HALFWIDTH KATAKANA LETTER SMALL E may appear at line start if de and loose+Fail FF6B HALFWIDTH KATAKANA LETTER SMALL O may appear at line start if de and loose+Fail FF6C HALFWIDTH KATAKANA LETTER SMALL YA may appear at line start if de and loose+Fail FF6D HALFWIDTH KATAKANA LETTER SMALL YU may appear at line start if de and loose+Fail FF6E HALFWIDTH KATAKANA LETTER SMALL YO may appear at line start if de and loose+Fail FF6F HALFWIDTH KATAKANA LETTER SMALL TU may appear at line start if de and loose+Fail FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK may appear at line start if de and loose\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-normal.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-normal.txtnew file mode 100644index 00000000000..76fdb838240--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-normal.txt@@ -0,0 +1,56 @@+Harness status: OK++Found 51 tests++51 Fail+Fail 3041 HIRAGANA LETTER SMALL A may appear at line start if de and normal+Fail 3043 HIRAGANA LETTER SMALL I may appear at line start if de and normal+Fail 3045 HIRAGANA LETTER SMALL U may appear at line start if de and normal+Fail 3047 HIRAGANA LETTER SMALL E may appear at line start if de and normal+Fail 3049 HIRAGANA LETTER SMALL O may appear at line start if de and normal+Fail 3063 HIRAGANA LETTER SMALL TU may appear at line start if de and normal+Fail 3083 HIRAGANA LETTER SMALL YA may appear at line start if de and normal+Fail 3085 HIRAGANA LETTER SMALL YU may appear at line start if de and normal+Fail 3087 HIRAGANA LETTER SMALL YO may appear at line start if de and normal+Fail 308E HIRAGANA LETTER SMALL WA may appear at line start if de and normal+Fail 3095 HIRAGANA LETTER SMALL KA may appear at line start if de and normal+Fail 3096 HIRAGANA LETTER SMALL KE may appear at line start if de and normal+Fail 30A1 KATAKANA LETTER SMALL A may appear at line start if de and normal+Fail 30A3 KATAKANA LETTER SMALL I may appear at line start if de and normal+Fail 30A5 KATAKANA LETTER SMALL U may appear at line start if de and normal+Fail 30A7 KATAKANA LETTER SMALL E may appear at line start if de and normal+Fail 30A9 KATAKANA LETTER SMALL O may appear at line start if de and normal+Fail 30C3 KATAKANA LETTER SMALL TU may appear at line start if de and normal+Fail 30E3 KATAKANA LETTER SMALL YA may appear at line start if de and normal+Fail 30E5 KATAKANA LETTER SMALL YU may appear at line start if de and normal+Fail 30E7 KATAKANA LETTER SMALL YO may appear at line start if de and normal+Fail 30EE KATAKANA LETTER SMALL WA may appear at line start if de and normal+Fail 30F5 KATAKANA LETTER SMALL KA may appear at line start if de and normal+Fail 30F6 KATAKANA LETTER SMALL KE may appear at line start if de and normal+Fail 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK may appear at line start if de and normal+Fail 31F0 KATAKANA LETTER SMALL KU may appear at line start if de and normal+Fail 31F1 KATAKANA LETTER SMALL SI may appear at line start if de and normal+Fail 31F2 KATAKANA LETTER SMALL SU may appear at line start if de and normal+Fail 31F3 KATAKANA LETTER SMALL TO may appear at line start if de and normal+Fail 31F4 KATAKANA LETTER SMALL NU may appear at line start if de and normal+Fail 31F5 KATAKANA LETTER SMALL HA may appear at line start if de and normal+Fail 31F6 KATAKANA LETTER SMALL HI may appear at line start if de and normal+Fail 31F7 KATAKANA LETTER SMALL HU may appear at line start if de and normal+Fail 31F8 KATAKANA LETTER SMALL HE may appear at line start if de and normal+Fail 31F9 KATAKANA LETTER SMALL HO may appear at line start if de and normal+Fail 31FA KATAKANA LETTER SMALL MU may appear at line start if de and normal+Fail 31FB KATAKANA LETTER SMALL RA may appear at line start if de and normal+Fail 31FC KATAKANA LETTER SMALL RI may appear at line start if de and normal+Fail 31FD KATAKANA LETTER SMALL RU may appear at line start if de and normal+Fail 31FE KATAKANA LETTER SMALL RE may appear at line start if de and normal+Fail 31FF KATAKANA LETTER SMALL RO may appear at line start if de and normal+Fail FF67 HALFWIDTH KATAKANA LETTER SMALL A may appear at line start if de and normal+Fail FF68 HALFWIDTH KATAKANA LETTER SMALL I may appear at line start if de and normal+Fail FF69 HALFWIDTH KATAKANA LETTER SMALL U may appear at line start if de and normal+Fail FF6A HALFWIDTH KATAKANA LETTER SMALL E may appear at line start if de and normal+Fail FF6B HALFWIDTH KATAKANA LETTER SMALL O may appear at line start if de and normal+Fail FF6C HALFWIDTH KATAKANA LETTER SMALL YA may appear at line start if de and normal+Fail FF6D HALFWIDTH KATAKANA LETTER SMALL YU may appear at line start if de and normal+Fail FF6E HALFWIDTH KATAKANA LETTER SMALL YO may appear at line start if de and normal+Fail FF6F HALFWIDTH KATAKANA LETTER SMALL TU may appear at line start if de and normal+Fail FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK may appear at line start if de and normal\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-strict.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-strict.txtnew file mode 100644index 00000000000..6932babefeb--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-strict.txt@@ -0,0 +1,56 @@+Harness status: OK++Found 51 tests++51 Pass+Pass 3041 HIRAGANA LETTER SMALL A may NOT appear at line start if de and strict+Pass 3043 HIRAGANA LETTER SMALL I may NOT appear at line start if de and strict+Pass 3045 HIRAGANA LETTER SMALL U may NOT appear at line start if de and strict+Pass 3047 HIRAGANA LETTER SMALL E may NOT appear at line start if de and strict+Pass 3049 HIRAGANA LETTER SMALL O may NOT appear at line start if de and strict+Pass 3063 HIRAGANA LETTER SMALL TU may NOT appear at line start if de and strict+Pass 3083 HIRAGANA LETTER SMALL YA may NOT appear at line start if de and strict+Pass 3085 HIRAGANA LETTER SMALL YU may NOT appear at line start if de and strict+Pass 3087 HIRAGANA LETTER SMALL YO may NOT appear at line start if de and strict+Pass 308E HIRAGANA LETTER SMALL WA may NOT appear at line start if de and strict+Pass 3095 HIRAGANA LETTER SMALL KA may NOT appear at line start if de and strict+Pass 3096 HIRAGANA LETTER SMALL KE may NOT appear at line start if de and strict+Pass 30A1 KATAKANA LETTER SMALL A may NOT appear at line start if de and strict+Pass 30A3 KATAKANA LETTER SMALL I may NOT appear at line start if de and strict+Pass 30A5 KATAKANA LETTER SMALL U may NOT appear at line start if de and strict+Pass 30A7 KATAKANA LETTER SMALL E may NOT appear at line start if de and strict+Pass 30A9 KATAKANA LETTER SMALL O may NOT appear at line start if de and strict+Pass 30C3 KATAKANA LETTER SMALL TU may NOT appear at line start if de and strict+Pass 30E3 KATAKANA LETTER SMALL YA may NOT appear at line start if de and strict+Pass 30E5 KATAKANA LETTER SMALL YU may NOT appear at line start if de and strict+Pass 30E7 KATAKANA LETTER SMALL YO may NOT appear at line start if de and strict+Pass 30EE KATAKANA LETTER SMALL WA may NOT appear at line start if de and strict+Pass 30F5 KATAKANA LETTER SMALL KA may NOT appear at line start if de and strict+Pass 30F6 KATAKANA LETTER SMALL KE may NOT appear at line start if de and strict+Pass 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK may NOT appear at line start if de and strict+Pass 31F0 KATAKANA LETTER SMALL KU may NOT appear at line start if de and strict+Pass 31F1 KATAKANA LETTER SMALL SI may NOT appear at line start if de and strict+Pass 31F2 KATAKANA LETTER SMALL SU may NOT appear at line start if de and strict+Pass 31F3 KATAKANA LETTER SMALL TO may NOT appear at line start if de and strict+Pass 31F4 KATAKANA LETTER SMALL NU may NOT appear at line start if de and strict+Pass 31F5 KATAKANA LETTER SMALL HA may NOT appear at line start if de and strict+Pass 31F6 KATAKANA LETTER SMALL HI may NOT appear at line start if de and strict+Pass 31F7 KATAKANA LETTER SMALL HU may NOT appear at line start if de and strict+Pass 31F8 KATAKANA LETTER SMALL HE may NOT appear at line start if de and strict+Pass 31F9 KATAKANA LETTER SMALL HO may NOT appear at line start if de and strict+Pass 31FA KATAKANA LETTER SMALL MU may NOT appear at line start if de and strict+Pass 31FB KATAKANA LETTER SMALL RA may NOT appear at line start if de and strict+Pass 31FC KATAKANA LETTER SMALL RI may NOT appear at line start if de and strict+Pass 31FD KATAKANA LETTER SMALL RU may NOT appear at line start if de and strict+Pass 31FE KATAKANA LETTER SMALL RE may NOT appear at line start if de and strict+Pass 31FF KATAKANA LETTER SMALL RO may NOT appear at line start if de and strict+Pass FF67 HALFWIDTH KATAKANA LETTER SMALL A may NOT appear at line start if de and strict+Pass FF68 HALFWIDTH KATAKANA LETTER SMALL I may NOT appear at line start if de and strict+Pass FF69 HALFWIDTH KATAKANA LETTER SMALL U may NOT appear at line start if de and strict+Pass FF6A HALFWIDTH KATAKANA LETTER SMALL E may NOT appear at line start if de and strict+Pass FF6B HALFWIDTH KATAKANA LETTER SMALL O may NOT appear at line start if de and strict+Pass FF6C HALFWIDTH KATAKANA LETTER SMALL YA may NOT appear at line start if de and strict+Pass FF6D HALFWIDTH KATAKANA LETTER SMALL YU may NOT appear at line start if de and strict+Pass FF6E HALFWIDTH KATAKANA LETTER SMALL YO may NOT appear at line start if de and strict+Pass FF6F HALFWIDTH KATAKANA LETTER SMALL TU may NOT appear at line start if de and strict+Pass FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK may NOT appear at line start if de and strict\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-loose.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-loose.txtnew file mode 100644index 00000000000..95609b4a8b3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-loose.txt@@ -0,0 +1,56 @@+Harness status: OK++Found 51 tests++51 Fail+Fail 3041 HIRAGANA LETTER SMALL A may appear at line start if loose+Fail 3043 HIRAGANA LETTER SMALL I may appear at line start if loose+Fail 3045 HIRAGANA LETTER SMALL U may appear at line start if loose+Fail 3047 HIRAGANA LETTER SMALL E may appear at line start if loose+Fail 3049 HIRAGANA LETTER SMALL O may appear at line start if loose+Fail 3063 HIRAGANA LETTER SMALL TU may appear at line start if loose+Fail 3083 HIRAGANA LETTER SMALL YA may appear at line start if loose+Fail 3085 HIRAGANA LETTER SMALL YU may appear at line start if loose+Fail 3087 HIRAGANA LETTER SMALL YO may appear at line start if loose+Fail 308E HIRAGANA LETTER SMALL WA may appear at line start if loose+Fail 3095 HIRAGANA LETTER SMALL KA may appear at line start if loose+Fail 3096 HIRAGANA LETTER SMALL KE may appear at line start if loose+Fail 30A1 KATAKANA LETTER SMALL A may appear at line start if loose+Fail 30A3 KATAKANA LETTER SMALL I may appear at line start if loose+Fail 30A5 KATAKANA LETTER SMALL U may appear at line start if loose+Fail 30A7 KATAKANA LETTER SMALL E may appear at line start if loose+Fail 30A9 KATAKANA LETTER SMALL O may appear at line start if loose+Fail 30C3 KATAKANA LETTER SMALL TU may appear at line start if loose+Fail 30E3 KATAKANA LETTER SMALL YA may appear at line start if loose+Fail 30E5 KATAKANA LETTER SMALL YU may appear at line start if loose+Fail 30E7 KATAKANA LETTER SMALL YO may appear at line start if loose+Fail 30EE KATAKANA LETTER SMALL WA may appear at line start if loose+Fail 30F5 KATAKANA LETTER SMALL KA may appear at line start if loose+Fail 30F6 KATAKANA LETTER SMALL KE may appear at line start if loose+Fail 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK may appear at line start if loose+Fail 31F0 KATAKANA LETTER SMALL KU may appear at line start if loose+Fail 31F1 KATAKANA LETTER SMALL SI may appear at line start if loose+Fail 31F2 KATAKANA LETTER SMALL SU may appear at line start if loose+Fail 31F3 KATAKANA LETTER SMALL TO may appear at line start if loose+Fail 31F4 KATAKANA LETTER SMALL NU may appear at line start if loose+Fail 31F5 KATAKANA LETTER SMALL HA may appear at line start if loose+Fail 31F6 KATAKANA LETTER SMALL HI may appear at line start if loose+Fail 31F7 KATAKANA LETTER SMALL HU may appear at line start if loose+Fail 31F8 KATAKANA LETTER SMALL HE may appear at line start if loose+Fail 31F9 KATAKANA LETTER SMALL HO may appear at line start if loose+Fail 31FA KATAKANA LETTER SMALL MU may appear at line start if loose+Fail 31FB KATAKANA LETTER SMALL RA may appear at line start if loose+Fail 31FC KATAKANA LETTER SMALL RI may appear at line start if loose+Fail 31FD KATAKANA LETTER SMALL RU may appear at line start if loose+Fail 31FE KATAKANA LETTER SMALL RE may appear at line start if loose+Fail 31FF KATAKANA LETTER SMALL RO may appear at line start if loose+Fail FF67 HALFWIDTH KATAKANA LETTER SMALL A may appear at line start if loose+Fail FF68 HALFWIDTH KATAKANA LETTER SMALL I may appear at line start if loose+Fail FF69 HALFWIDTH KATAKANA LETTER SMALL U may appear at line start if loose+Fail FF6A HALFWIDTH KATAKANA LETTER SMALL E may appear at line start if loose+Fail FF6B HALFWIDTH KATAKANA LETTER SMALL O may appear at line start if loose+Fail FF6C HALFWIDTH KATAKANA LETTER SMALL YA may appear at line start if loose+Fail FF6D HALFWIDTH KATAKANA LETTER SMALL YU may appear at line start if loose+Fail FF6E HALFWIDTH KATAKANA LETTER SMALL YO may appear at line start if loose+Fail FF6F HALFWIDTH KATAKANA LETTER SMALL TU may appear at line start if loose+Fail FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK may appear at line start if loose\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-normal.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-normal.txtnew file mode 100644index 00000000000..2553e5c6f6e--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-normal.txt@@ -0,0 +1,56 @@+Harness status: OK++Found 51 tests++51 Fail+Fail 3041 HIRAGANA LETTER SMALL A may appear at line start if normal+Fail 3043 HIRAGANA LETTER SMALL I may appear at line start if normal+Fail 3045 HIRAGANA LETTER SMALL U may appear at line start if normal+Fail 3047 HIRAGANA LETTER SMALL E may appear at line start if normal+Fail 3049 HIRAGANA LETTER SMALL O may appear at line start if normal+Fail 3063 HIRAGANA LETTER SMALL TU may appear at line start if normal+Fail 3083 HIRAGANA LETTER SMALL YA may appear at line start if normal+Fail 3085 HIRAGANA LETTER SMALL YU may appear at line start if normal+Fail 3087 HIRAGANA LETTER SMALL YO may appear at line start if normal+Fail 308E HIRAGANA LETTER SMALL WA may appear at line start if normal+Fail 3095 HIRAGANA LETTER SMALL KA may appear at line start if normal+Fail 3096 HIRAGANA LETTER SMALL KE may appear at line start if normal+Fail 30A1 KATAKANA LETTER SMALL A may appear at line start if normal+Fail 30A3 KATAKANA LETTER SMALL I may appear at line start if normal+Fail 30A5 KATAKANA LETTER SMALL U may appear at line start if normal+Fail 30A7 KATAKANA LETTER SMALL E may appear at line start if normal+Fail 30A9 KATAKANA LETTER SMALL O may appear at line start if normal+Fail 30C3 KATAKANA LETTER SMALL TU may appear at line start if normal+Fail 30E3 KATAKANA LETTER SMALL YA may appear at line start if normal+Fail 30E5 KATAKANA LETTER SMALL YU may appear at line start if normal+Fail 30E7 KATAKANA LETTER SMALL YO may appear at line start if normal+Fail 30EE KATAKANA LETTER SMALL WA may appear at line start if normal+Fail 30F5 KATAKANA LETTER SMALL KA may appear at line start if normal+Fail 30F6 KATAKANA LETTER SMALL KE may appear at line start if normal+Fail 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK may appear at line start if normal+Fail 31F0 KATAKANA LETTER SMALL KU may appear at line start if normal+Fail 31F1 KATAKANA LETTER SMALL SI may appear at line start if normal+Fail 31F2 KATAKANA LETTER SMALL SU may appear at line start if normal+Fail 31F3 KATAKANA LETTER SMALL TO may appear at line start if normal+Fail 31F4 KATAKANA LETTER SMALL NU may appear at line start if normal+Fail 31F5 KATAKANA LETTER SMALL HA may appear at line start if normal+Fail 31F6 KATAKANA LETTER SMALL HI may appear at line start if normal+Fail 31F7 KATAKANA LETTER SMALL HU may appear at line start if normal+Fail 31F8 KATAKANA LETTER SMALL HE may appear at line start if normal+Fail 31F9 KATAKANA LETTER SMALL HO may appear at line start if normal+Fail 31FA KATAKANA LETTER SMALL MU may appear at line start if normal+Fail 31FB KATAKANA LETTER SMALL RA may appear at line start if normal+Fail 31FC KATAKANA LETTER SMALL RI may appear at line start if normal+Fail 31FD KATAKANA LETTER SMALL RU may appear at line start if normal+Fail 31FE KATAKANA LETTER SMALL RE may appear at line start if normal+Fail 31FF KATAKANA LETTER SMALL RO may appear at line start if normal+Fail FF67 HALFWIDTH KATAKANA LETTER SMALL A may appear at line start if normal+Fail FF68 HALFWIDTH KATAKANA LETTER SMALL I may appear at line start if normal+Fail FF69 HALFWIDTH KATAKANA LETTER SMALL U may appear at line start if normal+Fail FF6A HALFWIDTH KATAKANA LETTER SMALL E may appear at line start if normal+Fail FF6B HALFWIDTH KATAKANA LETTER SMALL O may appear at line start if normal+Fail FF6C HALFWIDTH KATAKANA LETTER SMALL YA may appear at line start if normal+Fail FF6D HALFWIDTH KATAKANA LETTER SMALL YU may appear at line start if normal+Fail FF6E HALFWIDTH KATAKANA LETTER SMALL YO may appear at line start if normal+Fail FF6F HALFWIDTH KATAKANA LETTER SMALL TU may appear at line start if normal+Fail FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK may appear at line start if normal\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-strict.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-strict.txtnew file mode 100644index 00000000000..52a69db047e--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-strict.txt@@ -0,0 +1,56 @@+Harness status: OK++Found 51 tests++51 Pass+Pass 3041 HIRAGANA LETTER SMALL A may NOT appear at line start if strict+Pass 3043 HIRAGANA LETTER SMALL I may NOT appear at line start if strict+Pass 3045 HIRAGANA LETTER SMALL U may NOT appear at line start if strict+Pass 3047 HIRAGANA LETTER SMALL E may NOT appear at line start if strict+Pass 3049 HIRAGANA LETTER SMALL O may NOT appear at line start if strict+Pass 3063 HIRAGANA LETTER SMALL TU may NOT appear at line start if strict+Pass 3083 HIRAGANA LETTER SMALL YA may NOT appear at line start if strict+Pass 3085 HIRAGANA LETTER SMALL YU may NOT appear at line start if strict+Pass 3087 HIRAGANA LETTER SMALL YO may NOT appear at line start if strict+Pass 308E HIRAGANA LETTER SMALL WA may NOT appear at line start if strict+Pass 3095 HIRAGANA LETTER SMALL KA may NOT appear at line start if strict+Pass 3096 HIRAGANA LETTER SMALL KE may NOT appear at line start if strict+Pass 30A1 KATAKANA LETTER SMALL A may NOT appear at line start if strict+Pass 30A3 KATAKANA LETTER SMALL I may NOT appear at line start if strict+Pass 30A5 KATAKANA LETTER SMALL U may NOT appear at line start if strict+Pass 30A7 KATAKANA LETTER SMALL E may NOT appear at line start if strict+Pass 30A9 KATAKANA LETTER SMALL O may NOT appear at line start if strict+Pass 30C3 KATAKANA LETTER SMALL TU may NOT appear at line start if strict+Pass 30E3 KATAKANA LETTER SMALL YA may NOT appear at line start if strict+Pass 30E5 KATAKANA LETTER SMALL YU may NOT appear at line start if strict+Pass 30E7 KATAKANA LETTER SMALL YO may NOT appear at line start if strict+Pass 30EE KATAKANA LETTER SMALL WA may NOT appear at line start if strict+Pass 30F5 KATAKANA LETTER SMALL KA may NOT appear at line start if strict+Pass 30F6 KATAKANA LETTER SMALL KE may NOT appear at line start if strict+Pass 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK may NOT appear at line start if strict+Pass 31F0 KATAKANA LETTER SMALL KU may NOT appear at line start if strict+Pass 31F1 KATAKANA LETTER SMALL SI may NOT appear at line start if strict+Pass 31F2 KATAKANA LETTER SMALL SU may NOT appear at line start if strict+Pass 31F3 KATAKANA LETTER SMALL TO may NOT appear at line start if strict+Pass 31F4 KATAKANA LETTER SMALL NU may NOT appear at line start if strict+Pass 31F5 KATAKANA LETTER SMALL HA may NOT appear at line start if strict+Pass 31F6 KATAKANA LETTER SMALL HI may NOT appear at line start if strict+Pass 31F7 KATAKANA LETTER SMALL HU may NOT appear at line start if strict+Pass 31F8 KATAKANA LETTER SMALL HE may NOT appear at line start if strict+Pass 31F9 KATAKANA LETTER SMALL HO may NOT appear at line start if strict+Pass 31FA KATAKANA LETTER SMALL MU may NOT appear at line start if strict+Pass 31FB KATAKANA LETTER SMALL RA may NOT appear at line start if strict+Pass 31FC KATAKANA LETTER SMALL RI may NOT appear at line start if strict+Pass 31FD KATAKANA LETTER SMALL RU may NOT appear at line start if strict+Pass 31FE KATAKANA LETTER SMALL RE may NOT appear at line start if strict+Pass 31FF KATAKANA LETTER SMALL RO may NOT appear at line start if strict+Pass FF67 HALFWIDTH KATAKANA LETTER SMALL A may NOT appear at line start if strict+Pass FF68 HALFWIDTH KATAKANA LETTER SMALL I may NOT appear at line start if strict+Pass FF69 HALFWIDTH KATAKANA LETTER SMALL U may NOT appear at line start if strict+Pass FF6A HALFWIDTH KATAKANA LETTER SMALL E may NOT appear at line start if strict+Pass FF6B HALFWIDTH KATAKANA LETTER SMALL O may NOT appear at line start if strict+Pass FF6C HALFWIDTH KATAKANA LETTER SMALL YA may NOT appear at line start if strict+Pass FF6D HALFWIDTH KATAKANA LETTER SMALL YU may NOT appear at line start if strict+Pass FF6E HALFWIDTH KATAKANA LETTER SMALL YO may NOT appear at line start if strict+Pass FF6F HALFWIDTH KATAKANA LETTER SMALL TU may NOT appear at line start if strict+Pass FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK may NOT appear at line start if strict\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-loose.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-loose.txtnew file mode 100644index 00000000000..499684feaf4--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-loose.txt@@ -0,0 +1,56 @@+Harness status: OK++Found 51 tests++51 Fail+Fail 3041 HIRAGANA LETTER SMALL A may appear at line start if zh and loose+Fail 3043 HIRAGANA LETTER SMALL I may appear at line start if zh and loose+Fail 3045 HIRAGANA LETTER SMALL U may appear at line start if zh and loose+Fail 3047 HIRAGANA LETTER SMALL E may appear at line start if zh and loose+Fail 3049 HIRAGANA LETTER SMALL O may appear at line start if zh and loose+Fail 3063 HIRAGANA LETTER SMALL TU may appear at line start if zh and loose+Fail 3083 HIRAGANA LETTER SMALL YA may appear at line start if zh and loose+Fail 3085 HIRAGANA LETTER SMALL YU may appear at line start if zh and loose+Fail 3087 HIRAGANA LETTER SMALL YO may appear at line start if zh and loose+Fail 308E HIRAGANA LETTER SMALL WA may appear at line start if zh and loose+Fail 3095 HIRAGANA LETTER SMALL KA may appear at line start if zh and loose+Fail 3096 HIRAGANA LETTER SMALL KE may appear at line start if zh and loose+Fail 30A1 KATAKANA LETTER SMALL A may appear at line start if zh and loose+Fail 30A3 KATAKANA LETTER SMALL I may appear at line start if zh and loose+Fail 30A5 KATAKANA LETTER SMALL U may appear at line start if zh and loose+Fail 30A7 KATAKANA LETTER SMALL E may appear at line start if zh and loose+Fail 30A9 KATAKANA LETTER SMALL O may appear at line start if zh and loose+Fail 30C3 KATAKANA LETTER SMALL TU may appear at line start if zh and loose+Fail 30E3 KATAKANA LETTER SMALL YA may appear at line start if zh and loose+Fail 30E5 KATAKANA LETTER SMALL YU may appear at line start if zh and loose+Fail 30E7 KATAKANA LETTER SMALL YO may appear at line start if zh and loose+Fail 30EE KATAKANA LETTER SMALL WA may appear at line start if zh and loose+Fail 30F5 KATAKANA LETTER SMALL KA may appear at line start if zh and loose+Fail 30F6 KATAKANA LETTER SMALL KE may appear at line start if zh and loose+Fail 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK may appear at line start if zh and loose+Fail 31F0 KATAKANA LETTER SMALL KU may appear at line start if zh and loose+Fail 31F1 KATAKANA LETTER SMALL SI may appear at line start if zh and loose+Fail 31F2 KATAKANA LETTER SMALL SU may appear at line start if zh and loose+Fail 31F3 KATAKANA LETTER SMALL TO may appear at line start if zh and loose+Fail 31F4 KATAKANA LETTER SMALL NU may appear at line start if zh and loose+Fail 31F5 KATAKANA LETTER SMALL HA may appear at line start if zh and loose+Fail 31F6 KATAKANA LETTER SMALL HI may appear at line start if zh and loose+Fail 31F7 KATAKANA LETTER SMALL HU may appear at line start if zh and loose+Fail 31F8 KATAKANA LETTER SMALL HE may appear at line start if zh and loose+Fail 31F9 KATAKANA LETTER SMALL HO may appear at line start if zh and loose+Fail 31FA KATAKANA LETTER SMALL MU may appear at line start if zh and loose+Fail 31FB KATAKANA LETTER SMALL RA may appear at line start if zh and loose+Fail 31FC KATAKANA LETTER SMALL RI may appear at line start if zh and loose+Fail 31FD KATAKANA LETTER SMALL RU may appear at line start if zh and loose+Fail 31FE KATAKANA LETTER SMALL RE may appear at line start if zh and loose+Fail 31FF KATAKANA LETTER SMALL RO may appear at line start if zh and loose+Fail FF67 HALFWIDTH KATAKANA LETTER SMALL A may appear at line start if zh and loose+Fail FF68 HALFWIDTH KATAKANA LETTER SMALL I may appear at line start if zh and loose+Fail FF69 HALFWIDTH KATAKANA LETTER SMALL U may appear at line start if zh and loose+Fail FF6A HALFWIDTH KATAKANA LETTER SMALL E may appear at line start if zh and loose+Fail FF6B HALFWIDTH KATAKANA LETTER SMALL O may appear at line start if zh and loose+Fail FF6C HALFWIDTH KATAKANA LETTER SMALL YA may appear at line start if zh and loose+Fail FF6D HALFWIDTH KATAKANA LETTER SMALL YU may appear at line start if zh and loose+Fail FF6E HALFWIDTH KATAKANA LETTER SMALL YO may appear at line start if zh and loose+Fail FF6F HALFWIDTH KATAKANA LETTER SMALL TU may appear at line start if zh and loose+Fail FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK may appear at line start if zh and loose\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-normal.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-normal.txtnew file mode 100644index 00000000000..8b2bc419166--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-normal.txt@@ -0,0 +1,56 @@+Harness status: OK++Found 51 tests++51 Fail+Fail 3041 HIRAGANA LETTER SMALL A may appear at line start if zh and normal+Fail 3043 HIRAGANA LETTER SMALL I may appear at line start if zh and normal+Fail 3045 HIRAGANA LETTER SMALL U may appear at line start if zh and normal+Fail 3047 HIRAGANA LETTER SMALL E may appear at line start if zh and normal+Fail 3049 HIRAGANA LETTER SMALL O may appear at line start if zh and normal+Fail 3063 HIRAGANA LETTER SMALL TU may appear at line start if zh and normal+Fail 3083 HIRAGANA LETTER SMALL YA may appear at line start if zh and normal+Fail 3085 HIRAGANA LETTER SMALL YU may appear at line start if zh and normal+Fail 3087 HIRAGANA LETTER SMALL YO may appear at line start if zh and normal+Fail 308E HIRAGANA LETTER SMALL WA may appear at line start if zh and normal+Fail 3095 HIRAGANA LETTER SMALL KA may appear at line start if zh and normal+Fail 3096 HIRAGANA LETTER SMALL KE may appear at line start if zh and normal+Fail 30A1 KATAKANA LETTER SMALL A may appear at line start if zh and normal+Fail 30A3 KATAKANA LETTER SMALL I may appear at line start if zh and normal+Fail 30A5 KATAKANA LETTER SMALL U may appear at line start if zh and normal+Fail 30A7 KATAKANA LETTER SMALL E may appear at line start if zh and normal+Fail 30A9 KATAKANA LETTER SMALL O may appear at line start if zh and normal+Fail 30C3 KATAKANA LETTER SMALL TU may appear at line start if zh and normal+Fail 30E3 KATAKANA LETTER SMALL YA may appear at line start if zh and normal+Fail 30E5 KATAKANA LETTER SMALL YU may appear at line start if zh and normal+Fail 30E7 KATAKANA LETTER SMALL YO may appear at line start if zh and normal+Fail 30EE KATAKANA LETTER SMALL WA may appear at line start if zh and normal+Fail 30F5 KATAKANA LETTER SMALL KA may appear at line start if zh and normal+Fail 30F6 KATAKANA LETTER SMALL KE may appear at line start if zh and normal+Fail 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK may appear at line start if zh and normal+Fail 31F0 KATAKANA LETTER SMALL KU may appear at line start if zh and normal+Fail 31F1 KATAKANA LETTER SMALL SI may appear at line start if zh and normal+Fail 31F2 KATAKANA LETTER SMALL SU may appear at line start if zh and normal+Fail 31F3 KATAKANA LETTER SMALL TO may appear at line start if zh and normal+Fail 31F4 KATAKANA LETTER SMALL NU may appear at line start if zh and normal+Fail 31F5 KATAKANA LETTER SMALL HA may appear at line start if zh and normal+Fail 31F6 KATAKANA LETTER SMALL HI may appear at line start if zh and normal+Fail 31F7 KATAKANA LETTER SMALL HU may appear at line start if zh and normal+Fail 31F8 KATAKANA LETTER SMALL HE may appear at line start if zh and normal+Fail 31F9 KATAKANA LETTER SMALL HO may appear at line start if zh and normal+Fail 31FA KATAKANA LETTER SMALL MU may appear at line start if zh and normal+Fail 31FB KATAKANA LETTER SMALL RA may appear at line start if zh and normal+Fail 31FC KATAKANA LETTER SMALL RI may appear at line start if zh and normal+Fail 31FD KATAKANA LETTER SMALL RU may appear at line start if zh and normal+Fail 31FE KATAKANA LETTER SMALL RE may appear at line start if zh and normal+Fail 31FF KATAKANA LETTER SMALL RO may appear at line start if zh and normal+Fail FF67 HALFWIDTH KATAKANA LETTER SMALL A may appear at line start if zh and normal+Fail FF68 HALFWIDTH KATAKANA LETTER SMALL I may appear at line start if zh and normal+Fail FF69 HALFWIDTH KATAKANA LETTER SMALL U may appear at line start if zh and normal+Fail FF6A HALFWIDTH KATAKANA LETTER SMALL E may appear at line start if zh and normal+Fail FF6B HALFWIDTH KATAKANA LETTER SMALL O may appear at line start if zh and normal+Fail FF6C HALFWIDTH KATAKANA LETTER SMALL YA may appear at line start if zh and normal+Fail FF6D HALFWIDTH KATAKANA LETTER SMALL YU may appear at line start if zh and normal+Fail FF6E HALFWIDTH KATAKANA LETTER SMALL YO may appear at line start if zh and normal+Fail FF6F HALFWIDTH KATAKANA LETTER SMALL TU may appear at line start if zh and normal+Fail FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK may appear at line start if zh and normal\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-strict.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-strict.txtnew file mode 100644index 00000000000..496aad2e7bb--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-strict.txt@@ -0,0 +1,56 @@+Harness status: OK++Found 51 tests++51 Pass+Pass 3041 HIRAGANA LETTER SMALL A may NOT appear at line start if zh and strict+Pass 3043 HIRAGANA LETTER SMALL I may NOT appear at line start if zh and strict+Pass 3045 HIRAGANA LETTER SMALL U may NOT appear at line start if zh and strict+Pass 3047 HIRAGANA LETTER SMALL E may NOT appear at line start if zh and strict+Pass 3049 HIRAGANA LETTER SMALL O may NOT appear at line start if zh and strict+Pass 3063 HIRAGANA LETTER SMALL TU may NOT appear at line start if zh and strict+Pass 3083 HIRAGANA LETTER SMALL YA may NOT appear at line start if zh and strict+Pass 3085 HIRAGANA LETTER SMALL YU may NOT appear at line start if zh and strict+Pass 3087 HIRAGANA LETTER SMALL YO may NOT appear at line start if zh and strict+Pass 308E HIRAGANA LETTER SMALL WA may NOT appear at line start if zh and strict+Pass 3095 HIRAGANA LETTER SMALL KA may NOT appear at line start if zh and strict+Pass 3096 HIRAGANA LETTER SMALL KE may NOT appear at line start if zh and strict+Pass 30A1 KATAKANA LETTER SMALL A may NOT appear at line start if zh and strict+Pass 30A3 KATAKANA LETTER SMALL I may NOT appear at line start if zh and strict+Pass 30A5 KATAKANA LETTER SMALL U may NOT appear at line start if zh and strict+Pass 30A7 KATAKANA LETTER SMALL E may NOT appear at line start if zh and strict+Pass 30A9 KATAKANA LETTER SMALL O may NOT appear at line start if zh and strict+Pass 30C3 KATAKANA LETTER SMALL TU may NOT appear at line start if zh and strict+Pass 30E3 KATAKANA LETTER SMALL YA may NOT appear at line start if zh and strict+Pass 30E5 KATAKANA LETTER SMALL YU may NOT appear at line start if zh and strict+Pass 30E7 KATAKANA LETTER SMALL YO may NOT appear at line start if zh and strict+Pass 30EE KATAKANA LETTER SMALL WA may NOT appear at line start if zh and strict+Pass 30F5 KATAKANA LETTER SMALL KA may NOT appear at line start if zh and strict+Pass 30F6 KATAKANA LETTER SMALL KE may NOT appear at line start if zh and strict+Pass 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK may NOT appear at line start if zh and strict+Pass 31F0 KATAKANA LETTER SMALL KU may NOT appear at line start if zh and strict+Pass 31F1 KATAKANA LETTER SMALL SI may NOT appear at line start if zh and strict+Pass 31F2 KATAKANA LETTER SMALL SU may NOT appear at line start if zh and strict+Pass 31F3 KATAKANA LETTER SMALL TO may NOT appear at line start if zh and strict+Pass 31F4 KATAKANA LETTER SMALL NU may NOT appear at line start if zh and strict+Pass 31F5 KATAKANA LETTER SMALL HA may NOT appear at line start if zh and strict+Pass 31F6 KATAKANA LETTER SMALL HI may NOT appear at line start if zh and strict+Pass 31F7 KATAKANA LETTER SMALL HU may NOT appear at line start if zh and strict+Pass 31F8 KATAKANA LETTER SMALL HE may NOT appear at line start if zh and strict+Pass 31F9 KATAKANA LETTER SMALL HO may NOT appear at line start if zh and strict+Pass 31FA KATAKANA LETTER SMALL MU may NOT appear at line start if zh and strict+Pass 31FB KATAKANA LETTER SMALL RA may NOT appear at line start if zh and strict+Pass 31FC KATAKANA LETTER SMALL RI may NOT appear at line start if zh and strict+Pass 31FD KATAKANA LETTER SMALL RU may NOT appear at line start if zh and strict+Pass 31FE KATAKANA LETTER SMALL RE may NOT appear at line start if zh and strict+Pass 31FF KATAKANA LETTER SMALL RO may NOT appear at line start if zh and strict+Pass FF67 HALFWIDTH KATAKANA LETTER SMALL A may NOT appear at line start if zh and strict+Pass FF68 HALFWIDTH KATAKANA LETTER SMALL I may NOT appear at line start if zh and strict+Pass FF69 HALFWIDTH KATAKANA LETTER SMALL U may NOT appear at line start if zh and strict+Pass FF6A HALFWIDTH KATAKANA LETTER SMALL E may NOT appear at line start if zh and strict+Pass FF6B HALFWIDTH KATAKANA LETTER SMALL O may NOT appear at line start if zh and strict+Pass FF6C HALFWIDTH KATAKANA LETTER SMALL YA may NOT appear at line start if zh and strict+Pass FF6D HALFWIDTH KATAKANA LETTER SMALL YU may NOT appear at line start if zh and strict+Pass FF6E HALFWIDTH KATAKANA LETTER SMALL YO may NOT appear at line start if zh and strict+Pass FF6F HALFWIDTH KATAKANA LETTER SMALL TU may NOT appear at line start if zh and strict+Pass FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK may NOT appear at line start if zh and strict\ No newline at end of filediff --git a/Tests/LibWeb/Text/input/CSS/line-break-cj-style-changes.html b/Tests/LibWeb/Text/input/CSS/line-break-cj-style-changes.htmlnew file mode 100644index 00000000000..c0be449a59a--- /dev/null+++ b/Tests/LibWeb/Text/input/CSS/line-break-cj-style-changes.html@@ -0,0 +1,39 @@+<!DOCTYPE html>+<script src="../include.js"></script>+<style>+ @font-face {+ font-family: TestKana;+ src: url("../wpt-import/fonts/mplus-1p-regular.woff");+ }+ .line {+ font: 30px / 1 TestKana;+ width: 185px;+ }+</style>+<div id="line-parent" style="line-break: strict"><div class="line" id="target">文文文文文文ぁ字<span id="marker">字</span></div></div>+<div class="line">文文文文文文<br>ぁ字<span id="reference">字</span></div>+<script>+ asyncTest(async done => {+ const container = document.getElementById("line-parent");+ const target = document.getElementById("target");+ const marker = document.getElementById("marker");+ const reference = document.getElementById("reference");+ await document.fonts.load("30px TestKana");+ const strictPosition = marker.getBoundingClientRect().left;+ const normalPosition = reference.getBoundingClientRect().left;++ container.style.lineBreak = "normal";+ println(`normal is inherited: ${getComputedStyle(target).lineBreak === "normal"}`);+ println(`normal allows a CJ line start: ${marker.getBoundingClientRect().left === normalPosition}`);++ container.style.lineBreak = "strict";+ println(`strict restores the original break: ${marker.getBoundingClientRect().left === strictPosition}`);++ container.style.lineBreak = "loose";+ println(`loose allows a CJ line start: ${marker.getBoundingClientRect().left === normalPosition}`);++ container.style.lineBreak = "auto";+ println(`auto restores the original break: ${marker.getBoundingClientRect().left === strictPosition}`);+ done();+ });+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-loose.html b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-loose.htmlnew file mode 100644index 00000000000..1e5d163d082--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-loose.html@@ -0,0 +1,117 @@+<!DOCTYPE html>+<html lang="en" >+<head>+<meta charset="utf-8"/>+<title>Line-break:loose, Conditional Japanese Starter (CJ) (ja)</title>+<link rel="author" title="Richard Ishida" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-property">+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<meta name="assert" content="The browser allows a conditional Japanese starter at the beginning of a line.">+<style type="text/css">+@font-face {+ font-family: 'mplus-1p-regular';+ src: url('../../../../fonts/mplus-1p-regular.woff') format('woff');+ }+#wrapper { position: relative; }+.test { color: red; }+.test, .ref { font-size: 30px; font-family: mplus-1p-regular, sans-serif; width: 185px; padding: 0; border: 1px solid orange; line-height: 1em; }+</style>+<style>+.test { line-break: loose; }+</style>+<script>+var charlist = `3041 HIRAGANA LETTER SMALL A+3043 HIRAGANA LETTER SMALL I+3045 HIRAGANA LETTER SMALL U+3047 HIRAGANA LETTER SMALL E+3049 HIRAGANA LETTER SMALL O+3063 HIRAGANA LETTER SMALL TU+3083 HIRAGANA LETTER SMALL YA+3085 HIRAGANA LETTER SMALL YU+3087 HIRAGANA LETTER SMALL YO+308E HIRAGANA LETTER SMALL WA+3095 HIRAGANA LETTER SMALL KA+3096 HIRAGANA LETTER SMALL KE+30A1 KATAKANA LETTER SMALL A+30A3 KATAKANA LETTER SMALL I+30A5 KATAKANA LETTER SMALL U+30A7 KATAKANA LETTER SMALL E+30A9 KATAKANA LETTER SMALL O+30C3 KATAKANA LETTER SMALL TU+30E3 KATAKANA LETTER SMALL YA+30E5 KATAKANA LETTER SMALL YU+30E7 KATAKANA LETTER SMALL YO+30EE KATAKANA LETTER SMALL WA+30F5 KATAKANA LETTER SMALL KA+30F6 KATAKANA LETTER SMALL KE+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK+31F0 KATAKANA LETTER SMALL KU+31F1 KATAKANA LETTER SMALL SI+31F2 KATAKANA LETTER SMALL SU+31F3 KATAKANA LETTER SMALL TO+31F4 KATAKANA LETTER SMALL NU+31F5 KATAKANA LETTER SMALL HA+31F6 KATAKANA LETTER SMALL HI+31F7 KATAKANA LETTER SMALL HU+31F8 KATAKANA LETTER SMALL HE+31F9 KATAKANA LETTER SMALL HO+31FA KATAKANA LETTER SMALL MU+31FB KATAKANA LETTER SMALL RA+31FC KATAKANA LETTER SMALL RI+31FD KATAKANA LETTER SMALL RU+31FE KATAKANA LETTER SMALL RE+31FF KATAKANA LETTER SMALL RO+FF67 HALFWIDTH KATAKANA LETTER SMALL A+FF68 HALFWIDTH KATAKANA LETTER SMALL I+FF69 HALFWIDTH KATAKANA LETTER SMALL U+FF6A HALFWIDTH KATAKANA LETTER SMALL E+FF6B HALFWIDTH KATAKANA LETTER SMALL O+FF6C HALFWIDTH KATAKANA LETTER SMALL YA+FF6D HALFWIDTH KATAKANA LETTER SMALL YU+FF6E HALFWIDTH KATAKANA LETTER SMALL YO+FF6F HALFWIDTH KATAKANA LETTER SMALL TU+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK`+</script>+</head>+<body>+<script>+var lines = charlist.split('\n')+var out = '<div id="log"></div>\n'+for (var i=0;i<lines.length;i++) {+ // get the data+ var firstSpace = lines[i].indexOf(' ')+ var hex = lines[i].substr(0,firstSpace)+ var name = lines[i].substr(firstSpace)+ // make a test+ out += '<div class="wrapper"><div>'+hex+'</div>' ++ '<div class="test" id="test'+i+'" lang="ja">文文文文文文&#x'+hex+';字<span id="testSpan'+i+'">字</span></div>' ++ '<div class="ref" id="ref'+i+'" lang="ja">文文文文文文<br/>&#x'+hex+';字<span id="refSpan'+i+'">字</span></div>' ++ '</div>'+ }++document.querySelector('body').innerHTML = out+setup({explicit_done: true});++document.fonts.ready.then(validate);++function validate() {+ for (i=0;i<lines.length;i++) {+ test(function() {+ assert_approx_equals(+ document.getElementById('testSpan'+i).getBoundingClientRect().left,+ document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);+ // Hide successful tests.+ document.getElementById('test'+i).parentNode.style.display = 'none';+ }, lines[i]+' may appear at line start if ja and loose');+ }+ done();+}+</script>+<!--Notes:+The test creates a box with room for 6 characters, causing wrapping to occur either between the 6th and the 7th character, or before the 6th if the breaks after the 6th or before the 7th are prohibited.++It also creates the expected behaviour with a ref instance, using <br/>. Each line ends with a span. The test then checks whether the left edge of the span is in the same place in test and ref instance.+-->+</body>+</html>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-normal.html b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-normal.htmlnew file mode 100644index 00000000000..8a957fde475--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-normal.html@@ -0,0 +1,117 @@+<!DOCTYPE html>+<html lang="en" >+<head>+<meta charset="utf-8"/>+<title>Line-break:normal, Conditional Japanese Starter (CJ) (ja)</title>+<link rel="author" title="Richard Ishida" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-property">+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<meta name="assert" content="The browser allows a conditional Japanese starter at the beginning of a line.">+<style type="text/css">+@font-face {+ font-family: 'mplus-1p-regular';+ src: url('../../../../fonts/mplus-1p-regular.woff') format('woff');+ }+#wrapper { position: relative; }+.test { color: red; }+.test, .ref { font-size: 30px; font-family: mplus-1p-regular, sans-serif; width: 185px; padding: 0; border: 1px solid orange; line-height: 1em; }+</style>+<style>+.test { line-break: normal; }+</style>+<script>+var charlist = `3041 HIRAGANA LETTER SMALL A+3043 HIRAGANA LETTER SMALL I+3045 HIRAGANA LETTER SMALL U+3047 HIRAGANA LETTER SMALL E+3049 HIRAGANA LETTER SMALL O+3063 HIRAGANA LETTER SMALL TU+3083 HIRAGANA LETTER SMALL YA+3085 HIRAGANA LETTER SMALL YU+3087 HIRAGANA LETTER SMALL YO+308E HIRAGANA LETTER SMALL WA+3095 HIRAGANA LETTER SMALL KA+3096 HIRAGANA LETTER SMALL KE+30A1 KATAKANA LETTER SMALL A+30A3 KATAKANA LETTER SMALL I+30A5 KATAKANA LETTER SMALL U+30A7 KATAKANA LETTER SMALL E+30A9 KATAKANA LETTER SMALL O+30C3 KATAKANA LETTER SMALL TU+30E3 KATAKANA LETTER SMALL YA+30E5 KATAKANA LETTER SMALL YU+30E7 KATAKANA LETTER SMALL YO+30EE KATAKANA LETTER SMALL WA+30F5 KATAKANA LETTER SMALL KA+30F6 KATAKANA LETTER SMALL KE+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK+31F0 KATAKANA LETTER SMALL KU+31F1 KATAKANA LETTER SMALL SI+31F2 KATAKANA LETTER SMALL SU+31F3 KATAKANA LETTER SMALL TO+31F4 KATAKANA LETTER SMALL NU+31F5 KATAKANA LETTER SMALL HA+31F6 KATAKANA LETTER SMALL HI+31F7 KATAKANA LETTER SMALL HU+31F8 KATAKANA LETTER SMALL HE+31F9 KATAKANA LETTER SMALL HO+31FA KATAKANA LETTER SMALL MU+31FB KATAKANA LETTER SMALL RA+31FC KATAKANA LETTER SMALL RI+31FD KATAKANA LETTER SMALL RU+31FE KATAKANA LETTER SMALL RE+31FF KATAKANA LETTER SMALL RO+FF67 HALFWIDTH KATAKANA LETTER SMALL A+FF68 HALFWIDTH KATAKANA LETTER SMALL I+FF69 HALFWIDTH KATAKANA LETTER SMALL U+FF6A HALFWIDTH KATAKANA LETTER SMALL E+FF6B HALFWIDTH KATAKANA LETTER SMALL O+FF6C HALFWIDTH KATAKANA LETTER SMALL YA+FF6D HALFWIDTH KATAKANA LETTER SMALL YU+FF6E HALFWIDTH KATAKANA LETTER SMALL YO+FF6F HALFWIDTH KATAKANA LETTER SMALL TU+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK`+</script>+</head>+<body>+<script>+var lines = charlist.split('\n')+var out = '<div id="log"></div>\n'+for (var i=0;i<lines.length;i++) {+ // get the data+ var firstSpace = lines[i].indexOf(' ')+ var hex = lines[i].substr(0,firstSpace)+ var name = lines[i].substr(firstSpace)+ // make a test+ out += '<div class="wrapper"><div>'+hex+'</div>' ++ '<div class="test" id="test'+i+'" lang="ja">文文文文文文&#x'+hex+';字<span id="testSpan'+i+'">字</span></div>' ++ '<div class="ref" id="ref'+i+'" lang="ja">文文文文文文<br/>&#x'+hex+';字<span id="refSpan'+i+'">字</span></div>' ++ '</div>'+ }++document.querySelector('body').innerHTML = out+setup({explicit_done: true});++document.fonts.ready.then(validate);++function validate() {+ for (i=0;i<lines.length;i++) {+ test(function() {+ assert_approx_equals(+ document.getElementById('testSpan'+i).getBoundingClientRect().left,+ document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);+ // Hide successful tests.+ document.getElementById('test'+i).parentNode.style.display = 'none';+ }, lines[i]+' may appear at line start if ja and normal');+ }+ done();+}+</script>+<!--Notes:+The test creates a box with room for 6 characters, causing wrapping to occur either between the 6th and the 7th character, or before the 6th if the breaks after the 6th or before the 7th are prohibited.++It also creates the expected behaviour with a ref instance, using <br/>. Each line ends with a span. The test then checks whether the left edge of the span is in the same place in test and ref instance.+-->+</body>+</html>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-strict.html b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-strict.htmlnew file mode 100644index 00000000000..b17d26075f9--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/ja/css-text-line-break-ja-cj-strict.html@@ -0,0 +1,117 @@+<!DOCTYPE html>+<html lang="en" >+<head>+<meta charset="utf-8"/>+<title>line-break:strict, Conditional Japanese Starter (CJ) (ja)</title>+<link rel="author" title="Richard Ishida" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-property">+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<meta name="assert" content="With line-break:strict, a browser will NOT allow a conditional Japanese starter at the beginning of a line.">+<style type="text/css">+@font-face {+ font-family: 'mplus-1p-regular';+ src: url('../../../../fonts/mplus-1p-regular.woff') format('woff');+ }+#wrapper { position: relative; }+.test { color: red; }+.test, .ref { font-size: 30px; font-family: mplus-1p-regular, sans-serif; width: 185px; padding: 0; border: 1px solid orange; line-height: 1em; }+</style>+<style>+.test { line-break: strict; }+</style>+<script>+var charlist = `3041 HIRAGANA LETTER SMALL A+3043 HIRAGANA LETTER SMALL I+3045 HIRAGANA LETTER SMALL U+3047 HIRAGANA LETTER SMALL E+3049 HIRAGANA LETTER SMALL O+3063 HIRAGANA LETTER SMALL TU+3083 HIRAGANA LETTER SMALL YA+3085 HIRAGANA LETTER SMALL YU+3087 HIRAGANA LETTER SMALL YO+308E HIRAGANA LETTER SMALL WA+3095 HIRAGANA LETTER SMALL KA+3096 HIRAGANA LETTER SMALL KE+30A1 KATAKANA LETTER SMALL A+30A3 KATAKANA LETTER SMALL I+30A5 KATAKANA LETTER SMALL U+30A7 KATAKANA LETTER SMALL E+30A9 KATAKANA LETTER SMALL O+30C3 KATAKANA LETTER SMALL TU+30E3 KATAKANA LETTER SMALL YA+30E5 KATAKANA LETTER SMALL YU+30E7 KATAKANA LETTER SMALL YO+30EE KATAKANA LETTER SMALL WA+30F5 KATAKANA LETTER SMALL KA+30F6 KATAKANA LETTER SMALL KE+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK+31F0 KATAKANA LETTER SMALL KU+31F1 KATAKANA LETTER SMALL SI+31F2 KATAKANA LETTER SMALL SU+31F3 KATAKANA LETTER SMALL TO+31F4 KATAKANA LETTER SMALL NU+31F5 KATAKANA LETTER SMALL HA+31F6 KATAKANA LETTER SMALL HI+31F7 KATAKANA LETTER SMALL HU+31F8 KATAKANA LETTER SMALL HE+31F9 KATAKANA LETTER SMALL HO+31FA KATAKANA LETTER SMALL MU+31FB KATAKANA LETTER SMALL RA+31FC KATAKANA LETTER SMALL RI+31FD KATAKANA LETTER SMALL RU+31FE KATAKANA LETTER SMALL RE+31FF KATAKANA LETTER SMALL RO+FF67 HALFWIDTH KATAKANA LETTER SMALL A+FF68 HALFWIDTH KATAKANA LETTER SMALL I+FF69 HALFWIDTH KATAKANA LETTER SMALL U+FF6A HALFWIDTH KATAKANA LETTER SMALL E+FF6B HALFWIDTH KATAKANA LETTER SMALL O+FF6C HALFWIDTH KATAKANA LETTER SMALL YA+FF6D HALFWIDTH KATAKANA LETTER SMALL YU+FF6E HALFWIDTH KATAKANA LETTER SMALL YO+FF6F HALFWIDTH KATAKANA LETTER SMALL TU+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK`+</script>+</head>+<body>+<script>+var lines = charlist.split('\n')+var out = '<div id="log"></div>\n'+for (var i=0;i<lines.length;i++) {+ // get the data+ var firstSpace = lines[i].indexOf(' ')+ var hex = lines[i].substr(0,firstSpace)+ var name = lines[i].substr(firstSpace)+ // make a test+ out += '<div class="wrapper"><div>'+hex+'</div>' ++ '<div class="test" id="test'+i+'" lang="ja">文文文文文文&#x'+hex+';字<span id="testSpan'+i+'">字</span></div>' ++ '<div class="ref" id="ref'+i+'" lang="ja">文文文文文<br/>文&#x'+hex+';字<span id="refSpan'+i+'">字</span></div>' ++ '</div>'+ }++document.querySelector('body').innerHTML = out+setup({explicit_done: true});++document.fonts.ready.then(validate);++function validate() {+ for (i=0;i<lines.length;i++) {+ test(function() {+ assert_approx_equals(+ document.getElementById('testSpan'+i).getBoundingClientRect().left,+ document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);+ // Hide successful tests.+ document.getElementById('test'+i).parentNode.style.display = 'none';+ }, lines[i]+' may NOT appear at line start if ja and strict');+ }+ done();+}+</script>+<!--Notes:+The test creates a box with room for 6 characters, causing wrapping to occur either between the 6th and the 7th character, or before the 6th if the breaks after the 6th or before the 7th are prohibited.++It also creates the expected behaviour with a ref instance, using <br/>. Each line ends with a span. The test then checks whether the left edge of the span is in the same place in test and ref instance.+-->+</body>+</html>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-loose.html b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-loose.htmlnew file mode 100644index 00000000000..a50caa906be--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-loose.html@@ -0,0 +1,117 @@+<!DOCTYPE html>+<html lang="en" >+<head>+<meta charset="utf-8"/>+<title>Line-break:loose, Conditional Japanese Starter (CJ) (de)</title>+<link rel="author" title="Richard Ishida" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-property">+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<meta name="assert" content="The browser allows a conditional Japanese starter at the beginning of a line; the language not being Chinese or Japanese makes no difference.">+<style type="text/css">+@font-face {+ font-family: 'mplus-1p-regular';+ src: url('../../../../fonts/mplus-1p-regular.woff') format('woff');+ }+#wrapper { position: relative; }+.test { color: red; }+.test, .ref { font-size: 30px; font-family: mplus-1p-regular, sans-serif; width: 185px; padding: 0; border: 1px solid orange; line-height: 1em; }+</style>+<style>+.test { line-break: loose; }+</style>+<script>+var charlist = `3041 HIRAGANA LETTER SMALL A+3043 HIRAGANA LETTER SMALL I+3045 HIRAGANA LETTER SMALL U+3047 HIRAGANA LETTER SMALL E+3049 HIRAGANA LETTER SMALL O+3063 HIRAGANA LETTER SMALL TU+3083 HIRAGANA LETTER SMALL YA+3085 HIRAGANA LETTER SMALL YU+3087 HIRAGANA LETTER SMALL YO+308E HIRAGANA LETTER SMALL WA+3095 HIRAGANA LETTER SMALL KA+3096 HIRAGANA LETTER SMALL KE+30A1 KATAKANA LETTER SMALL A+30A3 KATAKANA LETTER SMALL I+30A5 KATAKANA LETTER SMALL U+30A7 KATAKANA LETTER SMALL E+30A9 KATAKANA LETTER SMALL O+30C3 KATAKANA LETTER SMALL TU+30E3 KATAKANA LETTER SMALL YA+30E5 KATAKANA LETTER SMALL YU+30E7 KATAKANA LETTER SMALL YO+30EE KATAKANA LETTER SMALL WA+30F5 KATAKANA LETTER SMALL KA+30F6 KATAKANA LETTER SMALL KE+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK+31F0 KATAKANA LETTER SMALL KU+31F1 KATAKANA LETTER SMALL SI+31F2 KATAKANA LETTER SMALL SU+31F3 KATAKANA LETTER SMALL TO+31F4 KATAKANA LETTER SMALL NU+31F5 KATAKANA LETTER SMALL HA+31F6 KATAKANA LETTER SMALL HI+31F7 KATAKANA LETTER SMALL HU+31F8 KATAKANA LETTER SMALL HE+31F9 KATAKANA LETTER SMALL HO+31FA KATAKANA LETTER SMALL MU+31FB KATAKANA LETTER SMALL RA+31FC KATAKANA LETTER SMALL RI+31FD KATAKANA LETTER SMALL RU+31FE KATAKANA LETTER SMALL RE+31FF KATAKANA LETTER SMALL RO+FF67 HALFWIDTH KATAKANA LETTER SMALL A+FF68 HALFWIDTH KATAKANA LETTER SMALL I+FF69 HALFWIDTH KATAKANA LETTER SMALL U+FF6A HALFWIDTH KATAKANA LETTER SMALL E+FF6B HALFWIDTH KATAKANA LETTER SMALL O+FF6C HALFWIDTH KATAKANA LETTER SMALL YA+FF6D HALFWIDTH KATAKANA LETTER SMALL YU+FF6E HALFWIDTH KATAKANA LETTER SMALL YO+FF6F HALFWIDTH KATAKANA LETTER SMALL TU+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK`+</script>+</head>+<body>+<script>+var lines = charlist.split('\n')+var out = '<div id="log"></div>\n'+for (var i=0;i<lines.length;i++) {+ // get the data+ var firstSpace = lines[i].indexOf(' ')+ var hex = lines[i].substr(0,firstSpace)+ var name = lines[i].substr(firstSpace)+ // make a test+ out += '<div class="wrapper"><div>'+hex+'</div>' ++ '<div class="test" id="test'+i+'" lang="de">文文文文文文&#x'+hex+';字<span id="testSpan'+i+'">字</span></div>' ++ '<div class="ref" id="ref'+i+'" lang="de">文文文文文文<br/>&#x'+hex+';字<span id="refSpan'+i+'">字</span></div>' ++ '</div>'+ }++document.querySelector('body').innerHTML = out+setup({explicit_done: true});++document.fonts.ready.then(validate);++function validate() {+ for (i=0;i<lines.length;i++) {+ test(function() {+ assert_approx_equals(+ document.getElementById('testSpan'+i).getBoundingClientRect().left,+ document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);+ // Hide successful tests.+ document.getElementById('test'+i).parentNode.style.display = 'none';+ }, lines[i]+' may appear at line start if de and loose');+ }+ done();+}+</script>+<!--Notes:+The test creates a box with room for 6 characters, causing wrapping to occur either between the 6th and the 7th character, or before the 6th if the breaks after the 6th or before the 7th are prohibited.++It also creates the expected behaviour with a ref instance, using <br/>. Each line ends with a span. The test then checks whether the left edge of the span is in the same place in test and ref instance.+-->+</body>+</html>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-normal.html b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-normal.htmlnew file mode 100644index 00000000000..c27b84a5582--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-normal.html@@ -0,0 +1,117 @@+<!DOCTYPE html>+<html lang="en" >+<head>+<meta charset="utf-8"/>+<title>Line-break:normal, Conditional Japanese Starter (CJ) (de)</title>+<link rel="author" title="Richard Ishida" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-property">+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<meta name="assert" content="The browser allows a conditional Japanese starter at the beginning of a line; the language not being Chinese or Japanese makes no difference.">+<style type="text/css">+@font-face {+ font-family: 'mplus-1p-regular';+ src: url('../../../../fonts/mplus-1p-regular.woff') format('woff');+ }+#wrapper { position: relative; }+.test { color: red; }+.test, .ref { font-size: 30px; font-family: mplus-1p-regular, sans-serif; width: 185px; padding: 0; border: 1px solid orange; line-height: 1em; }+</style>+<style>+.test { line-break: normal; }+</style>+<script>+var charlist = `3041 HIRAGANA LETTER SMALL A+3043 HIRAGANA LETTER SMALL I+3045 HIRAGANA LETTER SMALL U+3047 HIRAGANA LETTER SMALL E+3049 HIRAGANA LETTER SMALL O+3063 HIRAGANA LETTER SMALL TU+3083 HIRAGANA LETTER SMALL YA+3085 HIRAGANA LETTER SMALL YU+3087 HIRAGANA LETTER SMALL YO+308E HIRAGANA LETTER SMALL WA+3095 HIRAGANA LETTER SMALL KA+3096 HIRAGANA LETTER SMALL KE+30A1 KATAKANA LETTER SMALL A+30A3 KATAKANA LETTER SMALL I+30A5 KATAKANA LETTER SMALL U+30A7 KATAKANA LETTER SMALL E+30A9 KATAKANA LETTER SMALL O+30C3 KATAKANA LETTER SMALL TU+30E3 KATAKANA LETTER SMALL YA+30E5 KATAKANA LETTER SMALL YU+30E7 KATAKANA LETTER SMALL YO+30EE KATAKANA LETTER SMALL WA+30F5 KATAKANA LETTER SMALL KA+30F6 KATAKANA LETTER SMALL KE+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK+31F0 KATAKANA LETTER SMALL KU+31F1 KATAKANA LETTER SMALL SI+31F2 KATAKANA LETTER SMALL SU+31F3 KATAKANA LETTER SMALL TO+31F4 KATAKANA LETTER SMALL NU+31F5 KATAKANA LETTER SMALL HA+31F6 KATAKANA LETTER SMALL HI+31F7 KATAKANA LETTER SMALL HU+31F8 KATAKANA LETTER SMALL HE+31F9 KATAKANA LETTER SMALL HO+31FA KATAKANA LETTER SMALL MU+31FB KATAKANA LETTER SMALL RA+31FC KATAKANA LETTER SMALL RI+31FD KATAKANA LETTER SMALL RU+31FE KATAKANA LETTER SMALL RE+31FF KATAKANA LETTER SMALL RO+FF67 HALFWIDTH KATAKANA LETTER SMALL A+FF68 HALFWIDTH KATAKANA LETTER SMALL I+FF69 HALFWIDTH KATAKANA LETTER SMALL U+FF6A HALFWIDTH KATAKANA LETTER SMALL E+FF6B HALFWIDTH KATAKANA LETTER SMALL O+FF6C HALFWIDTH KATAKANA LETTER SMALL YA+FF6D HALFWIDTH KATAKANA LETTER SMALL YU+FF6E HALFWIDTH KATAKANA LETTER SMALL YO+FF6F HALFWIDTH KATAKANA LETTER SMALL TU+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK`+</script>+</head>+<body>+<script>+var lines = charlist.split('\n')+var out = '<div id="log"></div>\n'+for (var i=0;i<lines.length;i++) {+ // get the data+ var firstSpace = lines[i].indexOf(' ')+ var hex = lines[i].substr(0,firstSpace)+ var name = lines[i].substr(firstSpace)+ // make a test+ out += '<div class="wrapper"><div>'+hex+'</div>' ++ '<div class="test" id="test'+i+'" lang="de">文文文文文文&#x'+hex+';字<span id="testSpan'+i+'">字</span></div>' ++ '<div class="ref" id="ref'+i+'" lang="de">文文文文文文<br/>&#x'+hex+';字<span id="refSpan'+i+'">字</span></div>' ++ '</div>'+ }++document.querySelector('body').innerHTML = out+setup({explicit_done: true});++document.fonts.ready.then(validate);++function validate() {+ for (i=0;i<lines.length;i++) {+ test(function() {+ assert_approx_equals(+ document.getElementById('testSpan'+i).getBoundingClientRect().left,+ document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);+ // Hide successful tests.+ document.getElementById('test'+i).parentNode.style.display = 'none';+ }, lines[i]+' may appear at line start if de and normal');+ }+ done();+}+</script>+<!--Notes:+The test creates a box with room for 6 characters, causing wrapping to occur either between the 6th and the 7th character, or before the 6th if the breaks after the 6th or before the 7th are prohibited.++It also creates the expected behaviour with a ref instance, using <br/>. Each line ends with a span. The test then checks whether the left edge of the span is in the same place in test and ref instance.+-->+</body>+</html>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-strict.html b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-strict.htmlnew file mode 100644index 00000000000..4d89da95758--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/other-lang/css-text-line-break-de-cj-strict.html@@ -0,0 +1,117 @@+<!DOCTYPE html>+<html lang="en" >+<head>+<meta charset="utf-8"/>+<title>line-break:strict, Conditional Japanese Starter (CJ) (de)</title>+<link rel="author" title="Richard Ishida" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-property">+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<meta name="assert" content="With line-break:strict, a browser will NOT allow a conditional Japanese starter at the beginning of a line; the language not being Chinese or Japanese makes no difference.">+<style type="text/css">+@font-face {+ font-family: 'mplus-1p-regular';+ src: url('../../../../fonts/mplus-1p-regular.woff') format('woff');+ }+#wrapper { position: relative; }+.test { color: red; }+.test, .ref { font-size: 30px; font-family: mplus-1p-regular, sans-serif; width: 185px; padding: 0; border: 1px solid orange; line-height: 1em; }+</style>+<style>+.test { line-break: strict; }+</style>+<script>+var charlist = `3041 HIRAGANA LETTER SMALL A+3043 HIRAGANA LETTER SMALL I+3045 HIRAGANA LETTER SMALL U+3047 HIRAGANA LETTER SMALL E+3049 HIRAGANA LETTER SMALL O+3063 HIRAGANA LETTER SMALL TU+3083 HIRAGANA LETTER SMALL YA+3085 HIRAGANA LETTER SMALL YU+3087 HIRAGANA LETTER SMALL YO+308E HIRAGANA LETTER SMALL WA+3095 HIRAGANA LETTER SMALL KA+3096 HIRAGANA LETTER SMALL KE+30A1 KATAKANA LETTER SMALL A+30A3 KATAKANA LETTER SMALL I+30A5 KATAKANA LETTER SMALL U+30A7 KATAKANA LETTER SMALL E+30A9 KATAKANA LETTER SMALL O+30C3 KATAKANA LETTER SMALL TU+30E3 KATAKANA LETTER SMALL YA+30E5 KATAKANA LETTER SMALL YU+30E7 KATAKANA LETTER SMALL YO+30EE KATAKANA LETTER SMALL WA+30F5 KATAKANA LETTER SMALL KA+30F6 KATAKANA LETTER SMALL KE+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK+31F0 KATAKANA LETTER SMALL KU+31F1 KATAKANA LETTER SMALL SI+31F2 KATAKANA LETTER SMALL SU+31F3 KATAKANA LETTER SMALL TO+31F4 KATAKANA LETTER SMALL NU+31F5 KATAKANA LETTER SMALL HA+31F6 KATAKANA LETTER SMALL HI+31F7 KATAKANA LETTER SMALL HU+31F8 KATAKANA LETTER SMALL HE+31F9 KATAKANA LETTER SMALL HO+31FA KATAKANA LETTER SMALL MU+31FB KATAKANA LETTER SMALL RA+31FC KATAKANA LETTER SMALL RI+31FD KATAKANA LETTER SMALL RU+31FE KATAKANA LETTER SMALL RE+31FF KATAKANA LETTER SMALL RO+FF67 HALFWIDTH KATAKANA LETTER SMALL A+FF68 HALFWIDTH KATAKANA LETTER SMALL I+FF69 HALFWIDTH KATAKANA LETTER SMALL U+FF6A HALFWIDTH KATAKANA LETTER SMALL E+FF6B HALFWIDTH KATAKANA LETTER SMALL O+FF6C HALFWIDTH KATAKANA LETTER SMALL YA+FF6D HALFWIDTH KATAKANA LETTER SMALL YU+FF6E HALFWIDTH KATAKANA LETTER SMALL YO+FF6F HALFWIDTH KATAKANA LETTER SMALL TU+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK`+</script>+</head>+<body>+<script>+var lines = charlist.split('\n')+var out = '<div id="log"></div>\n'+for (var i=0;i<lines.length;i++) {+ // get the data+ var firstSpace = lines[i].indexOf(' ')+ var hex = lines[i].substr(0,firstSpace)+ var name = lines[i].substr(firstSpace)+ // make a test+ out += '<div class="wrapper"><div>'+hex+'</div>' ++ '<div class="test" id="test'+i+'" lang="de">文文文文文文&#x'+hex+';字<span id="testSpan'+i+'">字</span></div>' ++ '<div class="ref" id="ref'+i+'" lang="de">文文文文文<br/>文&#x'+hex+';字<span id="refSpan'+i+'">字</span></div>' ++ '</div>'+ }++document.querySelector('body').innerHTML = out+setup({explicit_done: true});++document.fonts.ready.then(validate);++function validate() {+ for (i=0;i<lines.length;i++) {+ test(function() {+ assert_approx_equals(+ document.getElementById('testSpan'+i).getBoundingClientRect().left,+ document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);+ // Hide successful tests.+ document.getElementById('test'+i).parentNode.style.display = 'none';+ }, lines[i]+' may NOT appear at line start if de and strict');+ }+ done();+}+</script>+<!--Notes:+The test creates a box with room for 6 characters, causing wrapping to occur either between the 6th and the 7th character, or before the 6th if the breaks after the 6th or before the 7th are prohibited.++It also creates the expected behaviour with a ref instance, using <br/>. Each line ends with a span. The test then checks whether the left edge of the span is in the same place in test and ref instance.+-->+</body>+</html>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-loose.html b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-loose.htmlnew file mode 100644index 00000000000..0ca58db0d14--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-loose.html@@ -0,0 +1,117 @@+<!DOCTYPE html>+<html lang="en" >+<head>+<meta charset="utf-8"/>+<title>Line-break:loose, Conditional Japanese Starter (CJ) (unknown lang)</title>+<link rel="author" title="Richard Ishida" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-property">+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<meta name="assert" content="The browser allows a conditional Japanese starter at the beginning of a line; the language being unknown makes no difference.">+<style type="text/css">+@font-face {+ font-family: 'mplus-1p-regular';+ src: url('../../../../fonts/mplus-1p-regular.woff') format('woff');+ }+#wrapper { position: relative; }+.test { color: red; }+.test, .ref { font-size: 30px; font-family: mplus-1p-regular, sans-serif; width: 185px; padding: 0; border: 1px solid orange; line-height: 1em; }+</style>+<style>+.test { line-break: loose; }+</style>+<script>+var charlist = `3041 HIRAGANA LETTER SMALL A+3043 HIRAGANA LETTER SMALL I+3045 HIRAGANA LETTER SMALL U+3047 HIRAGANA LETTER SMALL E+3049 HIRAGANA LETTER SMALL O+3063 HIRAGANA LETTER SMALL TU+3083 HIRAGANA LETTER SMALL YA+3085 HIRAGANA LETTER SMALL YU+3087 HIRAGANA LETTER SMALL YO+308E HIRAGANA LETTER SMALL WA+3095 HIRAGANA LETTER SMALL KA+3096 HIRAGANA LETTER SMALL KE+30A1 KATAKANA LETTER SMALL A+30A3 KATAKANA LETTER SMALL I+30A5 KATAKANA LETTER SMALL U+30A7 KATAKANA LETTER SMALL E+30A9 KATAKANA LETTER SMALL O+30C3 KATAKANA LETTER SMALL TU+30E3 KATAKANA LETTER SMALL YA+30E5 KATAKANA LETTER SMALL YU+30E7 KATAKANA LETTER SMALL YO+30EE KATAKANA LETTER SMALL WA+30F5 KATAKANA LETTER SMALL KA+30F6 KATAKANA LETTER SMALL KE+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK+31F0 KATAKANA LETTER SMALL KU+31F1 KATAKANA LETTER SMALL SI+31F2 KATAKANA LETTER SMALL SU+31F3 KATAKANA LETTER SMALL TO+31F4 KATAKANA LETTER SMALL NU+31F5 KATAKANA LETTER SMALL HA+31F6 KATAKANA LETTER SMALL HI+31F7 KATAKANA LETTER SMALL HU+31F8 KATAKANA LETTER SMALL HE+31F9 KATAKANA LETTER SMALL HO+31FA KATAKANA LETTER SMALL MU+31FB KATAKANA LETTER SMALL RA+31FC KATAKANA LETTER SMALL RI+31FD KATAKANA LETTER SMALL RU+31FE KATAKANA LETTER SMALL RE+31FF KATAKANA LETTER SMALL RO+FF67 HALFWIDTH KATAKANA LETTER SMALL A+FF68 HALFWIDTH KATAKANA LETTER SMALL I+FF69 HALFWIDTH KATAKANA LETTER SMALL U+FF6A HALFWIDTH KATAKANA LETTER SMALL E+FF6B HALFWIDTH KATAKANA LETTER SMALL O+FF6C HALFWIDTH KATAKANA LETTER SMALL YA+FF6D HALFWIDTH KATAKANA LETTER SMALL YU+FF6E HALFWIDTH KATAKANA LETTER SMALL YO+FF6F HALFWIDTH KATAKANA LETTER SMALL TU+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK`+</script>+</head>+<body>+<script>+var lines = charlist.split('\n')+var out = '<div id="log"></div>\n'+for (var i=0;i<lines.length;i++) {+ // get the data+ var firstSpace = lines[i].indexOf(' ')+ var hex = lines[i].substr(0,firstSpace)+ var name = lines[i].substr(firstSpace)+ // make a test+ out += '<div class="wrapper"><div>'+hex+'</div>' ++ '<div class="test" id="test'+i+'" lang="">文文文文文文&#x'+hex+';字<span id="testSpan'+i+'">字</span></div>' ++ '<div class="ref" id="ref'+i+'" lang="">文文文文文文<br/>&#x'+hex+';字<span id="refSpan'+i+'">字</span></div>' ++ '</div>'+ }++document.querySelector('body').innerHTML = out+setup({explicit_done: true});++document.fonts.ready.then(validate);++function validate() {+ for (i=0;i<lines.length;i++) {+ test(function() {+ assert_approx_equals(+ document.getElementById('testSpan'+i).getBoundingClientRect().left,+ document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);+ // Hide successful tests.+ document.getElementById('test'+i).parentNode.style.display = 'none';+ }, lines[i]+' may appear at line start if loose');+ }+ done();+}+</script>+<!--Notes:+The test creates a box with room for 6 characters, causing wrapping to occur either between the 6th and the 7th character, or before the 6th if the breaks after the 6th or before the 7th are prohibited.++It also creates the expected behaviour with a ref instance, using <br/>. Each line ends with a span. The test then checks whether the left edge of the span is in the same place in test and ref instance.+-->+</body>+</html>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-normal.html b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-normal.htmlnew file mode 100644index 00000000000..a94b9c76276--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-normal.html@@ -0,0 +1,117 @@+<!DOCTYPE html>+<html lang="en" >+<head>+<meta charset="utf-8"/>+<title>Line-break:normal, Conditional Japanese Starter (CJ) (unknown lang)</title>+<link rel="author" title="Richard Ishida" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-property">+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<meta name="assert" content="The browser allows a conditional Japanese starter at the beginning of a line; the language being unknown makes no difference.">+<style type="text/css">+@font-face {+ font-family: 'mplus-1p-regular';+ src: url('../../../../fonts/mplus-1p-regular.woff') format('woff');+ }+#wrapper { position: relative; }+.test { color: red; }+.test, .ref { font-size: 30px; font-family: mplus-1p-regular, sans-serif; width: 185px; padding: 0; border: 1px solid orange; line-height: 1em; }+</style>+<style>+.test { line-break: normal; }+</style>+<script>+var charlist = `3041 HIRAGANA LETTER SMALL A+3043 HIRAGANA LETTER SMALL I+3045 HIRAGANA LETTER SMALL U+3047 HIRAGANA LETTER SMALL E+3049 HIRAGANA LETTER SMALL O+3063 HIRAGANA LETTER SMALL TU+3083 HIRAGANA LETTER SMALL YA+3085 HIRAGANA LETTER SMALL YU+3087 HIRAGANA LETTER SMALL YO+308E HIRAGANA LETTER SMALL WA+3095 HIRAGANA LETTER SMALL KA+3096 HIRAGANA LETTER SMALL KE+30A1 KATAKANA LETTER SMALL A+30A3 KATAKANA LETTER SMALL I+30A5 KATAKANA LETTER SMALL U+30A7 KATAKANA LETTER SMALL E+30A9 KATAKANA LETTER SMALL O+30C3 KATAKANA LETTER SMALL TU+30E3 KATAKANA LETTER SMALL YA+30E5 KATAKANA LETTER SMALL YU+30E7 KATAKANA LETTER SMALL YO+30EE KATAKANA LETTER SMALL WA+30F5 KATAKANA LETTER SMALL KA+30F6 KATAKANA LETTER SMALL KE+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK+31F0 KATAKANA LETTER SMALL KU+31F1 KATAKANA LETTER SMALL SI+31F2 KATAKANA LETTER SMALL SU+31F3 KATAKANA LETTER SMALL TO+31F4 KATAKANA LETTER SMALL NU+31F5 KATAKANA LETTER SMALL HA+31F6 KATAKANA LETTER SMALL HI+31F7 KATAKANA LETTER SMALL HU+31F8 KATAKANA LETTER SMALL HE+31F9 KATAKANA LETTER SMALL HO+31FA KATAKANA LETTER SMALL MU+31FB KATAKANA LETTER SMALL RA+31FC KATAKANA LETTER SMALL RI+31FD KATAKANA LETTER SMALL RU+31FE KATAKANA LETTER SMALL RE+31FF KATAKANA LETTER SMALL RO+FF67 HALFWIDTH KATAKANA LETTER SMALL A+FF68 HALFWIDTH KATAKANA LETTER SMALL I+FF69 HALFWIDTH KATAKANA LETTER SMALL U+FF6A HALFWIDTH KATAKANA LETTER SMALL E+FF6B HALFWIDTH KATAKANA LETTER SMALL O+FF6C HALFWIDTH KATAKANA LETTER SMALL YA+FF6D HALFWIDTH KATAKANA LETTER SMALL YU+FF6E HALFWIDTH KATAKANA LETTER SMALL YO+FF6F HALFWIDTH KATAKANA LETTER SMALL TU+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK`+</script>+</head>+<body>+<script>+var lines = charlist.split('\n')+var out = '<div id="log"></div>\n'+for (var i=0;i<lines.length;i++) {+ // get the data+ var firstSpace = lines[i].indexOf(' ')+ var hex = lines[i].substr(0,firstSpace)+ var name = lines[i].substr(firstSpace)+ // make a test+ out += '<div class="wrapper"><div>'+hex+'</div>' ++ '<div class="test" id="test'+i+'" lang="">文文文文文文&#x'+hex+';字<span id="testSpan'+i+'">字</span></div>' ++ '<div class="ref" id="ref'+i+'" lang="">文文文文文文<br/>&#x'+hex+';字<span id="refSpan'+i+'">字</span></div>' ++ '</div>'+ }++document.querySelector('body').innerHTML = out+setup({explicit_done: true});++document.fonts.ready.then(validate);++function validate() {+ for (i=0;i<lines.length;i++) {+ test(function() {+ assert_approx_equals(+ document.getElementById('testSpan'+i).getBoundingClientRect().left,+ document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);+ // Hide successful tests.+ document.getElementById('test'+i).parentNode.style.display = 'none';+ }, lines[i]+' may appear at line start if normal');+ }+ done();+}+</script>+<!--Notes:+The test creates a box with room for 6 characters, causing wrapping to occur either between the 6th and the 7th character, or before the 6th if the breaks after the 6th or before the 7th are prohibited.++It also creates the expected behaviour with a ref instance, using <br/>. Each line ends with a span. The test then checks whether the left edge of the span is in the same place in test and ref instance.+-->+</body>+</html>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-strict.html b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-strict.htmlnew file mode 100644index 00000000000..b3164cb6428--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/unknown-lang/css-text-line-break-cj-strict.html@@ -0,0 +1,125 @@+<!DOCTYPE html>+<html lang="en" >+<head>+<meta charset="utf-8"/>+<title>line-break:strict, Conditional Japanese Starter (CJ) (language unknown)</title>+<link rel="author" title="Richard Ishida" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-property">+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<meta name="assert" content="With line-break:strict, a browser will NOT allow a conditional Japanese starter at the beginning of a line; the language being unknown makes no difference.">+<style type="text/css">+@font-face {+ font-family: 'mplus-1p-regular';+ src: url('../../../../fonts/mplus-1p-regular.woff') format('woff');+ }+#wrapper { position: relative; }+.test { color: red; }+.test, .ref {+ font-size: 30px;+ font-family: mplus-1p-regular, sans-serif;+ width: 185px;+ padding: 0;+ border: 1px solid orange;+ line-height: 1em;+ text-autospace: no-autospace;+}+</style>+<style>+.test { line-break: strict; }+</style>+<script>+var charlist = `3041 HIRAGANA LETTER SMALL A+3043 HIRAGANA LETTER SMALL I+3045 HIRAGANA LETTER SMALL U+3047 HIRAGANA LETTER SMALL E+3049 HIRAGANA LETTER SMALL O+3063 HIRAGANA LETTER SMALL TU+3083 HIRAGANA LETTER SMALL YA+3085 HIRAGANA LETTER SMALL YU+3087 HIRAGANA LETTER SMALL YO+308E HIRAGANA LETTER SMALL WA+3095 HIRAGANA LETTER SMALL KA+3096 HIRAGANA LETTER SMALL KE+30A1 KATAKANA LETTER SMALL A+30A3 KATAKANA LETTER SMALL I+30A5 KATAKANA LETTER SMALL U+30A7 KATAKANA LETTER SMALL E+30A9 KATAKANA LETTER SMALL O+30C3 KATAKANA LETTER SMALL TU+30E3 KATAKANA LETTER SMALL YA+30E5 KATAKANA LETTER SMALL YU+30E7 KATAKANA LETTER SMALL YO+30EE KATAKANA LETTER SMALL WA+30F5 KATAKANA LETTER SMALL KA+30F6 KATAKANA LETTER SMALL KE+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK+31F0 KATAKANA LETTER SMALL KU+31F1 KATAKANA LETTER SMALL SI+31F2 KATAKANA LETTER SMALL SU+31F3 KATAKANA LETTER SMALL TO+31F4 KATAKANA LETTER SMALL NU+31F5 KATAKANA LETTER SMALL HA+31F6 KATAKANA LETTER SMALL HI+31F7 KATAKANA LETTER SMALL HU+31F8 KATAKANA LETTER SMALL HE+31F9 KATAKANA LETTER SMALL HO+31FA KATAKANA LETTER SMALL MU+31FB KATAKANA LETTER SMALL RA+31FC KATAKANA LETTER SMALL RI+31FD KATAKANA LETTER SMALL RU+31FE KATAKANA LETTER SMALL RE+31FF KATAKANA LETTER SMALL RO+FF67 HALFWIDTH KATAKANA LETTER SMALL A+FF68 HALFWIDTH KATAKANA LETTER SMALL I+FF69 HALFWIDTH KATAKANA LETTER SMALL U+FF6A HALFWIDTH KATAKANA LETTER SMALL E+FF6B HALFWIDTH KATAKANA LETTER SMALL O+FF6C HALFWIDTH KATAKANA LETTER SMALL YA+FF6D HALFWIDTH KATAKANA LETTER SMALL YU+FF6E HALFWIDTH KATAKANA LETTER SMALL YO+FF6F HALFWIDTH KATAKANA LETTER SMALL TU+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK`+</script>+</head>+<body>+<script>+var lines = charlist.split('\n')+var out = '<div id="log"></div>\n'+for (var i=0;i<lines.length;i++) {+ // get the data+ var firstSpace = lines[i].indexOf(' ')+ var hex = lines[i].substr(0,firstSpace)+ var name = lines[i].substr(firstSpace)+ // make a test+ out += '<div class="wrapper"><div>'+hex+'</div>' ++ '<div class="test" id="test'+i+'" lang="">文文文文文文&#x'+hex+';字<span id="testSpan'+i+'">字</span></div>' ++ '<div class="ref" id="ref'+i+'" lang="">文文文文文<br/>文&#x'+hex+';字<span id="refSpan'+i+'">字</span></div>' ++ '</div>'+ }++document.querySelector('body').innerHTML = out+setup({explicit_done: true});++document.fonts.ready.then(validate);++function validate() {+ for (i=0;i<lines.length;i++) {+ test(function() {+ assert_approx_equals(+ document.getElementById('testSpan'+i).getBoundingClientRect().left,+ document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);+ // Hide successful tests.+ document.getElementById('test'+i).parentNode.style.display = 'none';+ }, lines[i]+' may NOT appear at line start if strict');+ }+ done();+}+</script>+<!--Notes:+The test creates a box with room for 6 characters, causing wrapping to occur either between the 6th and the 7th character, or before the 6th if the breaks after the 6th or before the 7th are prohibited.++It also creates the expected behaviour with a ref instance, using <br/>. Each line ends with a span. The test then checks whether the left edge of the span is in the same place in test and ref instance.+-->+</body>+</html>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-loose.html b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-loose.htmlnew file mode 100644index 00000000000..f0d6a2ecdab--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-loose.html@@ -0,0 +1,117 @@+<!DOCTYPE html>+<html lang="en" >+<head>+<meta charset="utf-8"/>+<title>Line-break:loose, Conditional Japanese Starter (CJ) (zh)</title>+<link rel="author" title="Richard Ishida" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-property">+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<meta name="assert" content="The browser allows a conditional Japanese starter at the beginning of a line; the language being chinese makes no difference.">+<style type="text/css">+@font-face {+ font-family: 'mplus-1p-regular';+ src: url('../../../../fonts/mplus-1p-regular.woff') format('woff');+ }+#wrapper { position: relative; }+.test { color: red; }+.test, .ref { font-size: 30px; font-family: mplus-1p-regular, sans-serif; width: 185px; padding: 0; border: 1px solid orange; line-height: 1em; }+</style>+<style>+.test { line-break: loose; }+</style>+<script>+var charlist = `3041 HIRAGANA LETTER SMALL A+3043 HIRAGANA LETTER SMALL I+3045 HIRAGANA LETTER SMALL U+3047 HIRAGANA LETTER SMALL E+3049 HIRAGANA LETTER SMALL O+3063 HIRAGANA LETTER SMALL TU+3083 HIRAGANA LETTER SMALL YA+3085 HIRAGANA LETTER SMALL YU+3087 HIRAGANA LETTER SMALL YO+308E HIRAGANA LETTER SMALL WA+3095 HIRAGANA LETTER SMALL KA+3096 HIRAGANA LETTER SMALL KE+30A1 KATAKANA LETTER SMALL A+30A3 KATAKANA LETTER SMALL I+30A5 KATAKANA LETTER SMALL U+30A7 KATAKANA LETTER SMALL E+30A9 KATAKANA LETTER SMALL O+30C3 KATAKANA LETTER SMALL TU+30E3 KATAKANA LETTER SMALL YA+30E5 KATAKANA LETTER SMALL YU+30E7 KATAKANA LETTER SMALL YO+30EE KATAKANA LETTER SMALL WA+30F5 KATAKANA LETTER SMALL KA+30F6 KATAKANA LETTER SMALL KE+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK+31F0 KATAKANA LETTER SMALL KU+31F1 KATAKANA LETTER SMALL SI+31F2 KATAKANA LETTER SMALL SU+31F3 KATAKANA LETTER SMALL TO+31F4 KATAKANA LETTER SMALL NU+31F5 KATAKANA LETTER SMALL HA+31F6 KATAKANA LETTER SMALL HI+31F7 KATAKANA LETTER SMALL HU+31F8 KATAKANA LETTER SMALL HE+31F9 KATAKANA LETTER SMALL HO+31FA KATAKANA LETTER SMALL MU+31FB KATAKANA LETTER SMALL RA+31FC KATAKANA LETTER SMALL RI+31FD KATAKANA LETTER SMALL RU+31FE KATAKANA LETTER SMALL RE+31FF KATAKANA LETTER SMALL RO+FF67 HALFWIDTH KATAKANA LETTER SMALL A+FF68 HALFWIDTH KATAKANA LETTER SMALL I+FF69 HALFWIDTH KATAKANA LETTER SMALL U+FF6A HALFWIDTH KATAKANA LETTER SMALL E+FF6B HALFWIDTH KATAKANA LETTER SMALL O+FF6C HALFWIDTH KATAKANA LETTER SMALL YA+FF6D HALFWIDTH KATAKANA LETTER SMALL YU+FF6E HALFWIDTH KATAKANA LETTER SMALL YO+FF6F HALFWIDTH KATAKANA LETTER SMALL TU+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK`+</script>+</head>+<body>+<script>+var lines = charlist.split('\n')+var out = '<div id="log"></div>\n'+for (var i=0;i<lines.length;i++) {+ // get the data+ var firstSpace = lines[i].indexOf(' ')+ var hex = lines[i].substr(0,firstSpace)+ var name = lines[i].substr(firstSpace)+ // make a test+ out += '<div class="wrapper"><div>'+hex+'</div>' ++ '<div class="test" id="test'+i+'" lang="zh">文文文文文文&#x'+hex+';字<span id="testSpan'+i+'">字</span></div>' ++ '<div class="ref" id="ref'+i+'" lang="zh">文文文文文文<br/>&#x'+hex+';字<span id="refSpan'+i+'">字</span></div>' ++ '</div>'+ }++document.querySelector('body').innerHTML = out+setup({explicit_done: true});++document.fonts.ready.then(validate);++function validate() {+ for (i=0;i<lines.length;i++) {+ test(function() {+ assert_approx_equals(+ document.getElementById('testSpan'+i).getBoundingClientRect().left,+ document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);+ // Hide successful tests.+ document.getElementById('test'+i).parentNode.style.display = 'none';+ }, lines[i]+' may appear at line start if zh and loose');+ }+ done();+}+</script>+<!--Notes:+The test creates a box with room for 6 characters, causing wrapping to occur either between the 6th and the 7th character, or before the 6th if the breaks after the 6th or before the 7th are prohibited.++It also creates the expected behaviour with a ref instance, using <br/>. Each line ends with a span. The test then checks whether the left edge of the span is in the same place in test and ref instance.+-->+</body>+</html>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-normal.html b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-normal.htmlnew file mode 100644index 00000000000..729c528ae5d--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-normal.html@@ -0,0 +1,117 @@+<!DOCTYPE html>+<html lang="en" >+<head>+<meta charset="utf-8"/>+<title>Line-break:normal, Conditional Japanese Starter (CJ) (zh)</title>+<link rel="author" title="Richard Ishida" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-property">+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<meta name="assert" content="The browser allows a conditional Japanese starter at the beginning of a line; the language being chinese makes no difference.">+<style type="text/css">+@font-face {+ font-family: 'mplus-1p-regular';+ src: url('../../../../fonts/mplus-1p-regular.woff') format('woff');+ }+#wrapper { position: relative; }+.test { color: red; }+.test, .ref { font-size: 30px; font-family: mplus-1p-regular, sans-serif; width: 185px; padding: 0; border: 1px solid orange; line-height: 1em; }+</style>+<style>+.test { line-break: normal; }+</style>+<script>+var charlist = `3041 HIRAGANA LETTER SMALL A+3043 HIRAGANA LETTER SMALL I+3045 HIRAGANA LETTER SMALL U+3047 HIRAGANA LETTER SMALL E+3049 HIRAGANA LETTER SMALL O+3063 HIRAGANA LETTER SMALL TU+3083 HIRAGANA LETTER SMALL YA+3085 HIRAGANA LETTER SMALL YU+3087 HIRAGANA LETTER SMALL YO+308E HIRAGANA LETTER SMALL WA+3095 HIRAGANA LETTER SMALL KA+3096 HIRAGANA LETTER SMALL KE+30A1 KATAKANA LETTER SMALL A+30A3 KATAKANA LETTER SMALL I+30A5 KATAKANA LETTER SMALL U+30A7 KATAKANA LETTER SMALL E+30A9 KATAKANA LETTER SMALL O+30C3 KATAKANA LETTER SMALL TU+30E3 KATAKANA LETTER SMALL YA+30E5 KATAKANA LETTER SMALL YU+30E7 KATAKANA LETTER SMALL YO+30EE KATAKANA LETTER SMALL WA+30F5 KATAKANA LETTER SMALL KA+30F6 KATAKANA LETTER SMALL KE+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK+31F0 KATAKANA LETTER SMALL KU+31F1 KATAKANA LETTER SMALL SI+31F2 KATAKANA LETTER SMALL SU+31F3 KATAKANA LETTER SMALL TO+31F4 KATAKANA LETTER SMALL NU+31F5 KATAKANA LETTER SMALL HA+31F6 KATAKANA LETTER SMALL HI+31F7 KATAKANA LETTER SMALL HU+31F8 KATAKANA LETTER SMALL HE+31F9 KATAKANA LETTER SMALL HO+31FA KATAKANA LETTER SMALL MU+31FB KATAKANA LETTER SMALL RA+31FC KATAKANA LETTER SMALL RI+31FD KATAKANA LETTER SMALL RU+31FE KATAKANA LETTER SMALL RE+31FF KATAKANA LETTER SMALL RO+FF67 HALFWIDTH KATAKANA LETTER SMALL A+FF68 HALFWIDTH KATAKANA LETTER SMALL I+FF69 HALFWIDTH KATAKANA LETTER SMALL U+FF6A HALFWIDTH KATAKANA LETTER SMALL E+FF6B HALFWIDTH KATAKANA LETTER SMALL O+FF6C HALFWIDTH KATAKANA LETTER SMALL YA+FF6D HALFWIDTH KATAKANA LETTER SMALL YU+FF6E HALFWIDTH KATAKANA LETTER SMALL YO+FF6F HALFWIDTH KATAKANA LETTER SMALL TU+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK`+</script>+</head>+<body>+<script>+var lines = charlist.split('\n')+var out = '<div id="log"></div>\n'+for (var i=0;i<lines.length;i++) {+ // get the data+ var firstSpace = lines[i].indexOf(' ')+ var hex = lines[i].substr(0,firstSpace)+ var name = lines[i].substr(firstSpace)+ // make a test+ out += '<div class="wrapper"><div>'+hex+'</div>' ++ '<div class="test" id="test'+i+'" lang="zh">文文文文文文&#x'+hex+';字<span id="testSpan'+i+'">字</span></div>' ++ '<div class="ref" id="ref'+i+'" lang="zh">文文文文文文<br/>&#x'+hex+';字<span id="refSpan'+i+'">字</span></div>' ++ '</div>'+ }++document.querySelector('body').innerHTML = out+setup({explicit_done: true});++document.fonts.ready.then(validate);++function validate() {+ for (i=0;i<lines.length;i++) {+ test(function() {+ assert_approx_equals(+ document.getElementById('testSpan'+i).getBoundingClientRect().left,+ document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);+ // Hide successful tests.+ document.getElementById('test'+i).parentNode.style.display = 'none';+ }, lines[i]+' may appear at line start if zh and normal');+ }+ done();+}+</script>+<!--Notes:+The test creates a box with room for 6 characters, causing wrapping to occur either between the 6th and the 7th character, or before the 6th if the breaks after the 6th or before the 7th are prohibited.++It also creates the expected behaviour with a ref instance, using <br/>. Each line ends with a span. The test then checks whether the left edge of the span is in the same place in test and ref instance.+-->+</body>+</html>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-strict.html b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-strict.htmlnew file mode 100644index 00000000000..86ba2cf08c9--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-text/i18n/zh/css-text-line-break-zh-cj-strict.html@@ -0,0 +1,117 @@+<!DOCTYPE html>+<html lang="en" >+<head>+<meta charset="utf-8"/>+<title>line-break:strict, Conditional Japanese Starter (CJ) (zh)</title>+<link rel="author" title="Richard Ishida" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-break-property">+<script src="../../../../resources/testharness.js"></script>+<script src="../../../../resources/testharnessreport.js"></script>+<meta name="assert" content="With line-break:strict, a browser will NOT allow a conditional Japanese starter at the beginning of a line; the language being chinese makes no difference.">+<style type="text/css">+@font-face {+ font-family: 'mplus-1p-regular';+ src: url('../../../../fonts/mplus-1p-regular.woff') format('woff');+ }+#wrapper { position: relative; }+.test { color: red; }+.test, .ref { font-size: 30px; font-family: mplus-1p-regular, sans-serif; width: 185px; padding: 0; border: 1px solid orange; line-height: 1em; }+</style>+<style>+.test { line-break: strict; }+</style>+<script>+var charlist = `3041 HIRAGANA LETTER SMALL A+3043 HIRAGANA LETTER SMALL I+3045 HIRAGANA LETTER SMALL U+3047 HIRAGANA LETTER SMALL E+3049 HIRAGANA LETTER SMALL O+3063 HIRAGANA LETTER SMALL TU+3083 HIRAGANA LETTER SMALL YA+3085 HIRAGANA LETTER SMALL YU+3087 HIRAGANA LETTER SMALL YO+308E HIRAGANA LETTER SMALL WA+3095 HIRAGANA LETTER SMALL KA+3096 HIRAGANA LETTER SMALL KE+30A1 KATAKANA LETTER SMALL A+30A3 KATAKANA LETTER SMALL I+30A5 KATAKANA LETTER SMALL U+30A7 KATAKANA LETTER SMALL E+30A9 KATAKANA LETTER SMALL O+30C3 KATAKANA LETTER SMALL TU+30E3 KATAKANA LETTER SMALL YA+30E5 KATAKANA LETTER SMALL YU+30E7 KATAKANA LETTER SMALL YO+30EE KATAKANA LETTER SMALL WA+30F5 KATAKANA LETTER SMALL KA+30F6 KATAKANA LETTER SMALL KE+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK+31F0 KATAKANA LETTER SMALL KU+31F1 KATAKANA LETTER SMALL SI+31F2 KATAKANA LETTER SMALL SU+31F3 KATAKANA LETTER SMALL TO+31F4 KATAKANA LETTER SMALL NU+31F5 KATAKANA LETTER SMALL HA+31F6 KATAKANA LETTER SMALL HI+31F7 KATAKANA LETTER SMALL HU+31F8 KATAKANA LETTER SMALL HE+31F9 KATAKANA LETTER SMALL HO+31FA KATAKANA LETTER SMALL MU+31FB KATAKANA LETTER SMALL RA+31FC KATAKANA LETTER SMALL RI+31FD KATAKANA LETTER SMALL RU+31FE KATAKANA LETTER SMALL RE+31FF KATAKANA LETTER SMALL RO+FF67 HALFWIDTH KATAKANA LETTER SMALL A+FF68 HALFWIDTH KATAKANA LETTER SMALL I+FF69 HALFWIDTH KATAKANA LETTER SMALL U+FF6A HALFWIDTH KATAKANA LETTER SMALL E+FF6B HALFWIDTH KATAKANA LETTER SMALL O+FF6C HALFWIDTH KATAKANA LETTER SMALL YA+FF6D HALFWIDTH KATAKANA LETTER SMALL YU+FF6E HALFWIDTH KATAKANA LETTER SMALL YO+FF6F HALFWIDTH KATAKANA LETTER SMALL TU+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK`+</script>+</head>+<body>+<script>+var lines = charlist.split('\n')+var out = '<div id="log"></div>\n'+for (var i=0;i<lines.length;i++) {+ // get the data+ var firstSpace = lines[i].indexOf(' ')+ var hex = lines[i].substr(0,firstSpace)+ var name = lines[i].substr(firstSpace)+ // make a test+ out += '<div class="wrapper"><div>'+hex+'</div>' ++ '<div class="test" id="test'+i+'" lang="zh">文文文文文文&#x'+hex+';字<span id="testSpan'+i+'">字</span></div>' ++ '<div class="ref" id="ref'+i+'" lang="zh">文文文文文<br/>文&#x'+hex+';字<span id="refSpan'+i+'">字</span></div>' ++ '</div>'+ }++document.querySelector('body').innerHTML = out+setup({explicit_done: true});++document.fonts.ready.then(validate);++function validate() {+ for (i=0;i<lines.length;i++) {+ test(function() {+ assert_approx_equals(+ document.getElementById('testSpan'+i).getBoundingClientRect().left,+ document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);+ // Hide successful tests.+ document.getElementById('test'+i).parentNode.style.display = 'none';+ }, lines[i]+' may NOT appear at line start if zh and strict');+ }+ done();+}+</script>+<!--Notes:+The test creates a box with room for 6 characters, causing wrapping to occur either between the 6th and the 7th character, or before the 6th if the breaks after the 6th or before the 7th are prohibited.++It also creates the expected behaviour with a ref instance, using <br/>. Each line ends with a span. The test then checks whether the left edge of the span is in the same place in test and ref instance.+-->+</body>+</html>diff --git a/Tests/LibWeb/Text/input/wpt-import/fonts/mplus-1p-regular.woff b/Tests/LibWeb/Text/input/wpt-import/fonts/mplus-1p-regular.woffnew file mode 100644index 00000000000..42cfff628b4Binary files /dev/null and b/Tests/LibWeb/Text/input/wpt-import/fonts/mplus-1p-regular.woff differ