From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- layout/reftests/css-ruby/bidi-1-ref.html | 16 ++++++ layout/reftests/css-ruby/bidi-1.html | 16 ++++++ layout/reftests/css-ruby/bidi-2-ref.html | 39 ++++++++++++++ layout/reftests/css-ruby/bidi-2.html | 51 +++++++++++++++++++ layout/reftests/css-ruby/box-generation-1-ref.html | 43 ++++++++++++++++ layout/reftests/css-ruby/box-generation-1.html | 42 +++++++++++++++ layout/reftests/css-ruby/box-generation-2-ref.html | 49 ++++++++++++++++++ layout/reftests/css-ruby/box-generation-2.html | 42 +++++++++++++++ layout/reftests/css-ruby/box-generation-3-ref.html | 45 +++++++++++++++++ layout/reftests/css-ruby/box-generation-3.html | 42 +++++++++++++++ layout/reftests/css-ruby/box-generation-4-ref.html | 49 ++++++++++++++++++ layout/reftests/css-ruby/box-generation-4.html | 42 +++++++++++++++ layout/reftests/css-ruby/box-generation-5-ref.html | 47 +++++++++++++++++ layout/reftests/css-ruby/box-generation-5.html | 42 +++++++++++++++ layout/reftests/css-ruby/box-properties-1-ref.html | 17 +++++++ layout/reftests/css-ruby/box-properties-1.html | 21 ++++++++ layout/reftests/css-ruby/box-properties-2-ref.html | 29 +++++++++++ layout/reftests/css-ruby/box-properties-2.html | 25 +++++++++ layout/reftests/css-ruby/box-properties-3-ref.html | 18 +++++++ layout/reftests/css-ruby/box-properties-3.html | 18 +++++++ layout/reftests/css-ruby/box-properties-4-ref.html | 24 +++++++++ layout/reftests/css-ruby/box-properties-4.html | 23 +++++++++ layout/reftests/css-ruby/bug1181890-notref.html | 9 ++++ layout/reftests/css-ruby/bug1181890-ref.html | 9 ++++ layout/reftests/css-ruby/bug1181890.html | 10 ++++ layout/reftests/css-ruby/common.css | 22 ++++++++ .../reftests/css-ruby/dynamic-insertion-1-ref.html | 37 ++++++++++++++ layout/reftests/css-ruby/dynamic-insertion-1.html | 55 ++++++++++++++++++++ .../reftests/css-ruby/dynamic-insertion-2-ref.html | 27 ++++++++++ layout/reftests/css-ruby/dynamic-insertion-2.html | 37 ++++++++++++++ .../reftests/css-ruby/dynamic-insertion-3-ref.html | 19 +++++++ layout/reftests/css-ruby/dynamic-insertion-3.html | 26 ++++++++++ layout/reftests/css-ruby/dynamic-insertion.js | 42 +++++++++++++++ .../reftests/css-ruby/dynamic-removal-1-ref.html | 25 +++++++++ layout/reftests/css-ruby/dynamic-removal-1.html | 38 ++++++++++++++ .../reftests/css-ruby/dynamic-removal-2-ref.html | 18 +++++++ layout/reftests/css-ruby/dynamic-removal-2.html | 24 +++++++++ .../reftests/css-ruby/dynamic-removal-3-ref.html | 26 ++++++++++ layout/reftests/css-ruby/dynamic-removal-3.html | 37 ++++++++++++++ layout/reftests/css-ruby/dynamic-removal.js | 14 +++++ layout/reftests/css-ruby/float-handling-ref.html | 23 +++++++++ layout/reftests/css-ruby/float-handling.html | 23 +++++++++ layout/reftests/css-ruby/inflated-ruby-1-ref.html | 6 +++ layout/reftests/css-ruby/inflated-ruby-1.html | 10 ++++ .../css-ruby/intra-level-whitespace-1-ref.html | 22 ++++++++ .../css-ruby/intra-level-whitespace-1.html | 22 ++++++++ .../css-ruby/intra-level-whitespace-2-ref.html | 28 ++++++++++ .../css-ruby/intra-level-whitespace-2.html | 33 ++++++++++++ .../css-ruby/intra-level-whitespace-3-ref.html | 14 +++++ .../css-ruby/intra-level-whitespace-3.html | 34 +++++++++++++ .../reftests/css-ruby/intrinsic-isize-1-ref.html | 49 ++++++++++++++++++ layout/reftests/css-ruby/intrinsic-isize-1.html | 46 +++++++++++++++++ .../reftests/css-ruby/intrinsic-isize-2-ref.html | 31 ++++++++++++ layout/reftests/css-ruby/intrinsic-isize-2.html | 31 ++++++++++++ layout/reftests/css-ruby/justification-1-ref.html | 16 ++++++ layout/reftests/css-ruby/justification-1.html | 17 +++++++ layout/reftests/css-ruby/justification-2-ref.html | 20 ++++++++ layout/reftests/css-ruby/justification-2.html | 24 +++++++++ .../css-ruby/lang-specific-style-1-ref.html | 14 +++++ .../reftests/css-ruby/lang-specific-style-1.html | 14 +++++ .../css-ruby/line-break-suppression-1-ref.html | 15 ++++++ .../css-ruby/line-break-suppression-1.html | 15 ++++++ .../css-ruby/line-break-suppression-2-ref.html | 17 +++++++ .../css-ruby/line-break-suppression-2.html | 17 +++++++ .../css-ruby/line-break-suppression-3-ref.html | 20 ++++++++ .../css-ruby/line-break-suppression-3.html | 23 +++++++++ .../css-ruby/line-break-suppression-4-ref.html | 11 ++++ .../css-ruby/line-break-suppression-4.html | 11 ++++ .../css-ruby/line-break-suppression-5-ref.html | 10 ++++ .../css-ruby/line-break-suppression-5.html | 10 ++++ layout/reftests/css-ruby/line-breaking-1-ref.html | 17 +++++++ layout/reftests/css-ruby/line-breaking-1.html | 20 ++++++++ layout/reftests/css-ruby/line-breaking-2-ref.html | 13 +++++ layout/reftests/css-ruby/line-breaking-2.html | 13 +++++ layout/reftests/css-ruby/line-height-1-ref.html | 21 ++++++++ layout/reftests/css-ruby/line-height-1.html | 14 +++++ layout/reftests/css-ruby/line-height-2-ref.html | 22 ++++++++ layout/reftests/css-ruby/line-height-2.html | 15 ++++++ layout/reftests/css-ruby/line-height-3-ref.html | 24 +++++++++ layout/reftests/css-ruby/line-height-3.html | 16 ++++++ layout/reftests/css-ruby/line-height-4-ref.html | 15 ++++++ layout/reftests/css-ruby/line-height-4.html | 7 +++ layout/reftests/css-ruby/min-font-size-1-ref.html | 13 +++++ layout/reftests/css-ruby/min-font-size-1.html | 13 +++++ layout/reftests/css-ruby/nested-ruby-1.html | 19 +++++++ layout/reftests/css-ruby/no-transform-ref.html | 14 +++++ layout/reftests/css-ruby/no-transform.html | 19 +++++++ layout/reftests/css-ruby/reftest-stylo.list | 59 ++++++++++++++++++++++ layout/reftests/css-ruby/reftest.list | 57 +++++++++++++++++++++ .../css-ruby/relative-positioning-1-ref.html | 22 ++++++++ .../reftests/css-ruby/relative-positioning-1.html | 24 +++++++++ .../css-ruby/relative-positioning-2-ref.html | 30 +++++++++++ .../reftests/css-ruby/relative-positioning-2.html | 30 +++++++++++ layout/reftests/css-ruby/ruby-align-1-ref.html | 19 +++++++ layout/reftests/css-ruby/ruby-align-1.html | 26 ++++++++++ layout/reftests/css-ruby/ruby-align-1a.html | 26 ++++++++++ layout/reftests/css-ruby/ruby-align-2-ref.html | 29 +++++++++++ layout/reftests/css-ruby/ruby-align-2.html | 27 ++++++++++ layout/reftests/css-ruby/ruby-align-2a.html | 27 ++++++++++ .../css-ruby/ruby-position-horizontal-ref.html | 35 +++++++++++++ .../css-ruby/ruby-position-horizontal.html | 28 ++++++++++ .../css-ruby/ruby-position-vertical-lr-ref.html | 38 ++++++++++++++ .../css-ruby/ruby-position-vertical-lr.html | 31 ++++++++++++ .../css-ruby/ruby-position-vertical-rl-ref.html | 38 ++++++++++++++ .../css-ruby/ruby-position-vertical-rl.html | 31 ++++++++++++ layout/reftests/css-ruby/ruby-reflow-1-noruby.html | 17 +++++++ .../css-ruby/ruby-reflow-1-opaqueruby.html | 20 ++++++++ .../css-ruby/ruby-reflow-1-transparentruby.html | 21 ++++++++ layout/reftests/css-ruby/ruby-span-1-ref.html | 11 ++++ layout/reftests/css-ruby/ruby-span-1.html | 11 ++++ .../reftests/css-ruby/ruby-whitespace-1-ref.html | 36 +++++++++++++ layout/reftests/css-ruby/ruby-whitespace-1.html | 34 +++++++++++++ .../reftests/css-ruby/ruby-whitespace-2-ref.html | 20 ++++++++ layout/reftests/css-ruby/ruby-whitespace-2.html | 19 +++++++ layout/reftests/css-ruby/utils.js | 33 ++++++++++++ 115 files changed, 2915 insertions(+) create mode 100644 layout/reftests/css-ruby/bidi-1-ref.html create mode 100644 layout/reftests/css-ruby/bidi-1.html create mode 100644 layout/reftests/css-ruby/bidi-2-ref.html create mode 100644 layout/reftests/css-ruby/bidi-2.html create mode 100644 layout/reftests/css-ruby/box-generation-1-ref.html create mode 100644 layout/reftests/css-ruby/box-generation-1.html create mode 100644 layout/reftests/css-ruby/box-generation-2-ref.html create mode 100644 layout/reftests/css-ruby/box-generation-2.html create mode 100644 layout/reftests/css-ruby/box-generation-3-ref.html create mode 100644 layout/reftests/css-ruby/box-generation-3.html create mode 100644 layout/reftests/css-ruby/box-generation-4-ref.html create mode 100644 layout/reftests/css-ruby/box-generation-4.html create mode 100644 layout/reftests/css-ruby/box-generation-5-ref.html create mode 100644 layout/reftests/css-ruby/box-generation-5.html create mode 100644 layout/reftests/css-ruby/box-properties-1-ref.html create mode 100644 layout/reftests/css-ruby/box-properties-1.html create mode 100644 layout/reftests/css-ruby/box-properties-2-ref.html create mode 100644 layout/reftests/css-ruby/box-properties-2.html create mode 100644 layout/reftests/css-ruby/box-properties-3-ref.html create mode 100644 layout/reftests/css-ruby/box-properties-3.html create mode 100644 layout/reftests/css-ruby/box-properties-4-ref.html create mode 100644 layout/reftests/css-ruby/box-properties-4.html create mode 100644 layout/reftests/css-ruby/bug1181890-notref.html create mode 100644 layout/reftests/css-ruby/bug1181890-ref.html create mode 100644 layout/reftests/css-ruby/bug1181890.html create mode 100644 layout/reftests/css-ruby/common.css create mode 100644 layout/reftests/css-ruby/dynamic-insertion-1-ref.html create mode 100644 layout/reftests/css-ruby/dynamic-insertion-1.html create mode 100644 layout/reftests/css-ruby/dynamic-insertion-2-ref.html create mode 100644 layout/reftests/css-ruby/dynamic-insertion-2.html create mode 100644 layout/reftests/css-ruby/dynamic-insertion-3-ref.html create mode 100644 layout/reftests/css-ruby/dynamic-insertion-3.html create mode 100644 layout/reftests/css-ruby/dynamic-insertion.js create mode 100644 layout/reftests/css-ruby/dynamic-removal-1-ref.html create mode 100644 layout/reftests/css-ruby/dynamic-removal-1.html create mode 100644 layout/reftests/css-ruby/dynamic-removal-2-ref.html create mode 100644 layout/reftests/css-ruby/dynamic-removal-2.html create mode 100644 layout/reftests/css-ruby/dynamic-removal-3-ref.html create mode 100644 layout/reftests/css-ruby/dynamic-removal-3.html create mode 100644 layout/reftests/css-ruby/dynamic-removal.js create mode 100644 layout/reftests/css-ruby/float-handling-ref.html create mode 100644 layout/reftests/css-ruby/float-handling.html create mode 100644 layout/reftests/css-ruby/inflated-ruby-1-ref.html create mode 100644 layout/reftests/css-ruby/inflated-ruby-1.html create mode 100644 layout/reftests/css-ruby/intra-level-whitespace-1-ref.html create mode 100644 layout/reftests/css-ruby/intra-level-whitespace-1.html create mode 100644 layout/reftests/css-ruby/intra-level-whitespace-2-ref.html create mode 100644 layout/reftests/css-ruby/intra-level-whitespace-2.html create mode 100644 layout/reftests/css-ruby/intra-level-whitespace-3-ref.html create mode 100644 layout/reftests/css-ruby/intra-level-whitespace-3.html create mode 100644 layout/reftests/css-ruby/intrinsic-isize-1-ref.html create mode 100644 layout/reftests/css-ruby/intrinsic-isize-1.html create mode 100644 layout/reftests/css-ruby/intrinsic-isize-2-ref.html create mode 100644 layout/reftests/css-ruby/intrinsic-isize-2.html create mode 100644 layout/reftests/css-ruby/justification-1-ref.html create mode 100644 layout/reftests/css-ruby/justification-1.html create mode 100644 layout/reftests/css-ruby/justification-2-ref.html create mode 100644 layout/reftests/css-ruby/justification-2.html create mode 100644 layout/reftests/css-ruby/lang-specific-style-1-ref.html create mode 100644 layout/reftests/css-ruby/lang-specific-style-1.html create mode 100644 layout/reftests/css-ruby/line-break-suppression-1-ref.html create mode 100644 layout/reftests/css-ruby/line-break-suppression-1.html create mode 100644 layout/reftests/css-ruby/line-break-suppression-2-ref.html create mode 100644 layout/reftests/css-ruby/line-break-suppression-2.html create mode 100644 layout/reftests/css-ruby/line-break-suppression-3-ref.html create mode 100644 layout/reftests/css-ruby/line-break-suppression-3.html create mode 100644 layout/reftests/css-ruby/line-break-suppression-4-ref.html create mode 100644 layout/reftests/css-ruby/line-break-suppression-4.html create mode 100644 layout/reftests/css-ruby/line-break-suppression-5-ref.html create mode 100644 layout/reftests/css-ruby/line-break-suppression-5.html create mode 100644 layout/reftests/css-ruby/line-breaking-1-ref.html create mode 100644 layout/reftests/css-ruby/line-breaking-1.html create mode 100644 layout/reftests/css-ruby/line-breaking-2-ref.html create mode 100644 layout/reftests/css-ruby/line-breaking-2.html create mode 100644 layout/reftests/css-ruby/line-height-1-ref.html create mode 100644 layout/reftests/css-ruby/line-height-1.html create mode 100644 layout/reftests/css-ruby/line-height-2-ref.html create mode 100644 layout/reftests/css-ruby/line-height-2.html create mode 100644 layout/reftests/css-ruby/line-height-3-ref.html create mode 100644 layout/reftests/css-ruby/line-height-3.html create mode 100644 layout/reftests/css-ruby/line-height-4-ref.html create mode 100644 layout/reftests/css-ruby/line-height-4.html create mode 100644 layout/reftests/css-ruby/min-font-size-1-ref.html create mode 100644 layout/reftests/css-ruby/min-font-size-1.html create mode 100644 layout/reftests/css-ruby/nested-ruby-1.html create mode 100644 layout/reftests/css-ruby/no-transform-ref.html create mode 100644 layout/reftests/css-ruby/no-transform.html create mode 100644 layout/reftests/css-ruby/reftest-stylo.list create mode 100644 layout/reftests/css-ruby/reftest.list create mode 100644 layout/reftests/css-ruby/relative-positioning-1-ref.html create mode 100644 layout/reftests/css-ruby/relative-positioning-1.html create mode 100644 layout/reftests/css-ruby/relative-positioning-2-ref.html create mode 100644 layout/reftests/css-ruby/relative-positioning-2.html create mode 100644 layout/reftests/css-ruby/ruby-align-1-ref.html create mode 100644 layout/reftests/css-ruby/ruby-align-1.html create mode 100644 layout/reftests/css-ruby/ruby-align-1a.html create mode 100644 layout/reftests/css-ruby/ruby-align-2-ref.html create mode 100644 layout/reftests/css-ruby/ruby-align-2.html create mode 100644 layout/reftests/css-ruby/ruby-align-2a.html create mode 100644 layout/reftests/css-ruby/ruby-position-horizontal-ref.html create mode 100644 layout/reftests/css-ruby/ruby-position-horizontal.html create mode 100644 layout/reftests/css-ruby/ruby-position-vertical-lr-ref.html create mode 100644 layout/reftests/css-ruby/ruby-position-vertical-lr.html create mode 100644 layout/reftests/css-ruby/ruby-position-vertical-rl-ref.html create mode 100644 layout/reftests/css-ruby/ruby-position-vertical-rl.html create mode 100644 layout/reftests/css-ruby/ruby-reflow-1-noruby.html create mode 100644 layout/reftests/css-ruby/ruby-reflow-1-opaqueruby.html create mode 100644 layout/reftests/css-ruby/ruby-reflow-1-transparentruby.html create mode 100644 layout/reftests/css-ruby/ruby-span-1-ref.html create mode 100644 layout/reftests/css-ruby/ruby-span-1.html create mode 100644 layout/reftests/css-ruby/ruby-whitespace-1-ref.html create mode 100644 layout/reftests/css-ruby/ruby-whitespace-1.html create mode 100644 layout/reftests/css-ruby/ruby-whitespace-2-ref.html create mode 100644 layout/reftests/css-ruby/ruby-whitespace-2.html create mode 100644 layout/reftests/css-ruby/utils.js (limited to 'layout/reftests/css-ruby') diff --git a/layout/reftests/css-ruby/bidi-1-ref.html b/layout/reftests/css-ruby/bidi-1-ref.html new file mode 100644 index 000000000..c69bb0467 --- /dev/null +++ b/layout/reftests/css-ruby/bidi-1-ref.html @@ -0,0 +1,16 @@ + + + + + Bug 1141928 - Position of ruby annotation in RTL text + + + + basetext + + diff --git a/layout/reftests/css-ruby/bidi-1.html b/layout/reftests/css-ruby/bidi-1.html new file mode 100644 index 000000000..4b22c6535 --- /dev/null +++ b/layout/reftests/css-ruby/bidi-1.html @@ -0,0 +1,16 @@ + + + + + Bug 1141928 - Position of ruby annotation in RTL text + + + + basetext + + diff --git a/layout/reftests/css-ruby/bidi-2-ref.html b/layout/reftests/css-ruby/bidi-2-ref.html new file mode 100644 index 000000000..c46e956e0 --- /dev/null +++ b/layout/reftests/css-ruby/bidi-2-ref.html @@ -0,0 +1,39 @@ + + + + + Bug 1141931 - Bidi reordering of ruby + + + + +

