gecko/layout/reftests
L. David Baron 2e4a775e61 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
..
abs-pos Bug 851514. Make sure that we add the parent frame before its kids when constructing a scrollable block, so that things will appear in the right order in fixed-pos lists. r=dbaron 2013-05-21 14:15:30 -04:00
backgrounds Backed out 8 changesets (bug 803299) because it makes Tcheckerboard and Tpan so much worse 2013-05-29 17:14:27 -04:00
bidi Bug 859252 - Part b: Import the reftests in the HTML test suite; r=mounir+smontagu 2013-05-10 09:12:55 +02:00
border-image Bug 827227 - Fixed int overflow when scaling border-image-width. r=dbaron 2013-02-14 11:57:20 -08:00
border-radius Backed out 8 changesets (bug 803299) because it makes Tcheckerboard and Tpan so much worse 2013-05-29 17:14:27 -04:00
box Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
box-ordinal
box-properties Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
box-shadow Bug 485149 - Using box-shadow on a <fieldset> with <legend> does not follow box shape. r=roc 2013-04-17 22:16:14 +02:00
box-sizing Bug 520992: Adjust computed width and height before returning to account for box-sizing. [r=bz] 2013-04-04 09:00:07 -05:00
bugs Bug 872254. Clear line/row cursors when overflow areas of lines or table rows change. r=bz 2013-05-30 16:44:37 +12:00
canvas Bug 864788 - Add fuzzing to test 784573-1.html. DONTBUILD r=ajones 2013-04-24 09:48:53 -04:00
columns Bug 857324: Make column set reflow continue without balancing rather than restarting if computed height is exceeded. [r=mats] 2013-04-24 10:02:36 -05:00
counters Bug 839809: Make counter-increments and list counting that would go past our internal (int32_t) limit keep the counter at its current value rather than wrapping. r=dholbert 2013-02-22 10:13:37 -08:00
css-animations Bug 815408: Ignore CSS transitions and animations in print and print preview. r=bzbarsky 2013-05-29 14:36:39 +08:00
css-calc Bug 826582 - Part 5: Upstream calc-in-gradient tests. r=dbaron 2013-01-16 14:18:13 +11:00
css-charset
css-default
css-disabled
css-enabled
css-gradients Backed out 8 changesets (bug 803299) because it makes Tcheckerboard and Tpan so much worse 2013-05-29 17:14:27 -04:00
css-import Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
css-invalid Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
css-mediaqueries Bug 840317 - Re-evaluate media queries in scoped style sheets. r=dbaron 2013-02-12 11:48:44 +11:00
css-optional
css-parsing
css-placeholder Bug 819871 - Make ":-moz-placeholder" parsable but without any effect on styling. r=dbaron,bz 2013-01-24 09:30:28 +00:00
css-required
css-selectors
css-submit-invalid Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
css-transitions
css-ui-invalid Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
css-ui-valid Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
css-valid Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
css-valuesandunits Bug 811403 Followup - Disable inequality test on platforms with scrollbars to fix Android reftest failures on a CLOSED TREE. 2013-04-01 19:39:01 -07:00
css-visited
cssom Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
datalist
dom Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
first-letter
first-line
flexbox Bug 873172: When checking whether a flex item is generated content, skip past any anonymous boxes around it. r=bz 2013-05-19 11:37:56 +08:00
floats Bug 815612 - annotate Linux fuzziness of float-outside-block-push.html 2013-02-23 19:15:17 -08:00
font-face Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
font-features Bug 549861 - add missing files from reland patch. r=bustage 2013-05-20 12:47:32 +09:00
font-inflation Bug 831354, test fix 2, followup: remove a 'line-height: 0' that's in the test but not the reference. 2013-01-17 22:55:22 +00:00
font-matching Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
fonts Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-04-01 11:36:59 -07:00
forms No bug - Fix b2g bustage because they hardcode colours... r=me on CLOSED TREE 2013-05-23 16:08:42 +01:00
generated-content Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
ib-split
image Bug 855050 - mark sync-image-switch-* random on WinXP 2013-05-02 20:26:24 -07:00
image-element Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
image-rect Bug 826093 (Part 3) - Use ClippedImage instead of ExtractFrame for -moz-image-rect. r=bz 2013-04-05 14:14:37 -07:00
image-region
indic-shaping Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
inline-borderpadding
invalidation Bug 857356 - Make reftests/crashtest run without XBL scopes. r=bz 2013-05-09 09:16:02 -07:00
layers
line-breaking Bug 820263 - Mark as CLASS_COMPLEX for Khmer language. r=masayuki 2013-03-04 19:17:03 +09:00
list-item
margin-collapsing Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
marquee
mathml Bug 764996 - Reftests. r=karlt 2013-05-29 19:26:41 -04:00
native-theme
object Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
ogg-video Bug 851985 - Mark tests that don't reliably block onload (or loadeddata) as random. r=doublec 2013-03-17 22:06:27 -04:00
pagination Bug 857324: Make column set reflow continue without balancing rather than restarting if computed height is exceeded. [r=mats] 2013-04-24 10:02:36 -05:00
percent-overflow-sizing Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
pixel-rounding Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
position-dynamic-changes Bug 702504 - Mark reftests that fail with the new resolution as fuzzy. r=roc 2013-03-12 09:21:30 +13:00
printing Bug 791480 - Mark printing/745025-1.html as fuzzy-if on Windows7 due to too many intermittent failures 2013-01-10 14:59:27 +00:00
reftest-sanity Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE 2013-04-10 09:20:52 +00:00
scoped-style Bug 844683 - Prevent scoped-style-pseudo-00[12].html from failing when :scope is disabled. r=philor 2013-03-25 17:15:18 +11:00
scrolling Backed out 8 changesets (bug 803299) because it makes Tcheckerboard and Tpan so much worse 2013-05-29 17:14:27 -04:00
selection Bug 858203 - mark more reftests as needs-focus; r=dholbert 2013-04-04 15:02:30 -04:00
svg Bug 876323 - Avoid recomputing mPositions when COORD_CONTEXT_CHANGED unless percentages were used. r=jwatt 2013-05-30 10:44:55 +10:00
tab-size
table-anonymous-boxes
table-background Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
table-bordercollapse
table-dom
table-overflow
table-width Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
text 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
text-decoration Bug 834737 - 2 text reftests fail while running unitests on ubuntu 12.04 on ec2 VMs. r=bz 2013-02-05 08:57:40 -05:00
text-indent
text-overflow Bug 846772 - Fuzz/un-fuzz tests for the dynamic toolbar on Android. r=jwatt,matspal 2013-03-12 18:32:26 +00:00
text-shadow
text-svgglyphs bug 871961 pt 3 - annotate failing svgglyphs reftests. r=roc 2013-05-22 23:48:27 +08:00
text-transform bug 831354 - test fix 7 - explicitly use Droid Serif for the greek-uppercase-1 test on Android, as default fonts may not be suitable. r=dbaron 2013-01-19 10:29:54 +00:00
transform Bug 830192. Integrate GetFixedContainingBlock into GetAbsoluteContainingBlock and ensure only elements which can be abs-pos containing blocks are turned into fixed-pos containing blocks when transformed. r=bzbarsky 2013-01-25 21:58:33 +13:00
transform-3d Bug 852651 - Fix for scale3d-all and scale3d-all-separate failing on inbound in Win8. r=bbondy 2013-03-20 12:41:35 -05:00
unicode
view-source
w3c-css Bug 826582 - Part 5: Upstream calc-in-gradient tests. r=dbaron 2013-01-16 14:18:13 +11:00
webm-video Bug 851985 - Mark tests that don't reliably block onload (or loadeddata) as random. r=doublec 2013-03-17 22:06:27 -04:00
xul Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
xul-document-load
z-index
filters.svg
reftest.list Bug 815408: Ignore CSS transitions and animations in print and print preview. r=bzbarsky 2013-05-29 14:36:39 +08:00