gecko/layout/reftests/text
L. David Baron b31121a2a1 Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky
The code in nsHTMLStyleSheet implements LangRule to map xml:lang into
style and the code to manage its uniqueness.

The change to nsGenericHTMLElement fixes the mapping of the HTML lang
attribute to do cascading the way all other rule mapping does so that
the cascading works correctly.

The tests test that the correct style language is used for hyphenation
by copying over a set of hyphenation reftests that check its basic
response to languages.  There are no specific tests for font selection,
but font selection is known to use the same language data from style.

I verified manually (see other attachments to bug) that the rule
uniqueness is being managed correctly.

--HG--
rename : layout/reftests/text/auto-hyphenation-1.html => layout/reftests/text/auto-hyphenation-xmllang-1.xhtml
rename : layout/reftests/text/auto-hyphenation-10.html => layout/reftests/text/auto-hyphenation-xmllang-10.xhtml
rename : layout/reftests/text/auto-hyphenation-1.html => layout/reftests/text/auto-hyphenation-xmllang-11a.xhtml
rename : layout/reftests/text/auto-hyphenation-1.html => layout/reftests/text/auto-hyphenation-xmllang-11b.xhtml
rename : layout/reftests/text/auto-hyphenation-4.html => layout/reftests/text/auto-hyphenation-xmllang-12a.xhtml
rename : layout/reftests/text/auto-hyphenation-4.html => layout/reftests/text/auto-hyphenation-xmllang-12b.xhtml
rename : layout/reftests/text/auto-hyphenation-1.html => layout/reftests/text/auto-hyphenation-xmllang-13a.xhtml
rename : layout/reftests/text/auto-hyphenation-1.html => layout/reftests/text/auto-hyphenation-xmllang-13b.xhtml
rename : layout/reftests/text/auto-hyphenation-4.html => layout/reftests/text/auto-hyphenation-xmllang-14a.xhtml
rename : layout/reftests/text/auto-hyphenation-4.html => layout/reftests/text/auto-hyphenation-xmllang-14b.xhtml
rename : layout/reftests/text/auto-hyphenation-1a.html => layout/reftests/text/auto-hyphenation-xmllang-1a.xhtml
rename : layout/reftests/text/auto-hyphenation-2.html => layout/reftests/text/auto-hyphenation-xmllang-2.xhtml
rename : layout/reftests/text/auto-hyphenation-3.html => layout/reftests/text/auto-hyphenation-xmllang-3.xhtml
rename : layout/reftests/text/auto-hyphenation-4.html => layout/reftests/text/auto-hyphenation-xmllang-4.xhtml
rename : layout/reftests/text/auto-hyphenation-5.html => layout/reftests/text/auto-hyphenation-xmllang-5.xhtml
rename : layout/reftests/text/auto-hyphenation-6.html => layout/reftests/text/auto-hyphenation-xmllang-6.xhtml
rename : layout/reftests/text/auto-hyphenation-7.html => layout/reftests/text/auto-hyphenation-xmllang-7.xhtml
rename : layout/reftests/text/auto-hyphenation-8.html => layout/reftests/text/auto-hyphenation-xmllang-8.xhtml
rename : layout/reftests/text/auto-hyphenation-9.html => layout/reftests/text/auto-hyphenation-xmllang-9.xhtml
2013-05-30 16:00:20 +08:00
..
444656-ref.html
444656.html
449555-1-ref.html
449555-1.html
467722-ref.html
467722.html
475092-pos.html
475092-ref.html
475092-sub.html
476378-soft-hyphen-fallback-ref.html
476378-soft-hyphen-fallback.html
577380-ref.html
577380.html
726392-1-ref.html
726392-1.html
726392-2-ref.html
726392-2.html
726392-3-ref.html
726392-3.html
745555-1-ref.html
745555-1.html
745555-2-ref.html
745555-2.html
820255-ref.html Bug 820255 - U+205F (MEDIUM MATHEMATICAL SPACE) and U+1680 (OGHAM SPACE MARK) should break line. r=masayuki 2012-12-12 16:00:23 +09:00
820255.html Bug 820255 - U+205F (MEDIUM MATHEMATICAL SPACE) and U+1680 (OGHAM SPACE MARK) should break line. r=masayuki 2012-12-12 16:00:23 +09:00
arabic-fallback-1-ref.html
arabic-fallback-1.html
arabic-fallback-2-ref.html
arabic-fallback-2.html
arabic-fallback-3-ref.html
arabic-fallback-3.html
arabic-fallback-4-notref.html
arabic-fallback-4.html
arabic-marks-1-ref.html bug 873902 - reftest for Arabic marks with Windows fonts. r=jdaggett 2013-05-21 13:45:41 +08:00
arabic-marks-1.html bug 873902 - reftest for Arabic marks with Windows fonts. r=jdaggett 2013-05-21 13:45:41 +08:00
arabic-shaping-1-ref.html
arabic-shaping-1.html
arial-bold-lam-alef-1-ref.html
arial-bold-lam-alef-1.html
auto-hyphenation-1-notref.html
auto-hyphenation-1-ref.html
auto-hyphenation-1.html
auto-hyphenation-1a.html
auto-hyphenation-2-ref.html Bug 831354, test fix 4: Make auto-hyphenation-2 not depend on different languages leading to the same font. r=jfkthame 2013-01-17 20:20:27 +00:00
auto-hyphenation-2.html
auto-hyphenation-3-ref.html
auto-hyphenation-3.html
auto-hyphenation-4-ref.html
auto-hyphenation-4.html
auto-hyphenation-5-ref.html
auto-hyphenation-5.html
auto-hyphenation-6-ref.html
auto-hyphenation-6.html
auto-hyphenation-7-ref.html
auto-hyphenation-7.html
auto-hyphenation-8-ref.html Bug 702121, patch 3: Make the auto-hyphenation-{8,9,10} reftests not depend on picking the same fonts for different language or encoding values, to fix Android reftest failures from landing of bug 831354. r=jfkthame 2013-01-17 20:20:27 +00:00
auto-hyphenation-8.html
auto-hyphenation-9-ref.html Bug 702121, patch 3: Make the auto-hyphenation-{8,9,10} reftests not depend on picking the same fonts for different language or encoding values, to fix Android reftest failures from landing of bug 831354. r=jfkthame 2013-01-17 20:20:27 +00:00
auto-hyphenation-9.html
auto-hyphenation-10-ref.html Bug 702121, patch 3: Make the auto-hyphenation-{8,9,10} reftests not depend on picking the same fonts for different language or encoding values, to fix Android reftest failures from landing of bug 831354. r=jfkthame 2013-01-17 20:20:27 +00:00
auto-hyphenation-10.html
auto-hyphenation-af-1-ref.html
auto-hyphenation-af-1.html
auto-hyphenation-bg-1-ref.html
auto-hyphenation-bg-1.html
auto-hyphenation-ca-1-ref.html
auto-hyphenation-ca-1.html
auto-hyphenation-cy-1-ref.html
auto-hyphenation-cy-1.html
auto-hyphenation-da-1-ref.html
auto-hyphenation-da-1.html
auto-hyphenation-de-1901-1-ref.html
auto-hyphenation-de-1901-1.html
auto-hyphenation-de-1996-1-ref.html
auto-hyphenation-de-1996-1.html
auto-hyphenation-de-ch-1-ref.html
auto-hyphenation-de-ch-1.html
auto-hyphenation-eo-1-ref.html
auto-hyphenation-eo-1.html
auto-hyphenation-es-1-ref.html
auto-hyphenation-es-1.html
auto-hyphenation-et-1-ref.html
auto-hyphenation-et-1.html
auto-hyphenation-fi-1-ref.html
auto-hyphenation-fi-1.html
auto-hyphenation-fr-1-ref.html
auto-hyphenation-fr-1.html
auto-hyphenation-gl-1-ref.html
auto-hyphenation-gl-1.html
auto-hyphenation-hr-1-ref.html
auto-hyphenation-hr-1.html
auto-hyphenation-hsb-1-ref.html
auto-hyphenation-hsb-1.html
auto-hyphenation-hu-1-ref.html
auto-hyphenation-hu-1.html
auto-hyphenation-ia-1-ref.html
auto-hyphenation-ia-1.html
auto-hyphenation-is-1-ref.html
auto-hyphenation-is-1.html
auto-hyphenation-it-1-ref.html
auto-hyphenation-it-1.html
auto-hyphenation-kmr-1-ref.html
auto-hyphenation-kmr-1.html
auto-hyphenation-la-1-ref.html
auto-hyphenation-la-1.html
auto-hyphenation-lt-1-ref.html
auto-hyphenation-lt-1.html
auto-hyphenation-mn-1-ref.html
auto-hyphenation-mn-1.html
auto-hyphenation-nb-1-ref.html
auto-hyphenation-nb-1.html
auto-hyphenation-nl-1-ref.html
auto-hyphenation-nl-1.html
auto-hyphenation-nn-1-ref.html
auto-hyphenation-nn-1.html
auto-hyphenation-pt-1-ref.html
auto-hyphenation-pt-1.html
auto-hyphenation-ru-1-ref.html
auto-hyphenation-ru-1.html
auto-hyphenation-sh-1-ref.html
auto-hyphenation-sh-1.html
auto-hyphenation-sl-1-ref.html
auto-hyphenation-sl-1.html
auto-hyphenation-sr-1-ref.html
auto-hyphenation-sr-1.html
auto-hyphenation-sv-1-notref.html
auto-hyphenation-sv-1-ref.html
auto-hyphenation-sv-1.html
auto-hyphenation-tr-1-ref.html
auto-hyphenation-tr-1.html
auto-hyphenation-uk-1-ref.html
auto-hyphenation-uk-1.html
auto-hyphenation-xmllang-1.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-1a.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-2.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-3.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-4.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-5.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-6.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-7.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-8.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-9.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-10.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-11a.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-11b.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-12a.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-12b.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-13a.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-13b.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-14a.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
auto-hyphenation-xmllang-14b.xhtml Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
cgj-01-ref.html bug 831354 - test fix 9 - give the CGJ reftest a large line-height, so it's less sensitive to the metrics of any fallback font that happens to be found. 2013-01-19 13:42:19 +00:00
cgj-01.html bug 831354 - test fix 9 - give the CGJ reftest a large line-height, so it's less sensitive to the metrics of any fallback font that happens to be found. 2013-01-19 13:42:19 +00:00
emoji-01-notref.html
emoji-01.html
emoji-02-notref.html
emoji-02.html
fallback-01-ref.xhtml
fallback-01.xhtml
font-selection-by-lang-01-ref.html
font-selection-by-lang-01.html
font-selection-fallback-1-ref.html
font-selection-fallback-1.html
font-selection-generic-1-ref.html
font-selection-generic-1.html
font-size-adjust-01-ref.html
font-size-adjust-01.html
font-size-adjust-02-ref.html
font-size-adjust-02.html
font-size-adjust-03-ref.html
font-size-adjust-03.html
glyph-decomposition-graphite-ref.html
glyph-decomposition-graphite.html
glyph-decomposition-opentype-ref.html
glyph-decomposition-opentype.html
graphite-01-ref.html Back out ac6dff6a0811 and f97bc1de213a (bug 700022) for permaorange in b2g R6 2013-02-22 22:26:24 -08:00
graphite-01.html Back out ac6dff6a0811 and f97bc1de213a (bug 700022) for permaorange in b2g R6 2013-02-22 22:26:24 -08:00
graphite-02-ref.html Back out ac6dff6a0811 and f97bc1de213a (bug 700022) for permaorange in b2g R6 2013-02-22 22:26:24 -08:00
graphite-02.html Back out ac6dff6a0811 and f97bc1de213a (bug 700022) for permaorange in b2g R6 2013-02-22 22:26:24 -08:00
graphite-03-notref.html Back out ac6dff6a0811 and f97bc1de213a (bug 700022) for permaorange in b2g R6 2013-02-22 22:26:24 -08:00
graphite-03a.html Back out ac6dff6a0811 and f97bc1de213a (bug 700022) for permaorange in b2g R6 2013-02-22 22:26:24 -08:00
graphite-03b.html Back out ac6dff6a0811 and f97bc1de213a (bug 700022) for permaorange in b2g R6 2013-02-22 22:26:24 -08:00
graphite-04-fa.html bug 700022 - pt 2 - reftests for lang-tag handling in graphite shaper. r=jdaggett 2013-02-22 13:36:02 +00:00
graphite-04-ref.html bug 700022 - pt 2 - reftests for lang-tag handling in graphite shaper. r=jdaggett 2013-02-22 13:36:02 +00:00
graphite-04-sd.html bug 700022 - pt 2 - reftests for lang-tag handling in graphite shaper. r=jdaggett 2013-02-22 13:36:02 +00:00
graphite-04-snd.html bug 700022 - pt 2 - reftests for lang-tag handling in graphite shaper. r=jdaggett 2013-02-22 13:36:02 +00:00
graphite-04-ur.html bug 700022 - pt 2 - reftests for lang-tag handling in graphite shaper. r=jdaggett 2013-02-22 13:36:02 +00:00
graphite-04-urd.html bug 700022 - pt 2 - reftests for lang-tag handling in graphite shaper. r=jdaggett 2013-02-22 13:36:02 +00:00
graphite-05-badlang.html
graphite-05-fail.html
graphite-05-feat.html
graphite-05-lang.html
graphite-05-multipass.html
graphite-05-ot-only.html
graphite-05-ref.html
graphite-05-simple.html
justification-1-ref.html
justification-1.html
justification-2-ref.html
justification-2a.html
justification-2b.html
justification-2c.html
justification-2d.html
kerning-01-notref.html
kerning-01.html
ligature-with-space-1.html
line-editing-1-ref.html
line-editing-1a.html
line-editing-1b.html
line-editing-1c.html
line-editing-1d.html
line-editing-1e.html
lineheight-metrics-1-ref.html
lineheight-metrics-1.html
lineheight-percentage-1-ref.html
lineheight-percentage-1.html
long-1.html
long-ref.html
pre-discard-newlines-1-ref.html
pre-discard-newlines-1.html
pre-line-1-ref.html
pre-line-1.html
pre-line-2-ref.html
pre-line-2.html
pre-line-3-ref.html
pre-line-3.html
pre-line-4-ref.html
pre-line-4.html
reftest.list Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky 2013-05-30 16:00:20 +08:00
rgba-text-ref.html
rgba-text.html
soft-hyphen-in-table-1-notref.html
soft-hyphen-in-table-1-ref.html
soft-hyphen-in-table-1.html
soft-hyphen-in-table-2-ref.html
soft-hyphen-in-table-2.html
soft-hyphens-1-ref.html
soft-hyphens-1a.html
soft-hyphens-1b.html
soft-hyphens-1c.html
subpixel-glyphs-x-1a.html
subpixel-glyphs-x-1b.html
subpixel-glyphs-x-2a.html
subpixel-glyphs-x-2b.html
subpixel-glyphs-x-3a.html
subpixel-glyphs-x-3b.html
subpixel-glyphs-y-1a.html
subpixel-glyphs-y-1b.html
subpixel-lineheight-1a.html
subpixel-lineheight-1b.html
swash-1-ref.html
swash-1.html
synthetic-bold-metrics-01-notref.html
synthetic-bold-metrics-01.html
synthetic-bold-papyrus-01-ref.html
synthetic-bold-papyrus-01.html
text-align-center-last-center.html
text-align-center-last-default.html
text-align-center-last-end.html
text-align-center-last-justify.html
text-align-center-last-start.html
text-align-default-last-default.html
text-align-end-last-center.html
text-align-end-last-default.html
text-align-end-last-end.html
text-align-end-last-justify.html
text-align-end-last-start.html
text-align-justify-last-center.html
text-align-justify-last-default.html
text-align-justify-last-end.html
text-align-justify-last-justify.html
text-align-justify-last-start.html
text-align-last-center-ref.html
text-align-last-center.html
text-align-last-end-ref.html
text-align-last-end.html
text-align-last-justify-ref.html
text-align-last-justify-rtl-ref.html
text-align-last-justify-rtl.html
text-align-last-justify.html
text-align-last-start-ref.html
text-align-last-start.html
text-align-left-in-rtl-block-iframe.html Bug 806284 - Resizing a RTL block with text-align:left does not reposition the lines. r=roc 2012-12-05 23:26:28 +01:00
text-align-left-in-rtl-block-ref.html Bug 806284 - Resizing a RTL block with text-align:left does not reposition the lines. r=roc 2012-12-05 23:26:28 +01:00
text-align-left-in-rtl-block.html Bug 806284 - Resizing a RTL block with text-align:left does not reposition the lines. r=roc 2012-12-05 23:26:28 +01:00
text-align-start-last-center.html
text-align-start-last-default.html
text-align-start-last-end.html
text-align-start-last-justify.html
text-align-start-last-start.html
variation-selector-unsupported-1-ref.html
variation-selector-unsupported-1.html
white-space-1-ref.html
white-space-1a.html
white-space-1b.html
white-space-2-ref.html
white-space-2.html
word-spacing-01-ref.html
word-spacing-01.html
wordbreak-1-ref.html
wordbreak-1.html
wordbreak-2-ref.html
wordbreak-2.html
wordbreak-3-ref.html
wordbreak-3.html
wordbreak-4a-ref.html
wordbreak-4a.html
wordbreak-4b-ref.html
wordbreak-4b.html
wordbreak-5-ref.html
wordbreak-5.html
wordbreak-6-ref.html
wordbreak-6.html
wordbreak-7-ref.html
wordbreak-7.html
wordbreak-7a-ref.html
wordbreak-7a.html
wordbreak-7b-ref.html
wordbreak-7b.html
wordbreak-8-ref.html
wordbreak-8.html
wordbreak-9-ref.html bug 833297 - reftest for preserving clusters across font-shaping boundary with graphite. r=jdaggett 2013-01-23 16:41:34 +00:00
wordbreak-9.html bug 833297 - reftest for preserving clusters across font-shaping boundary with graphite. r=jdaggett 2013-01-23 16:41:34 +00:00
wordwrap-01-ref.html
wordwrap-01.html
wordwrap-02-ref.html
wordwrap-02.html
wordwrap-03-ref.html
wordwrap-03.html
wordwrap-04-ref.html
wordwrap-04.html
wordwrap-05-ref.html
wordwrap-05.html
wordwrap-06-ref.html
wordwrap-06.html
wordwrap-07-ref.html
wordwrap-07.html
wordwrap-08-ref.html
wordwrap-08.html
wordwrap-09-ref.html
wordwrap-09.html
wordwrap-10-ref.html
wordwrap-10.html
zwnj-01-notref.html
zwnj-01-ref.html
zwnj-01-ref.xhtml
zwnj-01.html
zwnj-01.xhtml
zwnj-02-ref.xhtml
zwnj-02.xhtml