+ + base1base2 + text1text2 + base4base3 + text4text3 + + + base7base8 + text7text8 + base6base5 + text6text5 + +

+

+ + base5base6 + text5text6 + base8base7 + text8text7 + + + base3base4 + text3text4 + base2base1 + text2text1 + +

+ + diff --git a/layout/reftests/css-ruby/bidi-2.html b/layout/reftests/css-ruby/bidi-2.html new file mode 100644 index 000000000..a2b2597b6 --- /dev/null +++ b/layout/reftests/css-ruby/bidi-2.html @@ -0,0 +1,51 @@ + + + + + Bug 1141931 - Bidi reordering of ruby + + + + +

+ + base1base2 + + text1text2 + + + base3base4 + + text3text4 + + + base5base6 + text5text6 + + base7base8 + + text7text8 + +

+

+ + base1base2 + + text1text2 + + + base3base4 + + text3text4 + + + base5base6 + text5text6 + + base7base8 + + text7text8 + +

+ + diff --git a/layout/reftests/css-ruby/box-generation-1-ref.html b/layout/reftests/css-ruby/box-generation-1-ref.html new file mode 100644 index 000000000..55ea0b27e --- /dev/null +++ b/layout/reftests/css-ruby/box-generation-1-ref.html @@ -0,0 +1,43 @@ + + + + + Bug 1088489 - Test for pseudo ruby box generation + + + + +

|a bc d + e f + gh + i j + k l + m nop + qrst + u v + w x + y z|

+ +

| a bc d + e f + gh + i j + k l + m nop + qrst + u v + w x + y z |

