Quelle fontsize.js
Sprache: JAVA
|
|
// For documentation of the format, see README in this directory.
var browserTests = [
[ "foo[]bar",
[[ "fontsize", "4"]],
"foo[]bar",
[ true],
{ "fontsize":[ false, false, "3", false, false, "4"]}],
[ "[foo bar] ",
[[ "stylewithcss", "true"],[ "fontsize", "4"]],
"font-size:large\">[foo font-size:large\">bar] ",
[ true, true],
{ "stylewithcss":[ false, false, "", false, true, ""], "fontsize":[ false, false, "3", false,false,"4"]}],
["[foo bar] ",
[["stylewithcss","false"],["fontsize","4"]],
"4\">[foo 4\">bar] ",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["[foo bar]",
[["stylewithcss","true"],["fontsize","4"]],
"font-size:large\">[foo bar]",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["[foo bar]",
[["stylewithcss","false"],["fontsize","4"]],
"4\">[foo bar]",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["[foo bar baz] ",
[["stylewithcss","true"],["fontsize","4"]],
"font-size:large\">[foo font-size:large\">bar font-size:large\">baz] ",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["[foo bar baz] ",
[["stylewithcss","false"],["fontsize","4"]],
"4\">[foo 4\">bar 4\">baz] ",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["[foo
bar]" ,
[["stylewithcss","true"],["fontsize","4"]],
"font-size:large\">[foo
font-size:large\">bar] ",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",true,false,"4"]}],
["[foo
bar]" ,
[["stylewithcss","false"],["fontsize","4"]],
"4\">[foo
4\">bar] ",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",true,false,"4"]}],
["foo[]bar",
[["fontsize","4"]],
"foo[]bar",
[true],
{"fontsize":[false,false,"3",false,false,"4"]}],
["foo[]bar",
[["fontsize","4"]],
"foo[]bar",
[true],
{"fontsize":[false,false,"3",false,false,"4"]}],
["foo{}bar",
[["fontsize","4"]],
"foo{}bar",
[true],
{"fontsize":[false,false,"3",false,false,"4"]}],
["foo[]bar",
[["fontsize","4"]],
"foo[]bar",
[true],
{"fontsize":[false,false,"3",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","4"]],
"foofont-size:large\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","4"]],
"foo4\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["foo[barbaz]qozquz",
[["stylewithcss","true"],["fontsize","4"]],
"foofont-size:large\">[barfont-size:large\">baz]qozquz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["foo[barbaz]qozquz",
[["stylewithcss","false"],["fontsize","4"]],
"foo4\">[bar4\">baz]qozquz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["foo[barbaz]qozquz",
[["stylewithcss","true"],["fontsize","4"]],
"foofont-size:large\">[barfont-size:large\">baz]qozquz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["foo[barbaz]qozquz",
[["stylewithcss","false"],["fontsize","4"]],
"foo4\">[bar4\">baz]qozquz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["{ foo }",
[["stylewithcss","true"],["fontsize","4"]],
"{ font-size:large\">foo }",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["{ foo }",
[["stylewithcss","false"],["fontsize","4"]],
"{ 4\">foo }",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","1"]],
"foofont-size:x-small\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","1"]],
"foo1\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","0"]],
"foofont-size:x-small\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","0"]],
"foo1\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","-5"]],
"foofont-size:x-small\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","-5"]],
"foo1\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","6"]],
"foofont-size:xx-large\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"6"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","6"]],
"foo6\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"6"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","7"]],
"foo7\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"7"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","7"]],
"foo7\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"7"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","8"]],
"foo7\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"7"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","8"]],
"foo7\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"7"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","100"]],
"foo7\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"7"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","100"]],
"foo7\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"7"]}],
["foo[bar]baz",
[["fontsize","2em"]],
"foo[bar]baz",
[false],
{"fontsize":[false,false,"3",false,false,"3"]}],
["foo[bar]baz",
[["fontsize","20pt"]],
"foo[bar]baz",
[false],
{"fontsize":[false,false,"3",false,false,"3"]}],
["foo[bar]baz",
[["fontsize","xx-large"]],
"foo[bar]baz",
[false],
{"fontsize":[false,false,"3",false,false,"3"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize"," 1 "]],
"foofont-size:x-small\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize"," 1 "]],
"foo1\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["fontsize","1."]],
"foo[bar]baz",
[false],
{"fontsize":[false,false,"3",false,false,"3"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","1.0"]],
"foofont-size:x-small\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","1.0"]],
"foo1\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","1.0e2"]],
"foofont-size:x-small\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","1.0e2"]],
"foo1\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","1.1"]],
"foofont-size:x-small\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","1.1"]],
"foo1\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","1.9"]],
"foofont-size:x-small\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","1.9"]],
"foo1\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["fontsize","+0"]],
"foo[bar]baz",
[true],
{"fontsize":[false,false,"3",false,false,"3"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","+1"]],
"foofont-size:large\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","+1"]],
"foo4\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","+9"]],
"foo7\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"7"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","+9"]],
"foo7\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"7"]}],
["foo[bar]baz",
[["fontsize","-0"]],
"foo[bar]baz",
[true],
{"fontsize":[false,false,"3",false,false,"3"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","-1"]],
"foofont-size:small\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"2"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","-1"]],
"foo2\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"2"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","-9"]],
"foofont-size:x-small\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","-9"]],
"foo1\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"1"]}],
["foo[bar]baz",
[["fontsize",""]],
"foo[bar]baz",
[false],
{"fontsize":[false,false,"3",false,false,"3"]}],
["",
[["stylewithcss","true"],["fontsize","4"]],
"| foo | bfont-size:large\">[a]r | baz | ",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["",
[["stylewithcss","false"],["fontsize","4"]],
"",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["",
[["stylewithcss","true"],["fontsize","4"]],
"| foo | {font-size:large\">bar | }baz | ",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["",
[["stylewithcss","false"],["fontsize","4"]],
"",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["",
[["stylewithcss","true"],["fontsize","4"]],
"{| font-size:large\">foo | font-size:large\">bar | }baz | ",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["",
[["stylewithcss","false"],["fontsize","4"]],
"",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["",
[["stylewithcss","true"],["fontsize","4"]],
"{| font-size:large\">foo | font-size:large\">bar | font-size:large\">baz | } ",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["",
[["stylewithcss","false"],["fontsize","4"]],
"",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["",
[["stylewithcss","true"],["fontsize","4"]],
"{| font-size:large\">foo | font-size:large\">bar | font-size:large\">baz | } ",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["",
[["stylewithcss","false"],["fontsize","4"]],
"",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["{}",
[["stylewithcss","true"],["fontsize","4"]],
"{| font-size:large\">foo | font-size:large\">bar | font-size:large\">baz | }",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["{}",
[["stylewithcss","false"],["fontsize","4"]],
"{}",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","4"]],
"foofont-size:large\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"1",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","4"]],
"foo4\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"1",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","4"]],
"1\">foofont-size:large\">[bar]1\">baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"1",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","4"]],
"1\">foo4\">[bar]1\">baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"1",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","4"]],
"foofont-size:large\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","4"]],
"foo4\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","4"]],
"3\">foofont-size:large\">[bar]3\">baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","4"]],
"3\">foo4\">[bar]3\">baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","4"]],
"foofont-size:large\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"4",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","4"]],
"foo4\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"4",false,false,"4"]}],
["foo[bar]baz",
[["fontsize","4"]],
"4\">foo[bar]baz",
[true],
{"fontsize":[false,false,"4",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","4"]],
"foofont-size:large\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"4",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","4"]],
"foo4\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"4",false,false,"4"]}],
["foo[bar]baz",
[["fontsize","4"]],
"+1\">foo[bar]baz",
[true],
{"fontsize":[false,false,"4",false,false,"4"]}],
["foob[a]rbaz",
[["stylewithcss","true"],["fontsize","4"]],
"4\">foofont-size:x-small\">b[a]font-size:x-small\">rbaz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"1",false,false,"4"]}],
["foob[a]rbaz",
[["stylewithcss","false"],["fontsize","4"]],
"4\">foo1\">b[a]1\">rbaz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"1",false,false,"4"]}],
["foofont-size: xx-small\">[bar]baz",
[["stylewithcss","true"],["fontsize","4"]],
"foofont-size:large\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"1",false,false,"4"]}],
["foofont-size: xx-small\">[bar]baz",
[["stylewithcss","false"],["fontsize","4"]],
"foo4\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"1",false,false,"4"]}],
["font-size: xx-small\">foo[bar]baz",
[["stylewithcss","true"],["fontsize","4"]],
"font-size:xx-small\">foofont-size:large\">[bar]font-size:xx-small\">baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"1",false,false,"4"]}],
["font-size: xx-small\">foo[bar]baz",
[["stylewithcss","false"],["fontsize","4"]],
"font-size:xx-small\">foo4\">[bar]font-size:xx-small\">baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"1",false,false,"4"]}],
["foofont-size: medium\">[bar]baz",
[["stylewithcss","true"],["fontsize","4"]],
"foofont-size:large\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["foofont-size: medium\">[bar]baz",
[["stylewithcss","false"],["fontsize","4"]],
"foo4\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["font-size: medium\">foo[bar]baz",
[["stylewithcss","true"],["fontsize","4"]],
"font-size:medium\">foofont-size:large\">[bar]font-size:medium\">baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["font-size: medium\">foo[bar]baz",
[["stylewithcss","false"],["fontsize","4"]],
"font-size:medium\">foo4\">[bar]font-size:medium\">baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["foofont-size: large\">[bar]baz",
[["stylewithcss","true"],["fontsize","4"]],
"foofont-size:large\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"4",false,false,"4"]}],
["foofont-size: large\">[bar]baz",
[["stylewithcss","false"],["fontsize","4"]],
"foo4\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"4",false,false,"4"]}],
["font-size: large\">foo[bar]baz",
[["fontsize","4"]],
"font-size:large\">foo[bar]baz",
[true],
{"fontsize":[false,false,"4",false,false,"4"]}],
["font-size: large\">foofont-size: xx-small\">b[a]rbaz",
[["stylewithcss","true"],["fontsize","4"]],
"font-size:large\">foofont-size:xx-small\">b[a]font-size:xx-small\">rbaz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"1",false,false,"4"]}],
["font-size: large\">foofont-size: xx-small\">b[a]rbaz",
[["stylewithcss","false"],["fontsize","4"]],
"font-size:large\">foofont-size:xx-small\">b[a]font-size:xx-small\">rbaz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"1",false,false,"4"]}],
["foofont-size: 2em\">[bar]baz",
[["stylewithcss","true"],["fontsize","4"]],
"foofont-size:large\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"6",false,false,"4"]}],
["foofont-size: 2em\">[bar]baz",
[["stylewithcss","false"],["fontsize","4"]],
"foo4\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"6",false,false,"4"]}],
["font-size: 2em\">foo[bar]baz",
[["stylewithcss","true"],["fontsize","4"]],
"font-size:2em\">foofont-size:large\">[bar]font-size:2em\">baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"6",false,false,"4"]}],
["font-size: 2em\">foo[bar]baz",
[["stylewithcss","false"],["fontsize","4"]],
"font-size:2em\">foo4\">[bar]font-size:2em\">baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"6",false,false,"4"]}],
["font-size: xx-small\">foo[bar]baz ",
[["stylewithcss","true"],["fontsize","4"]],
"font-size:xx-small\">foofont-size:large\">[bar]baz ",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"1",false,false,"4"]}],
["font-size: xx-small\">foo[bar]baz ",
[["stylewithcss","false"],["fontsize","4"]],
"font-size:xx-small\">foo4\">[bar]baz ",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"1",false,false,"4"]}],
["font-size: medium\">foo[bar]baz ",
[["stylewithcss","true"],["fontsize","4"]],
"font-size:medium\">foofont-size:large\">[bar]baz ",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["font-size: medium\">foo[bar]baz ",
[["stylewithcss","false"],["fontsize","4"]],
"font-size:medium\">foo4\">[bar]baz ",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["font-size: large\">foo[bar]baz ",
[["fontsize","4"]],
"font-size:large\">foo[bar]baz ",
[true],
{"fontsize":[false,false,"4",false,false,"4"]}],
["font-size: 2em\">foo[bar]baz ",
[["stylewithcss","true"],["fontsize","4"]],
"font-size:2em\">foofont-size:large\">[bar]baz ",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"6",false,false,"4"]}],
["font-size: 2em\">foo[bar]baz ",
[["stylewithcss","false"],["fontsize","4"]],
"font-size:2em\">foo4\">[bar]baz ",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"6",false,false,"4"]}],
["font-size: xx-small\">foo[bar]baz ",
[["stylewithcss","true"],["fontsize","3"]],
"font-size:xx-small\">foo[bar]font-size:xx-small\">baz ",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"1",false,false,"3"]}],
["font-size: xx-small\">foo[bar]baz ",
[["stylewithcss","false"],["fontsize","3"]],
"font-size:xx-small\">foo[bar]font-size:xx-small\">baz ",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"1",false,false,"3"]}],
["font-size: medium\">foo[bar]baz ",
[["fontsize","3"]],
"font-size:medium\">foo[bar]baz ",
[true],
{"fontsize":[false,false,"3",false,false,"3"]}],
["font-size: large\">foo[bar]baz ",
[["stylewithcss","true"],["fontsize","3"]],
"font-size:large\">foo[bar]font-size:large\">baz ",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"4",false,false,"3"]}],
["font-size: large\">foo[bar]baz ",
[["stylewithcss","false"],["fontsize","3"]],
"4\">foo[bar]4\">baz ",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"4",false,false,"3"]}],
["font-size: 2em\">foo[bar]baz ",
[["stylewithcss","true"],["fontsize","3"]],
"font-size:2em\">foo[bar]font-size:2em\">baz ",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"6",false,false,"3"]}],
["font-size: 2em\">foo[bar]baz ",
[["stylewithcss","false"],["fontsize","3"]],
"font-size:2em\">foo[bar]font-size:2em\">baz ",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"6",false,false,"3"]}],
["foo font-size: 2em\">b[a]r baz",
[["stylewithcss","true"],["fontsize","3"]],
"font-size:xx-large\">foo font-size:2em\">b[a]font-size:2em\">rfont-size:xx-large\"> baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"7",false,false,"3"]}],
["foo font-size: 2em\">b[a]r baz",
[["stylewithcss","false"],["fontsize","3"]],
"6\">foo font-size:2em\">b[a]font-size:2em\">r6\"> baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"7",false,false,"3"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","3"]],
"foofont-size:medium\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"4",false,false,"3"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","3"]],
"foo3\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"4",false,false,"3"]}],
["foob[a]rbaz",
[["stylewithcss","true"],["fontsize","3"]],
"foobfont-size:medium\">[a]rbaz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"4",false,false,"3"]}],
["foob[a]rbaz",
[["stylewithcss","false"],["fontsize","3"]],
"foob3\">[a]rbaz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"4",false,false,"3"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","3"]],
"foofont-size:medium\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"2",false,false,"3"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","3"]],
"foo3\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"2",false,false,"3"]}],
["foob[a]rbaz",
[["stylewithcss","true"],["fontsize","3"]],
"foobfont-size:medium\">[a]rbaz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"2",false,false,"3"]}],
["foob[a]rbaz",
[["stylewithcss","false"],["fontsize","3"]],
"foob3\">[a]rbaz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"2",false,false,"3"]}],
["fo[ob]arbaz",
[["stylewithcss","true"],["fontsize","4"]],
"fofont-size:large\">[ob]2\">arbaz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[true,false,"3",false,false,"4"]}],
["fo[ob]arbaz",
[["stylewithcss","false"],["fontsize","4"]],
"fo4\">[ob]2\">arbaz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[true,false,"3",false,false,"4"]}],
["fooba[rb]az",
[["stylewithcss","true"],["fontsize","4"]],
"foo2\">bafont-size:large\">[rb]az",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[true,false,"2",false,false,"4"]}],
["fooba[rb]az",
[["stylewithcss","false"],["fontsize","4"]],
"foo2\">ba4\">[rb]az",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[true,false,"2",false,false,"4"]}],
["fo[obarb]az",
[["stylewithcss","true"],["fontsize","4"]],
"fofont-size:large\">[obarb]az",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[true,false,"3",false,false,"4"]}],
["fo[obarb]az",
[["stylewithcss","false"],["fontsize","4"]],
"fo4\">[obarb]az",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[true,false,"3",false,false,"4"]}],
["foo[b]arbaz",
[["stylewithcss","true"],["fontsize","4"]],
"foofont-size:large\">b2\">arbaz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"2",false,false,"4"]}],
["foo[b]arbaz",
[["stylewithcss","false"],["fontsize","4"]],
"foo4\">[b]2\">arbaz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"2",false,false,"4"]}],
["fooba[r]baz",
[["stylewithcss","true"],["fontsize","4"]],
"foo2\">bafont-size:large\">rbaz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"2",false,false,"4"]}],
["fooba[r]baz",
[["stylewithcss","false"],["fontsize","4"]],
"foo2\">ba4\">[r]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"2",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","4"]],
"foo[font-size:large\">bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"2",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","4"]],
"foo[4\">bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"2",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontsize","4"]],
"foofont-size:large\">[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"2",false,false,"4"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontsize","4"]],
"foo4\">[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"2",false,false,"4"]}],
["foo{bar}baz",
[["stylewithcss","true"],["fontsize","4"]],
"foo{font-size:large\">bar}baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"2",false,false,"4"]}],
["foo{bar}baz",
[["stylewithcss","false"],["fontsize","4"]],
"foo{4\">bar}baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"2",false,false,"4"]}],
["fo[ob]ar",
[["stylewithcss","true"],["fontsize","4"]],
"1\">fofont-size:large\">[ob]font-size:xx-small\">ar",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[true,false,"1",false,false,"4"]}],
["fo[ob]ar",
[["stylewithcss","false"],["fontsize","4"]],
"1\">fo4\">[ob]font-size:xx-small\">ar",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[true,false,"1",false,false,"4"]}],
["fo[ob]ar",
[["stylewithcss","true"],["fontsize","4"]],
"2\">fofont-size:large\">[ob]font-size:small\">ar",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"2",false,false,"4"]}],
["fo[ob]ar",
[["stylewithcss","false"],["fontsize","4"]],
"2\">fo4\">[ob]font-size:small\">ar",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"2",false,false,"4"]}],
["fo[ob]ar",
[["stylewithcss","true"],["fontsize","4"]],
"3\">fofont-size:large\">[ob]font-size:medium\">ar",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"3",false,false,"4"]}],
["fo[ob]ar",
[["stylewithcss","false"],["fontsize","4"]],
"3\">fo4\">obfont-size:medium\">ar",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"3",false,false,"4"]}],
["fo[ob]ar",
[["fontsize","4"]],
"4\">fo[ofont-size:large\">b]ar",
[true],
{"fontsize":[false,false,"4",false,false,"4"]}],
["fo[ob]ar",
[["stylewithcss","true"],["fontsize","4"]],
"5\">fofont-size:large\">[ob]font-size:x-large\">ar",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"5",false,false,"4"]}],
["fo[ob]ar",
[["stylewithcss","false"],["fontsize","4"]],
"5\">fo4\">[ob]font-size:x-large\">ar",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"5",false,false,"4"]}],
["fo[ob]ar",
[["stylewithcss","true"],["fontsize","4"]],
"6\">fofont-size:large\">obfont-size:xx-large\">ar",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontsize":[false,false,"6",false,false,"4"]}],
["fo[ob]ar",
[["stylewithcss","false"],["fontsize","4"]],
"6\">fo4\">obfont-size:xx-large\">ar",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontsize":[false,false,"6",false,false,"4"]}],
// If contents of <font> are entirely selected, it should be reused.
["[abc]",
[["styleWithCSS","false"],["fontSize","7"]],
["#ff0000\" size=\"7\">[abc]",
"7\" color=\"#ff0000\">[abc]"],
[true,true],
{}],
["[abc]",
[["styleWithCSS","false"],["fontSize","7"]],
["monospace\" size=\"7\">[abc]",
"7\" face=\"monospace\">[abc]"],
[true,true],
{}],
["[abc]",
[["styleWithCSS","false"],["fontSize","7"]],
["#ff0000\" face=\"monospace\" size=\"7\">[abc]",
"#ff0000\" size=\"7\" face=\"monospace\">[abc]",
"monospace\" color=\"#ff0000\" size=\"7\">[abc]",
"monospace\" size=\"7\" color=\"#ff0000\">[abc]",
"7\" color=\"#ff0000\" face=\"monospace\">[abc]",
"7\" face=\"monospace\" color=\"#ff0000\">[abc]"],
[true,true],
{}],
// but don't split existing <font> if partially selected.
["[a]bc",
[["styleWithCSS","false"],["fontSize","7"]],
"#ff0000\">7\">[a]bc",
[true,true],
{}],
["ab[c]",
[["styleWithCSS","false"],["fontSize","7"]],
"#ff0000\">ab7\">[c]",
[true,true],
{}],
["[a]bc",
[["styleWithCSS","false"],["fontSize","7"]],
"monospace\">7\">[a]bc",
[true,true],
{}],
["ab[c]",
[["styleWithCSS","false"],["fontSize","7"]],
"monospace\">ab7\">[c]",
[true,true],
{}],
// font-size should be removed when applying fontsize without CSS.
// Blink and WebKit puts <font size="..."> into the <span> element in these
// test cases. However, this behavior may cause the background color is
// partially applied to the text because the height is computed without the
// <font>. Therefore, it may be better to put <font> outside any inline
// ancestors.
["font-size:32px; background-color:rgb(0, 128, 128)\">[abc]",
[["styleWithCSS","false"],["fontSize","5"]],
["background-color:rgb(0, 128, 128)\">5\">[abc]",
"5\">background-color:rgb(0, 128, 128)\">[abc]"],
[true,true],
{}],
["font-size:32px; background-color:rgb(0, 128, 128)\">[a]bc",
[["styleWithCSS","false"],["fontSize","5"]],
["background-color:rgb(0, 128, 128)\">5\">[a]font-size:32px; background-color:rgb(0, 128, 128)\">bc",
"5\">background-color:rgb(0, 128, 128)\">[a]font-size:32px; background-color:rgb(0, 128, 128)\">bc"],
[true,true],
{}],
["font-size:32px; background-color:rgb(0, 128, 128)\">a[b]c",
[["styleWithCSS","false"],["fontSize","5"]],
["font-size:32px; background-color:rgb(0, 128, 128)\">abackground-color:rgb(0, 128, 128)\">5\">[b]font-size:32px; background-color:rgb(0, 128, 128)\">c",
"font-size:32px; background-color:rgb(0, 128, 128)\">a5\ | |