+ + + diff --git a/layout/reftests/css-ruby/box-generation-1.html b/layout/reftests/css-ruby/box-generation-1.html new file mode 100644 index 000000000..2b829528f --- /dev/null +++ b/layout/reftests/css-ruby/box-generation-1.html @@ -0,0 +1,42 @@ + + + + + Bug 1088489 - Test for pseudo ruby box generation + + + + + +

| + a b + c d + e f + g h + i j + k l + m n + o p + q r + s t + u v + w x + y z + |

+ +

| a b + c d + e f + g h + i j + k l + m n + o p + q r + s t + u v + w x + y z |

+ + + diff --git a/layout/reftests/css-ruby/box-generation-2-ref.html b/layout/reftests/css-ruby/box-generation-2-ref.html new file mode 100644 index 000000000..879681c4c --- /dev/null +++ b/layout/reftests/css-ruby/box-generation-2-ref.html @@ -0,0 +1,49 @@ + + + + + Bug 1088489 - Test for pseudo ruby box generation + + + + +

|a b + c defg h + i j + k lmn + o p + q r + s tu v + w x + yz|

+ +

| a b + c defg h + i j + k lmn + o p + q r + s tu v + w x + yz |

+ + + diff --git a/layout/reftests/css-ruby/box-generation-2.html b/layout/reftests/css-ruby/box-generation-2.html new file mode 100644 index 000000000..0d734aa75 --- /dev/null +++ b/layout/reftests/css-ruby/box-generation-2.html @@ -0,0 +1,42 @@ + + + + + Bug 1088489 - Test for pseudo ruby box generation + + + + + +

| + a b + c d + e f + g h + i j + k l + m n + o p + q r + s t + u v + w x + y z + |

+ +

| a b + c d + e f + g h + i j + k l + m n + o p + q r + s t + u v + w x + y z |

+ + + diff --git a/layout/reftests/css-ruby/box-generation-3-ref.html b/layout/reftests/css-ruby/box-generation-3-ref.html new file mode 100644 index 000000000..65c3b8c1c --- /dev/null +++ b/layout/reftests/css-ruby/box-generation-3-ref.html @@ -0,0 +1,45 @@ + + + + + Bug 1088489 - Test for pseudo ruby box generation + + + + +

|a bcd + e f + g h + ijkl + m n + o p + q r + st + u v + w xy z|

+ +

| a bcd + e f + g h + ijkl + m n + o p + q r + st + u v + w xy z |

+ + + diff --git a/layout/reftests/css-ruby/box-generation-3.html b/layout/reftests/css-ruby/box-generation-3.html new file mode 100644 index 000000000..8a4c43e71 --- /dev/null +++ b/layout/reftests/css-ruby/box-generation-3.html @@ -0,0 +1,42 @@ + + + + + Bug 1088489 - Test for pseudo ruby box generation + + + + + +

| + a b + c d + e f + g h + i j + k l + m n + o p + q r + s t + u v + w x + y z + |

+ +

| a b + c d + e f + g h + i j + k l + m n + o p + q r + s t + u v + w x + y z |

+ + + diff --git a/layout/reftests/css-ruby/box-generation-4-ref.html b/layout/reftests/css-ruby/box-generation-4-ref.html new file mode 100644 index 000000000..8670d54a4 --- /dev/null +++ b/layout/reftests/css-ruby/box-generation-4-ref.html @@ -0,0 +1,49 @@ + + + + + Bug 1088489 - Test for pseudo ruby box generation + + + + +

|ab + c d + e fghi j + k l + m no p + q r + s t + u v + wx + yz|

+ +

| ab + c d + e fghi j + k l + m no p + q r + s t + u v + wx + yz |

+ + + diff --git a/layout/reftests/css-ruby/box-generation-4.html b/layout/reftests/css-ruby/box-generation-4.html new file mode 100644 index 000000000..2dc24d3ee --- /dev/null +++ b/layout/reftests/css-ruby/box-generation-4.html @@ -0,0 +1,42 @@ + + + + + Bug 1088489 - Test for pseudo ruby box generation + + + + + +

| + a b + c d + e f + g h + i j + k l + m n + o p + q r + s t + u v + w x + y z + |

+ +

| a b + c d + e f + g h + i j + k l + m n + o p + q r + s t + u v + w x + y z |

+ + + diff --git a/layout/reftests/css-ruby/box-generation-5-ref.html b/layout/reftests/css-ruby/box-generation-5-ref.html new file mode 100644 index 000000000..32ed1f97e --- /dev/null +++ b/layout/reftests/css-ruby/box-generation-5-ref.html @@ -0,0 +1,47 @@ + + + + + Bug 1088489 - Test for pseudo ruby box generation + + + + +

|a b + c d + e f + g h + i j + klm n + o pq r + s tuvw xy z|

+ +

| a b + c d + e f + g h + i j + klm n + o pq r + s tuvw xy z |

+ + + diff --git a/layout/reftests/css-ruby/box-generation-5.html b/layout/reftests/css-ruby/box-generation-5.html new file mode 100644 index 000000000..043cf7576 --- /dev/null +++ b/layout/reftests/css-ruby/box-generation-5.html @@ -0,0 +1,42 @@ + + + + + Bug 1088489 - Test for pseudo ruby box generation + + + + + +

| + a b + c d + e f + g h + i j + k l + m n + o p + q r + s t + u v + w x + y z + |

+ +

| a b + c d + e f + g h + i j + k l + m n + o p + q r + s t + u v + w x + y z |

+ + + diff --git a/layout/reftests/css-ruby/box-properties-1-ref.html b/layout/reftests/css-ruby/box-properties-1-ref.html new file mode 100644 index 000000000..a8e340653 --- /dev/null +++ b/layout/reftests/css-ruby/box-properties-1-ref.html @@ -0,0 +1,17 @@ + + + + + Bug 1055667 - Box properties on ruby boxes + + +
+ |base1 + +
base2
+ base3
| +
+ + diff --git a/layout/reftests/css-ruby/box-properties-1.html b/layout/reftests/css-ruby/box-properties-1.html new file mode 100644 index 000000000..1b463eb5b --- /dev/null +++ b/layout/reftests/css-ruby/box-properties-1.html @@ -0,0 +1,21 @@ + + + + + Bug 1055667 - Box properties on ruby boxes + + + +
+ | + base1 + base2 + base3 + + +
+
+
| +
+ + diff --git a/layout/reftests/css-ruby/box-properties-2-ref.html b/layout/reftests/css-ruby/box-properties-2-ref.html new file mode 100644 index 000000000..5abfa2e84 --- /dev/null +++ b/layout/reftests/css-ruby/box-properties-2-ref.html @@ -0,0 +1,29 @@ + + + + + Bug 1055667 - Box properties on ruby boxes + + + + + + base1 +
+ base3 + + +
text1
+ + +
+
+ + + diff --git a/layout/reftests/css-ruby/box-properties-2.html b/layout/reftests/css-ruby/box-properties-2.html new file mode 100644 index 000000000..ca1201693 --- /dev/null +++ b/layout/reftests/css-ruby/box-properties-2.html @@ -0,0 +1,25 @@ + + + + + Bug 1055667 - Box properties on ruby boxes + + + + + + base1 +
+ base3 + + +
text1
+
+
+ + + diff --git a/layout/reftests/css-ruby/box-properties-3-ref.html b/layout/reftests/css-ruby/box-properties-3-ref.html new file mode 100644 index 000000000..465e54758 --- /dev/null +++ b/layout/reftests/css-ruby/box-properties-3-ref.html @@ -0,0 +1,18 @@ + + + + + Bug 1055667 - Box properties on ruby boxes + + + + + + base1 + + + text1 + + + + diff --git a/layout/reftests/css-ruby/box-properties-3.html b/layout/reftests/css-ruby/box-properties-3.html new file mode 100644 index 000000000..6b014c268 --- /dev/null +++ b/layout/reftests/css-ruby/box-properties-3.html @@ -0,0 +1,18 @@ + + + + + Bug 1055667 - Box properties on ruby boxes + + + + + + base1 + + + text1 + + + + diff --git a/layout/reftests/css-ruby/box-properties-4-ref.html b/layout/reftests/css-ruby/box-properties-4-ref.html new file mode 100644 index 000000000..db6788daa --- /dev/null +++ b/layout/reftests/css-ruby/box-properties-4-ref.html @@ -0,0 +1,24 @@ + + + + + Bug 1055667 - Box properties on ruby boxes + + + + +
+
+
+ + diff --git a/layout/reftests/css-ruby/box-properties-4.html b/layout/reftests/css-ruby/box-properties-4.html new file mode 100644 index 000000000..6e953bc3a --- /dev/null +++ b/layout/reftests/css-ruby/box-properties-4.html @@ -0,0 +1,23 @@ + + + + + Bug 1055667 - Box properties on ruby boxes + + + + +
+
+
+ + diff --git a/layout/reftests/css-ruby/bug1181890-notref.html b/layout/reftests/css-ruby/bug1181890-notref.html new file mode 100644 index 000000000..0e97415a8 --- /dev/null +++ b/layout/reftests/css-ruby/bug1181890-notref.html @@ -0,0 +1,9 @@ + +

+ Aaaaaaaaaaaaa + BBBBBb +

+

+ Aaaaaaaaaaaaa + BBBBBb +

diff --git a/layout/reftests/css-ruby/bug1181890-ref.html b/layout/reftests/css-ruby/bug1181890-ref.html new file mode 100644 index 000000000..41a46d13e --- /dev/null +++ b/layout/reftests/css-ruby/bug1181890-ref.html @@ -0,0 +1,9 @@ + +

+ Aaaaaaaaaaaaa + BBBBBb +

+

+ Aaaaaaaaaaaaa + BBBBBb +

diff --git a/layout/reftests/css-ruby/bug1181890.html b/layout/reftests/css-ruby/bug1181890.html new file mode 100644 index 000000000..3369a7482 --- /dev/null +++ b/layout/reftests/css-ruby/bug1181890.html @@ -0,0 +1,10 @@ + +

+ Aaaaaaaaaaaaa + BBBBBb +

+

+ Aaaaaaaaaaaaa + BBBBBb +

+‎ diff --git a/layout/reftests/css-ruby/common.css b/layout/reftests/css-ruby/common.css new file mode 100644 index 000000000..45bdd379c --- /dev/null +++ b/layout/reftests/css-ruby/common.css @@ -0,0 +1,22 @@ +@font-face { + font-family: Ahem; + src: url(../fonts/Ahem.ttf); +} +rbc { + display: ruby-base-container; + unicode-bidi: isolate; +} +[pseudo] { + font-size: inherit; + line-height: inherit; +} +[pseudo] > rt { + font-size: 50%; +} +[pseudo] > rt[pseudo] { + font-size: inherit; +} + +.large { + font-size: 200%; +} diff --git a/layout/reftests/css-ruby/dynamic-insertion-1-ref.html b/layout/reftests/css-ruby/dynamic-insertion-1-ref.html new file mode 100644 index 000000000..b174b85c8 --- /dev/null +++ b/layout/reftests/css-ruby/dynamic-insertion-1-ref.html @@ -0,0 +1,37 @@ + + + + + Bug 1087872 - Test for dynamic insertion of ruby frames + + + + +

One space should exist between 'a' and 'b':

+ +

a b

+

a b

+

a b

+

a b

+

a b

+ +

a b

+

a b

+

a b

+

a b

+

a b

+ +

a b

+

a b

+

a b

+

a b

+

a b

+

a b

+

a b

+ +

a b

+

a b

+

a b

+ + + diff --git a/layout/reftests/css-ruby/dynamic-insertion-1.html b/layout/reftests/css-ruby/dynamic-insertion-1.html new file mode 100644 index 000000000..72bf5aeb6 --- /dev/null +++ b/layout/reftests/css-ruby/dynamic-insertion-1.html @@ -0,0 +1,55 @@ + + + + + Bug 1087872 - Test for dynamic insertion of ruby frames + + + + + +

One space should exist between 'a' and 'b':

+ + + +

a b

+

a b

+ +

a b

+ +

a b

+

a b

+ + + +

a b

+

a b

+ +

a b

+ +

a b

+

a b

+ + + +

a b

+

a b

+ +

a b

+

a b

+ +

a b

+ +

a b

+

a b

+ + + +

ab

+ +

ab

+ +

ab

+ + + diff --git a/layout/reftests/css-ruby/dynamic-insertion-2-ref.html b/layout/reftests/css-ruby/dynamic-insertion-2-ref.html new file mode 100644 index 000000000..eba1901bf --- /dev/null +++ b/layout/reftests/css-ruby/dynamic-insertion-2-ref.html @@ -0,0 +1,27 @@ + + + + + Bug 1087872 - Test for dynamic insertion of ruby frames + + + + +

No space should exist between 'a' and 'b':

+ +

a b

+

a b

+

a b

+

a b

+

a b

+ +

a b

+

a b

+

a b

+

a b

+

a b

+

a b

+

a b

+ + + diff --git a/layout/reftests/css-ruby/dynamic-insertion-2.html b/layout/reftests/css-ruby/dynamic-insertion-2.html new file mode 100644 index 000000000..c1ec56594 --- /dev/null +++ b/layout/reftests/css-ruby/dynamic-insertion-2.html @@ -0,0 +1,37 @@ + + + + + Bug 1087872 - Test for dynamic insertion of ruby frames + + + + + +

No space should exist between 'a' and 'b':

+ + + +

a b

+

a b

+ +

a b

+ +

a b

+ +

a b

+ + + +

ab

+

ab

+

ab

+ +

ab

+

ab

+

ab

+ +

ab

+ + + diff --git a/layout/reftests/css-ruby/dynamic-insertion-3-ref.html b/layout/reftests/css-ruby/dynamic-insertion-3-ref.html new file mode 100644 index 000000000..a26c3d4fe --- /dev/null +++ b/layout/reftests/css-ruby/dynamic-insertion-3-ref.html @@ -0,0 +1,19 @@ + + + + + Bug 1087872 - Test for dynamic insertion of ruby frames + + + + +

'a' and 'b' should be paired with 'x' and 'y' respectively:

+ +

abxy

+

abxy

+

axby

+

abxy

+

abxy

+ + + diff --git a/layout/reftests/css-ruby/dynamic-insertion-3.html b/layout/reftests/css-ruby/dynamic-insertion-3.html new file mode 100644 index 000000000..f19d70260 --- /dev/null +++ b/layout/reftests/css-ruby/dynamic-insertion-3.html @@ -0,0 +1,26 @@ + + + + + Bug 1087872 - Test for dynamic insertion of ruby frames + + + + + +

'a' and 'b' should be paired with 'x' and 'y' respectively:

+ + + +

abxy

+ +

abxy

+ +

axy

+ +

abxy

+ +

abxy

+ + + diff --git a/layout/reftests/css-ruby/dynamic-insertion.js b/layout/reftests/css-ruby/dynamic-insertion.js new file mode 100644 index 000000000..0bf6cd969 --- /dev/null +++ b/layout/reftests/css-ruby/dynamic-insertion.js @@ -0,0 +1,42 @@ +window.onload = function() { + // Force a reflow before any changes. + document.body.clientWidth; + + var elems = document.querySelectorAll('[data-insert]'); + Array.from(elems).forEach(function(e) { + var parent, ref; + switch (e.dataset.insert) { + case 'start': + parent = e; + ref = e.firstChild; + break; + + case 'end': + parent = e; + ref = null; + break; + + case 'before': + parent = e.parentNode; + ref = e; + break; + + case 'after': + parent = e.parentNode; + ref = e.nextSibling; + break; + } + + var elem, textnode; + if ('text' in e.dataset) { + textnode = document.createTextNode(e.dataset.text); + } + if ('tag' in e.dataset) { + elem = document.createElement(e.dataset.tag); + if (textnode) { + elem.appendChild(textnode); + } + } + parent.insertBefore(elem ? elem : textnode, ref); + }); +}; diff --git a/layout/reftests/css-ruby/dynamic-removal-1-ref.html b/layout/reftests/css-ruby/dynamic-removal-1-ref.html new file mode 100644 index 000000000..5fdcd8a7d --- /dev/null +++ b/layout/reftests/css-ruby/dynamic-removal-1-ref.html @@ -0,0 +1,25 @@ + + + + + Bug 1087872 - Test for dynamic removal of ruby frames + + + + +

No space should exist between 'a' and 'b':

+ +

a b

+

a b

+

a b

+ +

a b

+

a b

+

a b

+ +

ab x

+

abx

+

ab x

+ + + diff --git a/layout/reftests/css-ruby/dynamic-removal-1.html b/layout/reftests/css-ruby/dynamic-removal-1.html new file mode 100644 index 000000000..edff9246e --- /dev/null +++ b/layout/reftests/css-ruby/dynamic-removal-1.html @@ -0,0 +1,38 @@ + + + + + Bug 1087872 - Test for dynamic removal of ruby frames + + + + + +

No space should exist between 'a' and 'b':

+ + + +

a b

+ +

a b

+ +

a b

+ + + +

a b

+ +

a b

+ +

a b

+ + + +

ab x

+ +

abx

+ +

ab x

+ + + diff --git a/layout/reftests/css-ruby/dynamic-removal-2-ref.html b/layout/reftests/css-ruby/dynamic-removal-2-ref.html new file mode 100644 index 000000000..53500358c --- /dev/null +++ b/layout/reftests/css-ruby/dynamic-removal-2-ref.html @@ -0,0 +1,18 @@ + + + + + Bug 1087872 - Test for dynamic removal of ruby frames + + + + +

One space should exist between 'a' and 'b':

+ +

a b

+

a b

+

a b

+

a b

+

a bx y

+ + diff --git a/layout/reftests/css-ruby/dynamic-removal-2.html b/layout/reftests/css-ruby/dynamic-removal-2.html new file mode 100644 index 000000000..f1d3cb67c --- /dev/null +++ b/layout/reftests/css-ruby/dynamic-removal-2.html @@ -0,0 +1,24 @@ + + + + + Bug 1087872 - Test for dynamic removal of ruby frames + + + + + +

One space should exist between 'a' and 'b':

+ + + +

a b

+

a b

+ +

a b

+ +

a b

+ +

a bx y

+ + diff --git a/layout/reftests/css-ruby/dynamic-removal-3-ref.html b/layout/reftests/css-ruby/dynamic-removal-3-ref.html new file mode 100644 index 000000000..2f36b2c7a --- /dev/null +++ b/layout/reftests/css-ruby/dynamic-removal-3-ref.html @@ -0,0 +1,26 @@ + + + + + Bug 1087872 - Test for dynamic removal of ruby frames + + + + +

'a' and 'b' should be paired with 'x' and 'y' respectively:

+ + +

abxy

+

abxy

+

abxy

+ +

abxy

+

abxy

+ +

'ab' should be paried with 'xy':

+ +

abxy

+

abxy

+ + + diff --git a/layout/reftests/css-ruby/dynamic-removal-3.html b/layout/reftests/css-ruby/dynamic-removal-3.html new file mode 100644 index 000000000..4d757ecec --- /dev/null +++ b/layout/reftests/css-ruby/dynamic-removal-3.html @@ -0,0 +1,37 @@ + + + + + Bug 1087872 - Test for dynamic removal of ruby frames + + + + + +

'a' and 'b' should be paired with 'x' and 'y' respectively:

+ + + +

abxy

+ +

abxy

+ +

abxy

+ + + +

a bxy

+ +

abx y

+ +

'ab' should be paried with 'xy':

+ + + +

abxy

+ + +

abxy

+ + + diff --git a/layout/reftests/css-ruby/dynamic-removal.js b/layout/reftests/css-ruby/dynamic-removal.js new file mode 100644 index 000000000..f258f28cf --- /dev/null +++ b/layout/reftests/css-ruby/dynamic-removal.js @@ -0,0 +1,14 @@ +function getElements(className) { + return Array.from(document.getElementsByClassName(className)); +} +window.onload = function() { + // Force a reflow before any changes. + document.body.clientWidth; + + getElements('remove').forEach(function(e) { + e.parentNode.removeChild(e); + }); + getElements('remove-after').forEach(function(e) { + e.parentNode.removeChild(e.nextSibling); + }); +}; diff --git a/layout/reftests/css-ruby/float-handling-ref.html b/layout/reftests/css-ruby/float-handling-ref.html new file mode 100644 index 000000000..d95796d32 --- /dev/null +++ b/layout/reftests/css-ruby/float-handling-ref.html @@ -0,0 +1,23 @@ + + + + + + + + + +
HELLO WORLD
hello world
+
HELLO WORLD
hello world
+
HELLO WORLD
hello world
+
HELLO WORLD
hello world
+ + diff --git a/layout/reftests/css-ruby/float-handling.html b/layout/reftests/css-ruby/float-handling.html new file mode 100644 index 000000000..587483ec1 --- /dev/null +++ b/layout/reftests/css-ruby/float-handling.html @@ -0,0 +1,23 @@ + + + + + + + + + +
HELLO WORLD
hello world
+
HELLO WORLDhello
world
+
HELLO WORLD
hello world
+
HELLO WORLDhello
world
+ + diff --git a/layout/reftests/css-ruby/inflated-ruby-1-ref.html b/layout/reftests/css-ruby/inflated-ruby-1-ref.html new file mode 100644 index 000000000..7ae6e5825 --- /dev/null +++ b/layout/reftests/css-ruby/inflated-ruby-1-ref.html @@ -0,0 +1,6 @@ + + +
baserubytext
diff --git a/layout/reftests/css-ruby/inflated-ruby-1.html b/layout/reftests/css-ruby/inflated-ruby-1.html new file mode 100644 index 000000000..f9c6f1947 --- /dev/null +++ b/layout/reftests/css-ruby/inflated-ruby-1.html @@ -0,0 +1,10 @@ + + + +
baserubytext
diff --git a/layout/reftests/css-ruby/intra-level-whitespace-1-ref.html b/layout/reftests/css-ruby/intra-level-whitespace-1-ref.html new file mode 100644 index 000000000..7cc105032 --- /dev/null +++ b/layout/reftests/css-ruby/intra-level-whitespace-1-ref.html @@ -0,0 +1,22 @@ + + + + + Bug 1099807 - Intra-level whitespace pairing + + + +

+ a b + x y +

+

+ a b + xy +

+

+ ab + x y +

+ + diff --git a/layout/reftests/css-ruby/intra-level-whitespace-1.html b/layout/reftests/css-ruby/intra-level-whitespace-1.html new file mode 100644 index 000000000..d1f23cbdb --- /dev/null +++ b/layout/reftests/css-ruby/intra-level-whitespace-1.html @@ -0,0 +1,22 @@ + + + + + Bug 1099807 - Intra-level whitespace pairing + + + +

+ a b + x y +

+

+ a b + xy +

+

+ ab + x y +

+ + diff --git a/layout/reftests/css-ruby/intra-level-whitespace-2-ref.html b/layout/reftests/css-ruby/intra-level-whitespace-2-ref.html new file mode 100644 index 000000000..fe580bb44 --- /dev/null +++ b/layout/reftests/css-ruby/intra-level-whitespace-2-ref.html @@ -0,0 +1,28 @@ + + + + + Bug 1099807 - Intra-level whitespace pairing + + + + + + 12345 12345 67890 +
12345 678900987654321
+
123456789009876 54321
+
12345 6789009876 54321
+ + + diff --git a/layout/reftests/css-ruby/intra-level-whitespace-2.html b/layout/reftests/css-ruby/intra-level-whitespace-2.html new file mode 100644 index 000000000..f2eddba6c --- /dev/null +++ b/layout/reftests/css-ruby/intra-level-whitespace-2.html @@ -0,0 +1,33 @@ + + + + + Bug 1099807 - Intra-level whitespace pairing + + + + + + 12345 12345 67890 +
12345 678900987654321
+
123456789009876 54321
+
12345 6789009876 54321
+ + + diff --git a/layout/reftests/css-ruby/intra-level-whitespace-3-ref.html b/layout/reftests/css-ruby/intra-level-whitespace-3-ref.html new file mode 100644 index 000000000..1e43d0eac --- /dev/null +++ b/layout/reftests/css-ruby/intra-level-whitespace-3-ref.html @@ -0,0 +1,14 @@ + + + + + Bug 1099807 - Intra-level whitespace pairing + + + + | + beforebase + textafter + | + + diff --git a/layout/reftests/css-ruby/intra-level-whitespace-3.html b/layout/reftests/css-ruby/intra-level-whitespace-3.html new file mode 100644 index 000000000..a3a9b6313 --- /dev/null +++ b/layout/reftests/css-ruby/intra-level-whitespace-3.html @@ -0,0 +1,34 @@ + + + + + Bug 1099807 - Intra-level whitespace pairing + + + + + + | + base + text + | + + diff --git a/layout/reftests/css-ruby/intrinsic-isize-1-ref.html b/layout/reftests/css-ruby/intrinsic-isize-1-ref.html new file mode 100644 index 000000000..902e8537c --- /dev/null +++ b/layout/reftests/css-ruby/intrinsic-isize-1-ref.html @@ -0,0 +1,49 @@ + + + + + Bug 1134432 - Intrinsic ISize calculation of ruby + + + +
+ ABCDEF +
+
+ ABCDEF +
+
+ +
+ XYZABCDEFXYZ +
+
+ XYZABCDEFXYZ +
+
+ +
+ あいうえ +
+
+ あいうえ +
+
+ +
+ おあいうえお +
+
+ おあいうえお +
+
+ + diff --git a/layout/reftests/css-ruby/intrinsic-isize-1.html b/layout/reftests/css-ruby/intrinsic-isize-1.html new file mode 100644 index 000000000..dd900b4b7 --- /dev/null +++ b/layout/reftests/css-ruby/intrinsic-isize-1.html @@ -0,0 +1,46 @@ + + + + + Bug 1134432 - Intrinsic ISize calculation of ruby + + + +
+ ABCDEF +
+
+ ABCDEF +
+
+ +
+ XYZABCDEFXYZ +
+
+ XYZABCDEFXYZ +
+
+ +
+ あいうえ +
+
+ あいうえ +
+
+ +
+ おあいうえお +
+
+ おあいうえお +
+
+ + diff --git a/layout/reftests/css-ruby/intrinsic-isize-2-ref.html b/layout/reftests/css-ruby/intrinsic-isize-2-ref.html new file mode 100644 index 000000000..cb706c13e --- /dev/null +++ b/layout/reftests/css-ruby/intrinsic-isize-2-ref.html @@ -0,0 +1,31 @@ + + + + + Bug 1180443 - Intrinsic ISize calculation of ruby with whitespace + + + +

No line break should happen in any block, and the content should just fit in the block.

+ +
+ ABC DEF +
+
+ XYZ ABCDEF XYZ +
+ +
+ あい うえ +
+
+ お あいうえ お +
+
+ + diff --git a/layout/reftests/css-ruby/intrinsic-isize-2.html b/layout/reftests/css-ruby/intrinsic-isize-2.html new file mode 100644 index 000000000..05991bb1c --- /dev/null +++ b/layout/reftests/css-ruby/intrinsic-isize-2.html @@ -0,0 +1,31 @@ + + + + + Bug 1180443 - Intrinsic ISize calculation of ruby with whitespace + + + +

No line break should happen in any block, and the content should just fit in the block.

+ +
+ ABC DEF +
+
+ XYZ ABCDEF XYZ +
+ +
+ あい うえ +
+
+ お あいうえ お +
+
+ + diff --git a/layout/reftests/css-ruby/justification-1-ref.html b/layout/reftests/css-ruby/justification-1-ref.html new file mode 100644 index 000000000..f695fd118 --- /dev/null +++ b/layout/reftests/css-ruby/justification-1-ref.html @@ -0,0 +1,16 @@ + + + + + Bug 1116631 - Justification with ruby span + + + + +
+ ab +
+ + diff --git a/layout/reftests/css-ruby/justification-1.html b/layout/reftests/css-ruby/justification-1.html new file mode 100644 index 000000000..78dc3f439 --- /dev/null +++ b/layout/reftests/css-ruby/justification-1.html @@ -0,0 +1,17 @@ + + + + + Bug 1116631 - Justification with ruby span + + + + +
+ ab +
+
+ + diff --git a/layout/reftests/css-ruby/justification-2-ref.html b/layout/reftests/css-ruby/justification-2-ref.html new file mode 100644 index 000000000..02a573de1 --- /dev/null +++ b/layout/reftests/css-ruby/justification-2-ref.html @@ -0,0 +1,20 @@ + + + + + Bug 1116631 - Justification with ruby span + + + + +
+ + diff --git a/layout/reftests/css-ruby/justification-2.html b/layout/reftests/css-ruby/justification-2.html new file mode 100644 index 000000000..5c184f9a9 --- /dev/null +++ b/layout/reftests/css-ruby/justification-2.html @@ -0,0 +1,24 @@ + + + + + Bug 1116631 - Justification with ruby span + + + + +
+ + + +
+ + diff --git a/layout/reftests/css-ruby/lang-specific-style-1-ref.html b/layout/reftests/css-ruby/lang-specific-style-1-ref.html new file mode 100644 index 000000000..379c82bd3 --- /dev/null +++ b/layout/reftests/css-ruby/lang-specific-style-1-ref.html @@ -0,0 +1,14 @@ + + + + + Bug 1133624 - Test for lang-specific default stylesheet for ruby + + + +

base x xtext x x

+

base x xtext x x

+

base x xtext x x

+

base x xtext x x

+ + diff --git a/layout/reftests/css-ruby/lang-specific-style-1.html b/layout/reftests/css-ruby/lang-specific-style-1.html new file mode 100644 index 000000000..1df3e71e5 --- /dev/null +++ b/layout/reftests/css-ruby/lang-specific-style-1.html @@ -0,0 +1,14 @@ + + + + + Bug 1133624 - Test for lang-specific default stylesheet for ruby + + + +

base x xtext x x

+

base x xtext x x

+

base x xtext x x

+

base x xtext x x

+ + diff --git a/layout/reftests/css-ruby/line-break-suppression-1-ref.html b/layout/reftests/css-ruby/line-break-suppression-1-ref.html new file mode 100644 index 000000000..2823a6d7d --- /dev/null +++ b/layout/reftests/css-ruby/line-break-suppression-1-ref.html @@ -0,0 +1,15 @@ + + + + + Test for ruby line break suppression + + + + ab
+ ab
+ ab
+ ab
+ ab + + diff --git a/layout/reftests/css-ruby/line-break-suppression-1.html b/layout/reftests/css-ruby/line-break-suppression-1.html new file mode 100644 index 000000000..eb05af68a --- /dev/null +++ b/layout/reftests/css-ruby/line-break-suppression-1.html @@ -0,0 +1,15 @@ + + + + + Test for ruby line break suppression + + + + a
b

+ a
b

+ a
b

+ a
b

+ a
b
+ + diff --git a/layout/reftests/css-ruby/line-break-suppression-2-ref.html b/layout/reftests/css-ruby/line-break-suppression-2-ref.html new file mode 100644 index 000000000..a39ca0baa --- /dev/null +++ b/layout/reftests/css-ruby/line-break-suppression-2-ref.html @@ -0,0 +1,17 @@ + + + + + Test for ruby line break suppression + + + +
+ aaaaaaaaaabbbbbbbbbb
+ aaaaaaaaaabbbbbbbbbb
+ aaaaaaaaaabbbbbbbbbb
+ aaaaaaaaaabbbbbbbbbb
+ aaaaaaaaaabbbbbbbbbb
+
+ + diff --git a/layout/reftests/css-ruby/line-break-suppression-2.html b/layout/reftests/css-ruby/line-break-suppression-2.html new file mode 100644 index 000000000..e05df48d9 --- /dev/null +++ b/layout/reftests/css-ruby/line-break-suppression-2.html @@ -0,0 +1,17 @@ + + + + + Test for ruby line break suppression + + + +
+ aaaaaaaaaa
bbbbbbbbbb

+ aaaaaaaaaa
bbbbbbbbbb

+ aaaaaaaaaa
bbbbbbbbbb

+ aaaaaaaaaa
bbbbbbbbbb

+ aaaaaaaaaa
bbbbbbbbbb

+
+ + diff --git a/layout/reftests/css-ruby/line-break-suppression-3-ref.html b/layout/reftests/css-ruby/line-break-suppression-3-ref.html new file mode 100644 index 000000000..8b0da6694 --- /dev/null +++ b/layout/reftests/css-ruby/line-break-suppression-3-ref.html @@ -0,0 +1,20 @@ + + + + + Test for ruby line break suppression + + + + a +b
+ a +b
+ a +b
+ a +b
+ a +b
+ + diff --git a/layout/reftests/css-ruby/line-break-suppression-3.html b/layout/reftests/css-ruby/line-break-suppression-3.html new file mode 100644 index 000000000..c75bcee06 --- /dev/null +++ b/layout/reftests/css-ruby/line-break-suppression-3.html @@ -0,0 +1,23 @@ + + + + + Test for ruby line break suppression + + + + + a +b
+ a +b
+ a +b
+ a +b
+ a +b
+ + diff --git a/layout/reftests/css-ruby/line-break-suppression-4-ref.html b/layout/reftests/css-ruby/line-break-suppression-4-ref.html new file mode 100644 index 000000000..5e680a298 --- /dev/null +++ b/layout/reftests/css-ruby/line-break-suppression-4-ref.html @@ -0,0 +1,11 @@ + + + + + Bug 1149009 - Line break suppression on whitespaces wrapped but not contained in ruby boxes + + + a +b + + diff --git a/layout/reftests/css-ruby/line-break-suppression-4.html b/layout/reftests/css-ruby/line-break-suppression-4.html new file mode 100644 index 000000000..90d7e73de --- /dev/null +++ b/layout/reftests/css-ruby/line-break-suppression-4.html @@ -0,0 +1,11 @@ + + + + + Bug 1149009 - Line break suppression on whitespaces wrapped but not contained in ruby boxes + + + a +b + + diff --git a/layout/reftests/css-ruby/line-break-suppression-5-ref.html b/layout/reftests/css-ruby/line-break-suppression-5-ref.html new file mode 100644 index 000000000..d646dba0c --- /dev/null +++ b/layout/reftests/css-ruby/line-break-suppression-5-ref.html @@ -0,0 +1,10 @@ + + + + + Bug 1186720 - Line break suppression with soft hyphen + + + xa + + diff --git a/layout/reftests/css-ruby/line-break-suppression-5.html b/layout/reftests/css-ruby/line-break-suppression-5.html new file mode 100644 index 000000000..a44856c8d --- /dev/null +++ b/layout/reftests/css-ruby/line-break-suppression-5.html @@ -0,0 +1,10 @@ + + + + + Bug 1186720 - Line break suppression with soft hyphen + + + x + + diff --git a/layout/reftests/css-ruby/line-breaking-1-ref.html b/layout/reftests/css-ruby/line-breaking-1-ref.html new file mode 100644 index 000000000..5d8e10e8e --- /dev/null +++ b/layout/reftests/css-ruby/line-breaking-1-ref.html @@ -0,0 +1,17 @@ + + + + + Bug 1089431 - Meet the specification for line breaking between ruby bases + + + + +
+ です +
+ + diff --git a/layout/reftests/css-ruby/line-breaking-1.html b/layout/reftests/css-ruby/line-breaking-1.html new file mode 100644 index 000000000..e2e794918 --- /dev/null +++ b/layout/reftests/css-ruby/line-breaking-1.html @@ -0,0 +1,20 @@ + + + + + Bug 1089431 - Meet the specification for line breaking between ruby bases + + + + +
+ + です + + + +
+ + diff --git a/layout/reftests/css-ruby/line-breaking-2-ref.html b/layout/reftests/css-ruby/line-breaking-2-ref.html new file mode 100644 index 000000000..53ec9d3e4 --- /dev/null +++ b/layout/reftests/css-ruby/line-breaking-2-ref.html @@ -0,0 +1,13 @@ + + + + + Bug 1140264 + + + +
+ の「X」 +
+ + diff --git a/layout/reftests/css-ruby/line-breaking-2.html b/layout/reftests/css-ruby/line-breaking-2.html new file mode 100644 index 000000000..0a330741d --- /dev/null +++ b/layout/reftests/css-ruby/line-breaking-2.html @@ -0,0 +1,13 @@ + + + + + Bug 1140264 + + + +
+ の「X
」 +
+ + diff --git a/layout/reftests/css-ruby/line-height-1-ref.html b/layout/reftests/css-ruby/line-height-1-ref.html new file mode 100644 index 000000000..821765f5c --- /dev/null +++ b/layout/reftests/css-ruby/line-height-1-ref.html @@ -0,0 +1,21 @@ + + + + + Bug 1069519 - Ruby line height calculation + + + + +
+ base + text +
+ + + diff --git a/layout/reftests/css-ruby/line-height-1.html b/layout/reftests/css-ruby/line-height-1.html new file mode 100644 index 000000000..fc7463e38 --- /dev/null +++ b/layout/reftests/css-ruby/line-height-1.html @@ -0,0 +1,14 @@ + + + + + Bug 1069519 - Ruby line height calculation + + + + + base + text + + + diff --git a/layout/reftests/css-ruby/line-height-2-ref.html b/layout/reftests/css-ruby/line-height-2-ref.html new file mode 100644 index 000000000..3d506e4e9 --- /dev/null +++ b/layout/reftests/css-ruby/line-height-2-ref.html @@ -0,0 +1,22 @@ + + + + + Bug 1069519 - Ruby line height calculation + + + + +
+ base + text +
+ next line + + + diff --git a/layout/reftests/css-ruby/line-height-2.html b/layout/reftests/css-ruby/line-height-2.html new file mode 100644 index 000000000..d84f31da4 --- /dev/null +++ b/layout/reftests/css-ruby/line-height-2.html @@ -0,0 +1,15 @@ + + + + + Bug 1069519 - Ruby line height calculation + + + + + base + text +
+ next line + + diff --git a/layout/reftests/css-ruby/line-height-3-ref.html b/layout/reftests/css-ruby/line-height-3-ref.html new file mode 100644 index 000000000..8a186c5f2 --- /dev/null +++ b/layout/reftests/css-ruby/line-height-3-ref.html @@ -0,0 +1,24 @@ + + + + + Bug 1069519 - Ruby line height calculation + + + + +
+ base + text + text +
+ next line + + + diff --git a/layout/reftests/css-ruby/line-height-3.html b/layout/reftests/css-ruby/line-height-3.html new file mode 100644 index 000000000..ea2bf632a --- /dev/null +++ b/layout/reftests/css-ruby/line-height-3.html @@ -0,0 +1,16 @@ + + + + + Bug 1069519 - Ruby line height calculation + + + + + base + text + text +
+ next line + + diff --git a/layout/reftests/css-ruby/line-height-4-ref.html b/layout/reftests/css-ruby/line-height-4-ref.html new file mode 100644 index 000000000..4ef96858e --- /dev/null +++ b/layout/reftests/css-ruby/line-height-4-ref.html @@ -0,0 +1,15 @@ +Bug 1134206 - Ruby line spacing adjustment on quirks mode + +
+ base + text + text +
+next line + diff --git a/layout/reftests/css-ruby/line-height-4.html b/layout/reftests/css-ruby/line-height-4.html new file mode 100644 index 000000000..978aa5c70 --- /dev/null +++ b/layout/reftests/css-ruby/line-height-4.html @@ -0,0 +1,7 @@ +Bug 1134206 - Ruby line spacing adjustment on quirks mode + + base + text + text +
+next line diff --git a/layout/reftests/css-ruby/min-font-size-1-ref.html b/layout/reftests/css-ruby/min-font-size-1-ref.html new file mode 100644 index 000000000..93b4bba2c --- /dev/null +++ b/layout/reftests/css-ruby/min-font-size-1-ref.html @@ -0,0 +1,13 @@ + + + + + Bug 1165538 - Minimum font size on ruby text + + + + 超電磁砲 + レールガン + + + diff --git a/layout/reftests/css-ruby/min-font-size-1.html b/layout/reftests/css-ruby/min-font-size-1.html new file mode 100644 index 000000000..150e03221 --- /dev/null +++ b/layout/reftests/css-ruby/min-font-size-1.html @@ -0,0 +1,13 @@ + + + + + Bug 1165538 - Minimum font size on ruby text + + + + 超電磁砲 + レールガン + + + diff --git a/layout/reftests/css-ruby/nested-ruby-1.html b/layout/reftests/css-ruby/nested-ruby-1.html new file mode 100644 index 000000000..b3e76768e --- /dev/null +++ b/layout/reftests/css-ruby/nested-ruby-1.html @@ -0,0 +1,19 @@ + + + + + Bug 1120313 - Nested ruby inside ruby annotation + + + + + base1 + + + base2 + text + + + + + diff --git a/layout/reftests/css-ruby/no-transform-ref.html b/layout/reftests/css-ruby/no-transform-ref.html new file mode 100644 index 000000000..df9d6fdc0 --- /dev/null +++ b/layout/reftests/css-ruby/no-transform-ref.html @@ -0,0 +1,14 @@ + + + + + Bug 1121738 - Ruby should not support transform + + + + + ab + AB + + + diff --git a/layout/reftests/css-ruby/no-transform.html b/layout/reftests/css-ruby/no-transform.html new file mode 100644 index 000000000..ac78c16d4 --- /dev/null +++ b/layout/reftests/css-ruby/no-transform.html @@ -0,0 +1,19 @@ + + + + + Bug 1121738 - Ruby should not support transform + + + + + + ab + AB + + + diff --git a/layout/reftests/css-ruby/reftest-stylo.list b/layout/reftests/css-ruby/reftest-stylo.list new file mode 100644 index 000000000..1ed58bea4 --- /dev/null +++ b/layout/reftests/css-ruby/reftest-stylo.list @@ -0,0 +1,59 @@ +# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing +== bidi-1.html bidi-1.html +== bidi-2.html bidi-2.html +== box-generation-1.html box-generation-1.html +== box-generation-2.html box-generation-2.html +== box-generation-3.html box-generation-3.html +== box-generation-4.html box-generation-4.html +== box-generation-5.html box-generation-5.html +== box-properties-1.html box-properties-1.html +== box-properties-2.html box-properties-2.html +== box-properties-3.html box-properties-3.html +== box-properties-4.html box-properties-4.html +== dynamic-insertion-1.html dynamic-insertion-1.html +== dynamic-insertion-2.html dynamic-insertion-2.html +== dynamic-insertion-3.html dynamic-insertion-3.html +== dynamic-removal-1.html dynamic-removal-1.html +== dynamic-removal-2.html dynamic-removal-2.html +== dynamic-removal-3.html dynamic-removal-3.html +== float-handling.html float-handling.html +fails test-pref(dom.meta-viewport.enabled,true) test-pref(font.size.inflation.emPerLine,15) test-pref(font.size.inflation.forceEnabled,true) test-pref(font.size.inflation.lineThreshold,0) == inflated-ruby-1.html inflated-ruby-1.html +== intra-level-whitespace-1.html intra-level-whitespace-1.html +== intra-level-whitespace-2.html intra-level-whitespace-2.html +== intra-level-whitespace-3.html intra-level-whitespace-3.html +== intrinsic-isize-1.html intrinsic-isize-1.html +== intrinsic-isize-2.html intrinsic-isize-2.html +== justification-1.html justification-1.html +== justification-2.html justification-2.html +fuzzy-if(winWidget,255,792) == lang-specific-style-1.html lang-specific-style-1.html +# bug 1134947 +== line-breaking-1.html line-breaking-1.html +== line-breaking-2.html line-breaking-2.html +fuzzy-if(/^Windows\x20NT\x2010\.0/.test(http.oscpu),3,2) == line-break-suppression-1.html line-break-suppression-1.html +fuzzy-if(/^Windows\x20NT\x2010\.0/.test(http.oscpu),3,2) == line-break-suppression-2.html line-break-suppression-2.html +== line-break-suppression-3.html line-break-suppression-3.html +== line-break-suppression-4.html line-break-suppression-4.html +== line-break-suppression-5.html line-break-suppression-5.html +== line-height-1.html line-height-1.html +== line-height-2.html line-height-2.html +== line-height-3.html line-height-3.html +== line-height-4.html line-height-4.html +test-pref(font.minimum-size.ja,16) == min-font-size-1.html min-font-size-1.html +skip load nested-ruby-1.html +== no-transform.html no-transform.html +== relative-positioning-1.html relative-positioning-1.html +== relative-positioning-2.html relative-positioning-2.html +== ruby-align-1.html ruby-align-1.html +== ruby-align-1a.html ruby-align-1a.html +== ruby-align-2.html ruby-align-2.html +== ruby-align-2a.html ruby-align-2a.html +== ruby-position-horizontal.html ruby-position-horizontal.html +== ruby-position-vertical-lr.html ruby-position-vertical-lr.html +== ruby-position-vertical-rl.html ruby-position-vertical-rl.html +== ruby-reflow-1-opaqueruby.html ruby-reflow-1-opaqueruby.html +fuzzy-if(/^Windows\x20NT\x2010\.0/.test(http.oscpu),13,1) == ruby-reflow-1-transparentruby.html ruby-reflow-1-transparentruby.html +== ruby-span-1.html ruby-span-1.html +== ruby-whitespace-1.html ruby-whitespace-1.html +== ruby-whitespace-2.html ruby-whitespace-2.html +== bug1181890.html bug1181890.html +== bug1181890.html bug1181890.html diff --git a/layout/reftests/css-ruby/reftest.list b/layout/reftests/css-ruby/reftest.list new file mode 100644 index 000000000..d940d8513 --- /dev/null +++ b/layout/reftests/css-ruby/reftest.list @@ -0,0 +1,57 @@ +== bidi-1.html bidi-1-ref.html +== bidi-2.html bidi-2-ref.html +== box-generation-1.html box-generation-1-ref.html +== box-generation-2.html box-generation-2-ref.html +== box-generation-3.html box-generation-3-ref.html +== box-generation-4.html box-generation-4-ref.html +== box-generation-5.html box-generation-5-ref.html +== box-properties-1.html box-properties-1-ref.html +== box-properties-2.html box-properties-2-ref.html +== box-properties-3.html box-properties-3-ref.html +== box-properties-4.html box-properties-4-ref.html +== dynamic-insertion-1.html dynamic-insertion-1-ref.html +== dynamic-insertion-2.html dynamic-insertion-2-ref.html +== dynamic-insertion-3.html dynamic-insertion-3-ref.html +== dynamic-removal-1.html dynamic-removal-1-ref.html +== dynamic-removal-2.html dynamic-removal-2-ref.html +== dynamic-removal-3.html dynamic-removal-3-ref.html +== float-handling.html float-handling-ref.html +test-pref(dom.meta-viewport.enabled,true) test-pref(font.size.inflation.emPerLine,15) test-pref(font.size.inflation.forceEnabled,true) test-pref(font.size.inflation.lineThreshold,0) == inflated-ruby-1.html inflated-ruby-1-ref.html +== intra-level-whitespace-1.html intra-level-whitespace-1-ref.html +== intra-level-whitespace-2.html intra-level-whitespace-2-ref.html +== intra-level-whitespace-3.html intra-level-whitespace-3-ref.html +== intrinsic-isize-1.html intrinsic-isize-1-ref.html +== intrinsic-isize-2.html intrinsic-isize-2-ref.html +== justification-1.html justification-1-ref.html +== justification-2.html justification-2-ref.html +fuzzy-if(winWidget,255,792) == lang-specific-style-1.html lang-specific-style-1-ref.html # bug 1134947 +== line-breaking-1.html line-breaking-1-ref.html +== line-breaking-2.html line-breaking-2-ref.html +fuzzy-if(/^Windows\x20NT\x2010\.0/.test(http.oscpu),3,2) == line-break-suppression-1.html line-break-suppression-1-ref.html +fuzzy-if(/^Windows\x20NT\x2010\.0/.test(http.oscpu),3,2) == line-break-suppression-2.html line-break-suppression-2-ref.html +== line-break-suppression-3.html line-break-suppression-3-ref.html +== line-break-suppression-4.html line-break-suppression-4-ref.html +== line-break-suppression-5.html line-break-suppression-5-ref.html +== line-height-1.html line-height-1-ref.html +== line-height-2.html line-height-2-ref.html +== line-height-3.html line-height-3-ref.html +== line-height-4.html line-height-4-ref.html +test-pref(font.minimum-size.ja,16) == min-font-size-1.html min-font-size-1-ref.html +load nested-ruby-1.html +== no-transform.html no-transform-ref.html +== relative-positioning-1.html relative-positioning-1-ref.html +== relative-positioning-2.html relative-positioning-2-ref.html +== ruby-align-1.html ruby-align-1-ref.html +== ruby-align-1a.html ruby-align-1-ref.html +== ruby-align-2.html ruby-align-2-ref.html +== ruby-align-2a.html ruby-align-2-ref.html +== ruby-position-horizontal.html ruby-position-horizontal-ref.html +== ruby-position-vertical-lr.html ruby-position-vertical-lr-ref.html +== ruby-position-vertical-rl.html ruby-position-vertical-rl-ref.html +!= ruby-reflow-1-opaqueruby.html ruby-reflow-1-noruby.html +fuzzy-if(/^Windows\x20NT\x2010\.0/.test(http.oscpu),13,1) == ruby-reflow-1-transparentruby.html ruby-reflow-1-noruby.html +== ruby-span-1.html ruby-span-1-ref.html +== ruby-whitespace-1.html ruby-whitespace-1-ref.html +== ruby-whitespace-2.html ruby-whitespace-2-ref.html +== bug1181890.html bug1181890-ref.html +!= bug1181890.html bug1181890-notref.html diff --git a/layout/reftests/css-ruby/relative-positioning-1-ref.html b/layout/reftests/css-ruby/relative-positioning-1-ref.html new file mode 100644 index 000000000..1819ba920 --- /dev/null +++ b/layout/reftests/css-ruby/relative-positioning-1-ref.html @@ -0,0 +1,22 @@ + + + + + Bug 1055658 - Relative positioning for ruby + + + +
+ +
+ abc +
+ base +
+
+ + + diff --git a/layout/reftests/css-ruby/relative-positioning-1.html b/layout/reftests/css-ruby/relative-positioning-1.html new file mode 100644 index 000000000..66dcf62c7 --- /dev/null +++ b/layout/reftests/css-ruby/relative-positioning-1.html @@ -0,0 +1,24 @@ + + + + + Bug 1055658 - Relative positioning for ruby + + + + + + base + abc +
+
+ + diff --git a/layout/reftests/css-ruby/relative-positioning-2-ref.html b/layout/reftests/css-ruby/relative-positioning-2-ref.html new file mode 100644 index 000000000..a5fc13090 --- /dev/null +++ b/layout/reftests/css-ruby/relative-positioning-2-ref.html @@ -0,0 +1,30 @@ + + + + + Bug 1055658 - Relative positioning for ruby + + + +
+ before +
+ +
+ text1 + text2 + text3 +
+ base1 + base2 + base3 +
+
+ after +
+ + + diff --git a/layout/reftests/css-ruby/relative-positioning-2.html b/layout/reftests/css-ruby/relative-positioning-2.html new file mode 100644 index 000000000..0e91b7b37 --- /dev/null +++ b/layout/reftests/css-ruby/relative-positioning-2.html @@ -0,0 +1,30 @@ + + + + + Bug 1055658 - Relative positioning for ruby + + + + + before + + base1 + text1 + base2 + text2 + base3 + text3 + + after + + diff --git a/layout/reftests/css-ruby/ruby-align-1-ref.html b/layout/reftests/css-ruby/ruby-align-1-ref.html new file mode 100644 index 000000000..6f6ffcd30 --- /dev/null +++ b/layout/reftests/css-ruby/ruby-align-1-ref.html @@ -0,0 +1,19 @@ + + + + + Bug 1055676 - Tests for ruby-align + + + + +
X X X
+
X X X
+
X X X
+ +
X X X
+ + diff --git a/layout/reftests/css-ruby/ruby-align-1.html b/layout/reftests/css-ruby/ruby-align-1.html new file mode 100644 index 000000000..3acd5fcf3 --- /dev/null +++ b/layout/reftests/css-ruby/ruby-align-1.html @@ -0,0 +1,26 @@ + + + + + Bug 1055676 - Tests for ruby-align + + + + + + X X X
+

+ + X X X
+

+ + X X X
+

+ + X X X
+
+ + diff --git a/layout/reftests/css-ruby/ruby-align-1a.html b/layout/reftests/css-ruby/ruby-align-1a.html new file mode 100644 index 000000000..795f0f4fa --- /dev/null +++ b/layout/reftests/css-ruby/ruby-align-1a.html @@ -0,0 +1,26 @@ + + + + + Bug 1055676 - Tests for ruby-align + + + + + + X X X
+

+ + X X X
+

+ + X X X
+

+ + X X X
+
+ + diff --git a/layout/reftests/css-ruby/ruby-align-2-ref.html b/layout/reftests/css-ruby/ruby-align-2-ref.html new file mode 100644 index 000000000..465dd1d10 --- /dev/null +++ b/layout/reftests/css-ruby/ruby-align-2-ref.html @@ -0,0 +1,29 @@ + + + + + Bug 1055676 - Tests for ruby-align + + + + + +
X X X
+

+ +
X X X
+

+ +
X X X
+

+ + +
X X X
+
+ + diff --git a/layout/reftests/css-ruby/ruby-align-2.html b/layout/reftests/css-ruby/ruby-align-2.html new file mode 100644 index 000000000..8e520e408 --- /dev/null +++ b/layout/reftests/css-ruby/ruby-align-2.html @@ -0,0 +1,27 @@ + + + + + Bug 1055676 - Tests for ruby-align + + + + + +
X X X +

+ +
X X X +

+ +
X X X +

+ +
X X X +
+ + diff --git a/layout/reftests/css-ruby/ruby-align-2a.html b/layout/reftests/css-ruby/ruby-align-2a.html new file mode 100644 index 000000000..8944bd920 --- /dev/null +++ b/layout/reftests/css-ruby/ruby-align-2a.html @@ -0,0 +1,27 @@ + + + + + Bug 1055676 - Tests for ruby-align + + + + + +
X X X +

+ +
X X X +

+ +
X X X +

+ +
X X X +
+ + diff --git a/layout/reftests/css-ruby/ruby-position-horizontal-ref.html b/layout/reftests/css-ruby/ruby-position-horizontal-ref.html new file mode 100644 index 000000000..9cb0ceaf4 --- /dev/null +++ b/layout/reftests/css-ruby/ruby-position-horizontal-ref.html @@ -0,0 +1,35 @@ + + + + + Bug 1055665 - Test for ruby-position + + + + + +
+
+
+
over##
+
under#
+
over2#
+
under2
+ +   +
+ base## +
+
+ + + diff --git a/layout/reftests/css-ruby/ruby-position-horizontal.html b/layout/reftests/css-ruby/ruby-position-horizontal.html new file mode 100644 index 000000000..e6d9e8393 --- /dev/null +++ b/layout/reftests/css-ruby/ruby-position-horizontal.html @@ -0,0 +1,28 @@ + + + + + Bug 1055665 - Test for ruby-position + + + + + + base## + over## + under# + over2# + under2 + + + diff --git a/layout/reftests/css-ruby/ruby-position-vertical-lr-ref.html b/layout/reftests/css-ruby/ruby-position-vertical-lr-ref.html new file mode 100644 index 000000000..2c432e424 --- /dev/null +++ b/layout/reftests/css-ruby/ruby-position-vertical-lr-ref.html @@ -0,0 +1,38 @@ + + + + + Bug 1055665 - Test for ruby-position + + + + + +
+
+
+
left##
+
right#
+
left2#
+
right2
+ +   +
+ base## +
+
+ + + diff --git a/layout/reftests/css-ruby/ruby-position-vertical-lr.html b/layout/reftests/css-ruby/ruby-position-vertical-lr.html new file mode 100644 index 000000000..6dee8f7cc --- /dev/null +++ b/layout/reftests/css-ruby/ruby-position-vertical-lr.html @@ -0,0 +1,31 @@ + + + + + Bug 1055665 - Test for ruby-position + + + + + + base## + left## + right# + left2# + right2 + + + diff --git a/layout/reftests/css-ruby/ruby-position-vertical-rl-ref.html b/layout/reftests/css-ruby/ruby-position-vertical-rl-ref.html new file mode 100644 index 000000000..edeeeb5f4 --- /dev/null +++ b/layout/reftests/css-ruby/ruby-position-vertical-rl-ref.html @@ -0,0 +1,38 @@ + + + + + Bug 1055665 - Test for ruby-position + + + + + +
+
+
+
left##
+
right#
+
left2#
+
right2
+ +   +
+ base## +
+
+ + + diff --git a/layout/reftests/css-ruby/ruby-position-vertical-rl.html b/layout/reftests/css-ruby/ruby-position-vertical-rl.html new file mode 100644 index 000000000..1d9378176 --- /dev/null +++ b/layout/reftests/css-ruby/ruby-position-vertical-rl.html @@ -0,0 +1,31 @@ + + + + + Bug 1055665 - Test for ruby-position + + + + + + base## + left## + right# + left2# + right2 + + + diff --git a/layout/reftests/css-ruby/ruby-reflow-1-noruby.html b/layout/reftests/css-ruby/ruby-reflow-1-noruby.html new file mode 100644 index 000000000..4119dc9bd --- /dev/null +++ b/layout/reftests/css-ruby/ruby-reflow-1-noruby.html @@ -0,0 +1,17 @@ + + + +CSS Test: Ruby Base Frames Reflowed + + + + + + + + +新幹線 + + diff --git a/layout/reftests/css-ruby/ruby-reflow-1-opaqueruby.html b/layout/reftests/css-ruby/ruby-reflow-1-opaqueruby.html new file mode 100644 index 000000000..245d7136d --- /dev/null +++ b/layout/reftests/css-ruby/ruby-reflow-1-opaqueruby.html @@ -0,0 +1,20 @@ + + + +CSS Test: Ruby Text Frames Visible + + + + + + + + + + + しんかんせん + + + diff --git a/layout/reftests/css-ruby/ruby-reflow-1-transparentruby.html b/layout/reftests/css-ruby/ruby-reflow-1-transparentruby.html new file mode 100644 index 000000000..0d2967a38 --- /dev/null +++ b/layout/reftests/css-ruby/ruby-reflow-1-transparentruby.html @@ -0,0 +1,21 @@ + + + +CSS Test: Ruby Base Frames Reflowed + + + + + + + + + + + しんかんせん + + + diff --git a/layout/reftests/css-ruby/ruby-span-1-ref.html b/layout/reftests/css-ruby/ruby-span-1-ref.html new file mode 100644 index 000000000..e8b9d91e7 --- /dev/null +++ b/layout/reftests/css-ruby/ruby-span-1-ref.html @@ -0,0 +1,11 @@ + + + + + Bug 1117597 + + + + The Ruby Basespan + + diff --git a/layout/reftests/css-ruby/ruby-span-1.html b/layout/reftests/css-ruby/ruby-span-1.html new file mode 100644 index 000000000..4862ecc10 --- /dev/null +++ b/layout/reftests/css-ruby/ruby-span-1.html @@ -0,0 +1,11 @@ + + + + + Bug 1117597 + + + + The Ruby Basespan + + diff --git a/layout/reftests/css-ruby/ruby-whitespace-1-ref.html b/layout/reftests/css-ruby/ruby-whitespace-1-ref.html new file mode 100644 index 000000000..7018627d1 --- /dev/null +++ b/layout/reftests/css-ruby/ruby-whitespace-1-ref.html @@ -0,0 +1,36 @@ + + + + + + + + +

+ Base three Text three Segment two +

+ +

+ Base one Base threeText one Text three +

+ +

+ Segment one Base three Text three Base one Base threeText oneText two/three +

+ + + diff --git a/layout/reftests/css-ruby/ruby-whitespace-1.html b/layout/reftests/css-ruby/ruby-whitespace-1.html new file mode 100644 index 000000000..acb5da3e6 --- /dev/null +++ b/layout/reftests/css-ruby/ruby-whitespace-1.html @@ -0,0 +1,34 @@ + + + + + + + + +

+ + Base three + Text three + Segment two + +

+ +

+ + Base one Base three + Text one Text three + +

+ +

+ Segment one Base three Text three + + Base one Base three Text oneText two/three +

+ + + diff --git a/layout/reftests/css-ruby/ruby-whitespace-2-ref.html b/layout/reftests/css-ruby/ruby-whitespace-2-ref.html new file mode 100644 index 000000000..f52b0685a --- /dev/null +++ b/layout/reftests/css-ruby/ruby-whitespace-2-ref.html @@ -0,0 +1,20 @@ + + + + + + + + + + +abcd BASETEXT + +abcdBASETEXT + +abcd BASETEXT + + + + + diff --git a/layout/reftests/css-ruby/ruby-whitespace-2.html b/layout/reftests/css-ruby/ruby-whitespace-2.html new file mode 100644 index 000000000..7f65a7683 --- /dev/null +++ b/layout/reftests/css-ruby/ruby-whitespace-2.html @@ -0,0 +1,19 @@ + + + + + + + + + +abcd BASETEXT + +abcd BASETEXT + +abcd BASETEXT + + + + + diff --git a/layout/reftests/css-ruby/utils.js b/layout/reftests/css-ruby/utils.js new file mode 100644 index 000000000..1fee84cc2 --- /dev/null +++ b/layout/reftests/css-ruby/utils.js @@ -0,0 +1,33 @@ +function getBlockAxisName(elem) { + var wm = getComputedStyle(elem).writingMode; + return (!wm || wm == 'horizontal-tb') ? 'height' : 'width'; +} + +function getBSize(elem) { + return elem.getBoundingClientRect()[getBlockAxisName(elem)] + 'px'; +} + +function setBSize(elem, bsize) { + elem.style[getBlockAxisName(elem)] = bsize; + elem.style.lineHeight = bsize; +} + +// Ruby annotations are placed based on block-axis size of inline boxes +// instead of line box. Block-axis size of an inline box is the max +// height of the font, while that of line box is line height. Hence we +// sometimes need to explicitly set the block-axis size of an inline +// box to a block to simulate the exact behavior, which is what the +// following two functions do. + +function makeBSizeMatchInlineBox(block, inline) { + setBSize(block, getBSize(inline)); +} + +function makeBSizeOfParentMatch(elems) { + // The size change is divided into two phases to avoid + // triggering reflow for every element. + for (var elem of elems) + elem.dataset.bsize = getBSize(elem); + for (var elem of elems) + setBSize(elem.parentNode, elem.dataset.bsize); +} -- cgit v1.2.3