// For documentation of the format, see README in this directory.
var browserTests = [
[
"foo[]bar" ,
[[
"forecolor" ,
"#0000FF" ]],
"foo[]bar" ,
[
true ],
{
"forecolor" :[
false ,
false ,
"rgb(0, 0, 0)" ,
false ,
false ,
"rgb(0, 0, 255)" ]}],
[
"[foo
bar]
" ,
[[
"stylewithcss" ,
"true" ],[
"forecolor" ,
"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo
color:rgb(0, 0, 255)\">bar]
" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
false ,
"" ,
false ,
true ,
"" ],
"forecolor" :[
false ,
false ,
"rgb(0, 0, 0)" ,
false ,
false ,
"rgb(0, 0, 255)" ]}],
[
"[foo
bar]
" ,
[[
"stylewithcss" ,
"false" ],[
"forecolor" ,
"#0000FF" ]],
"#0000ff\">[foo
#0000ff\">bar]
" ,
[
true ,
true ],
{
"stylewithcss" :[
false ,
true ,
"" ,
false ,
false ,
"" ],
"forecolor" :[
false ,
false ,
"rgb(0, 0, 0)" ,
false ,
false ,
"rgb(0, 0, 255)" ]}],
[
"[foo bar] " ,
[[
"stylewithcss" ,
"true" ],[
"forecolor" ,
"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo bar] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["[foo bar] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo bar] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["[foo
bar
baz]
" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo
color:rgb(0, 0, 255)\">bar
color:rgb(0, 0, 255)\">baz]
" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["[foo
bar
baz]
" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo
#0000ff\">bar
#0000ff\">baz]
" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["[foo
bar]"
,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo
color:rgb(0, 0, 255)\">
color:rgb(0, 0, 255)\">bar]
" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["[foo
bar]"
,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo
#0000ff\">
#0000ff\">bar]
" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[]bar " ,
[["forecolor" ,"#0000FF" ]],
"foo[]bar " ,
[true ],
{"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[]bar " ,
[["forecolor" ,"#0000FF" ]],
"foo[]bar " ,
[true ],
{"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo {}bar " ,
[["forecolor" ,"#0000FF" ]],
"foo {}bar " ,
[true ],
{"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[ ]bar " ,
[["forecolor" ,"#0000FF" ]],
"foo[ ]bar " ,
[true ],
{"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"foocolor:rgb(0, 0, 255)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"foo#0000ff\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[barbaz]qoz quz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"foocolor:rgb(0, 0, 255)\">[bar color:rgb(0, 0, 255)\">baz] qoz quz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[barbaz]qoz quz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"foo#0000ff\">[bar #0000ff\">baz] qoz quz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[barbaz]qoz quz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"foocolor:rgb(0, 0, 255)\">[bar color:rgb(0, 0, 255)\">baz] qoz quz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[barbaz]qoz quz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"foo#0000ff\">[bar #0000ff\">baz] qoz quz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["{
foo
}" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"{
color:rgb(0, 0, 255)\">foo
}" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["{
foo
}" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"{
#0000ff\">foo
}" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"blue" ]],
"foocolor:rgb(0, 0, 255)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"blue" ]],
"foo#0000ff\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["forecolor" ,"f" ]],
"foo[bar]baz" ,
[true ],
{"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 0)" ]}],
["foo[bar]baz" ,
[["forecolor" ,"#f" ]],
"foo[bar]baz" ,
[true ],
{"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 0)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"00f" ]],
"foocolor:rgb(0, 0, 255)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"00f" ]],
"foo#0000ff\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#00f" ]],
"foocolor:rgb(0, 0, 255)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#00f" ]],
"foo#0000ff\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"0000ff" ]],
"foocolor:rgb(0, 0, 255)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"0000ff" ]],
"foo#0000ff\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000ff" ]],
"foocolor:rgb(0, 0, 255)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000ff" ]],
"foo#0000ff\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["forecolor" ,"000000fff" ]],
"foo[bar]baz" ,
[true ],
{"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 0)" ]}],
["foo[bar]baz" ,
[["forecolor" ,"#000000fff" ]],
"foo[bar]baz" ,
[true ],
{"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 0)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"rgb(0, 0, 255)" ]],
"foocolor:rgb(0, 0, 255)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"rgb(0, 0, 255)" ]],
"foo#0000ff\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"rgb(0%, 0%, 100%)" ]],
"foocolor:rgb(0, 0, 255)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"rgb(0%, 0%, 100%)" ]],
"foo#0000ff\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"rgb( 0 ,0 ,255)" ]],
"foocolor:rgb(0, 0, 255)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"rgb( 0 ,0 ,255)" ]],
"foo#0000ff\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"rgba(0, 0, 255, 0.0)" ]],
"foocolor:rgba(0, 0, 0, 0)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgba(0, 0, 255, 0)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"rgba(0, 0, 255, 0.0)" ]],
"foocolor:rgba(0, 0, 0, 0)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgba(0, 0, 255, 0)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"rgb(15, -10, 375)" ]],
"foocolor:rgb(15, 0, 255)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(15, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"rgb(15, -10, 375)" ]],
"foo#0f00ff\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(15, 0, 255)" ]}],
["foo[bar]baz" ,
[["forecolor" ,"rgba(0, 0, 0, 1)" ]],
"foo[bar]baz" ,
[true ],
{"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 0)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"rgba(255, 255, 255, 1)" ]],
"foocolor:rgb(255, 255, 255)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(255, 255, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"rgba(255, 255, 255, 1)" ]],
"foo#ffffff\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(255, 255, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"rgba(0, 0, 255, 0.5)" ]],
"foocolor:rgba(0, 0, 255, 0.5)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgba(0, 0, 255, 0.5)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"rgba(0, 0, 255, 0.5)" ]],
"foocolor:rgba(0, 0, 255, 0.5)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgba(0, 0, 255, 0.5)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"hsl(240, 100%, 50%)" ]],
"foocolor:rgb(0, 0, 255)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"hsl(240, 100%, 50%)" ]],
"foo#0000ff\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"cornsilk" ]],
"foocolor:rgb(255, 248, 220)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(255, 248, 220)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"cornsilk" ]],
"foo#fff8dc\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(255, 248, 220)" ]}],
["foo[bar]baz" ,
[["forecolor" ,"potato quiche" ]],
"foo[bar]baz" ,
[true ],
{"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 0)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"transparent" ]],
"foocolor:rgba(0, 0, 0, 0)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgba(0, 0, 0, 0)" ]}],
["foo[bar]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"transparent" ]],
"foocolor:rgba(0, 0, 0, 0)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgba(0, 0, 0, 0)" ]}],
["foo[bar]baz" ,
[["forecolor" ,"currentColor" ]],
"foo[bar]baz" ,
[false ],
{"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 0)" ]}],
["" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"foo bcolor:rgb(0, 0, 255)\">[a] r baz
" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"foo {color:rgb(0, 0, 255)\">bar }baz
" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"{color:rgb(0, 0, 255)\">foo color:rgb(0, 0, 255)\">bar }baz
" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"{#0000ff\">foo #0000ff\">bar }baz
" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"{color:rgb(0, 0, 255)\">foo color:rgb(0, 0, 255)\">bar color:rgb(0, 0, 255)\">baz }
" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"{#0000ff\">foo #0000ff\">bar #0000ff\">baz }
" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"{color:rgb(0, 0, 255)\">foo color:rgb(0, 0, 255)\">bar color:rgb(0, 0, 255)\">baz }
" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"{#0000ff\">foo #0000ff\">bar #0000ff\">baz }
" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["{}" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"{color:rgb(0, 0, 255)\">foo color:rgb(0, 0, 255)\">bar color:rgb(0, 0, 255)\">baz
}" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["{}" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"{#0000ff\">foo #0000ff\">bar #0000ff\">baz
}" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar] baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"foocolor:rgb(0, 0, 255)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar] baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"foo#0000ff\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo{bar }baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"foo{color:rgb(0, 0, 255)\">bar} baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo{bar }baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"foo{#0000ff\">bar} baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
// Once the inner <span> style is updated, it has same style as the outer one.
// Therefore, it may be okay to use the outer one is the only container of the
// text nodes or it may be okay to split the outer one and keep 3 <span>s.
["color: blue\">foocolor: brown\">[bar] baz " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
["color:rgb(0, 0, 255)\">foo color:rgb(0, 0, 255)\">bar color:rgb(0, 0, 255)\">baz " ,
"color:rgb(0, 0, 255)\">foo[bar]baz " ],
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: blue\">foocolor: brown\">[bar] baz " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">foo #0000ff\">[bar] color:rgb(0, 0, 255)\">baz " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: #00f\">foocolor: brown\">[bar] baz " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">foo[bar]baz " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: #00f\">foocolor: brown\">[bar] baz " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">foo[bar]baz " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: #0000ff\">foocolor: brown\">[bar] baz " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">foo[bar]baz " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: #0000ff\">foocolor: brown\">[bar] baz " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">foo[bar]baz " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgb(0, 0, 255)\">foocolor: brown\">[bar] baz " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">foo[bar]baz " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgb(0, 0, 255)\">foocolor: brown\">[bar] baz " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">foo[bar]baz " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
// Use the inner <font> for the `style` attribute container. Then, the outer
// <font> should be split and may be serialized.
["foo[bar] baz " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
["color:rgb(0, 0, 255)\">foo color:rgb(0, 0, 255)\">bar color:rgb(0, 0, 255)\">baz " ,
"blue\">foo color:rgb(0, 0, 255)\">bar blue\">baz " ],
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar] baz " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"blue\">foo[bar]baz " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgb(0, 0, 255)\">foocolor: brown\">b[ar] baz " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">foocolor:rgb(165, 42, 42)\">b [ar]baz " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgb(0, 0, 255)\">foocolor: brown\">b[ar] baz " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">foo#a52a2a\">b [ar]baz " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["fooba[r ba]z" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"foopurple\">bacolor:rgb(0, 0, 255)\">[r color:rgb(0, 0, 255)\">ba] z" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[true ,false ,"rgb(128, 0, 128)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["fooba[r ba]z" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"foopurple\">ba#0000ff\">[r #0000ff\">ba] z" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[true ,false ,"rgb(128, 0, 128)" ,false ,false ,"rgb(0, 0, 255)" ]}],
// XXX Looks like that there is no good solution for this case because id=purple
// may affect the style, but it's unclear for builtin editors of the browsers.
["color: rgb(0, 0, 255)\">foob[a]r baz " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">foopurple\">bcolor:rgb(0, 0, 255)\">[a] r baz " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(128, 0, 128)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgb(0, 0, 255)\">foob[a]r baz " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">foopurple\">b#0000ff\">[a] r baz " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(128, 0, 128)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["http://www.google.com >foo[bar]baz",
[["forecolor" ,"blue" ]],
"http://www.google.com\">foo[bar]baz</a>",
[true ],
{"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["http://www.google.com >foo[bar]baz ",
[["forecolor" ,"#0000ff" ]],
"http://www.google.com\">foo[bar]baz</a>",
[true ],
{"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["http://www.google.com >foo[bar]baz ",
[["forecolor" ,"rgb(0,0,255)" ]],
"http://www.google.com\">foo[bar]baz</a>",
[true ],
{"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["blue\">[foo] " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["blue\">[foo] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["0000ff\">[foo] " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["0000ff\">[foo] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["#0000ff\">[foo] " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["#0000ff\">[foo] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: blue\">[foo] " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: blue\">[foo] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: #0000ff\">[foo] " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: #0000ff\">[foo] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgb(0, 0, 255)\">[foo] " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgb(0, 0, 255)\">[foo] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgb(0%, 0%, 100%)\">[foo] " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgb(0%, 0%, 100%)\">[foo] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgb( 0 ,0 ,255)\">[foo] " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgb( 0 ,0 ,255)\">[foo] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgba(0, 0, 255, 0.0)\">[foo] " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgba(0, 0, 255, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgba(0, 0, 255, 0.0)\">[foo] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgba(0, 0, 255, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgb(15, -10, 375)\">[foo] " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(15, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgb(15, -10, 375)\">[foo] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(15, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgba(0, 0, 0, 1)\">[foo] " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgba(0, 0, 0, 1)\">[foo] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgba(255, 255, 255, 1)\">[foo] " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(255, 255, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgba(255, 255, 255, 1)\">[foo] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(255, 255, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgba(0, 0, 255, 0.5)\">[foo] " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgba(0, 0, 255, 0.5)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: rgba(0, 0, 255, 0.5)\">[foo] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgba(0, 0, 255, 0.5)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: hsl(240, 100%, 50%)\">[foo] " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: hsl(240, 100%, 50%)\">[foo] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 255)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: cornsilk\">[foo] " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(255, 248, 220)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: cornsilk\">[foo] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(255, 248, 220)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: transparent\">[foo] " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgba(0, 0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: transparent\">[foo] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgba(0, 0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: currentColor\">[foo] " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(0, 0, 255)\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["color: currentColor\">[foo] " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"#0000ff\">[foo] " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["fo[ob]ar baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"focolor:rgb(0, 0, 255)\">[ob] brown\">ar baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[true ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["fo[ob]ar baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"fo#0000ff\">[ob] brown\">ar baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[true ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["fooba[r b]az" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"foobrown\">ba color:rgb(0, 0, 255)\">[rb] az" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[true ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["fooba[r b]az" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"foobrown\">ba #0000ff\">[rb] az" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[true ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["fo[obar b]az" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"focolor:rgb(0, 0, 255)\">[obarb] az" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[true ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["fo[obar b]az" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"fo#0000ff\">[obarb] az" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[true ,false ,"rgb(0, 0, 0)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[b]ar baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"foocolor:rgb(0, 0, 255)\">[b] brown\">ar baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[b]ar baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"foo#0000ff\">[b] brown\">ar baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["fooba[r ]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"foobrown\">ba color:rgb(0, 0, 255)\">[r] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["fooba[r ]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"foobrown\">ba #0000ff\">[r] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar ]baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"foo[color:rgb(0, 0, 255)\">bar ]baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar ]baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"foo[#0000ff\">bar ]baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar] baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"foocolor:rgb(0, 0, 255)\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo[bar] baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"foo#0000ff\">[bar] baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo{bar }baz" ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"foo{color:rgb(0, 0, 255)\">bar} baz" ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["foo{bar }baz" ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"foo{#0000ff\">bar} baz" ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["fo[o b]ar " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"brown\">fo color:rgb(0, 0, 255)\">[ob] color:rgb(165, 42, 42)\">ar " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["fo[o b]ar " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"brown\">fo #0000ff\">ob color:rgb(165, 42, 42)\">ar " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[false ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["fo[o b]ar " ,
[["stylewithcss" ,"true" ],["forecolor" ,"#0000FF" ]],
"color:rgb(165, 42, 42)\">fo color:rgb(0, 0, 255)\">[ob]ar " ,
[true ,true ],
{"stylewithcss" :[false ,false ,"" ,false ,true ,"" ],"forecolor" :[true ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
["fo[o b]ar " ,
[["stylewithcss" ,"false" ],["forecolor" ,"#0000FF" ]],
"color:rgb(165, 42, 42)\">fo #0000ff\">[ob] color:rgb(0, 0, 255)\">ar " ,
[true ,true ],
{"stylewithcss" :[false ,true ,"" ,false ,false ,"" ],"forecolor" :[true ,false ,"rgb(165, 42, 42)" ,false ,false ,"rgb(0, 0, 255)" ]}],
// If contents of <font> are entirely selected, it should be reused.
["[abc] " ,
[["styleWithCSS" ,"false" ],["foreColor" ,"#ff0000" ]],
["#ff0000\" size=\" 7\">[abc] " ,
"7\" color=\" #ff0000\">[abc] " ],
[true ,true ],
{}],
["[abc] " ,
[["styleWithCSS" ,"false" ],["foreColor" ,"#ff0000" ]],
["monospace\" color=\" #ff0000\">[abc] " ,
"#ff0000\" face=\" monospace\">[abc] " ],
[true ,true ],
{}],
["7\" face=monospace>[abc] " ,
[["styleWithCSS" ,"false" ],["foreColor" ,"#ff0000" ]],
["#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" ],["foreColor" ,"#ff0000" ]],
"7\">#ff0000\">[a] bc " ,
[true ,true ],
{}],
["ab[c] " ,
[["styleWithCSS" ,"false" ],["foreColor" ,"#ff0000" ]],
"7\">ab#ff0000\">[c] " ,
[true ,true ],
{}],
["[a]bc " ,
[["styleWithCSS" ,"false" ],["foreColor" ,"#ff0000" ]],
"monospace\">#ff0000\">[a] bc " ,
[true ,true ],
{}],
["ab[c] " ,
[["styleWithCSS" ,"false" ],["foreColor" ,"#ff0000" ]],
"monospace\">ab#ff0000\">[c] " ,
[true ,true ],
{}],
// When typing text, `styleWithCSS` value may have been changed at setting the
// style. In the cases, consider to use HTML or CSS style when typing text,
// but if it's impossible to set with `<font color="...">`, use
// `<span style="color:rgba(...)">` even if `styleWithCSS` is "false".
["a[]c" ,
[["styleWithCSS" ,"true" ],["foreColor" ,"#0000FF" ],["styleWithCSS" ,"false" ],["insertText" ,"b" ]],
"a#0000ff\">b c" ,
[true ,true ,true ,true ],
{}],
["a[]c" ,
[["styleWithCSS" ,"true" ],["foreColor" ,"rgb(0, 0, 255)" ],["styleWithCSS" ,"false" ],["insertText" ,"b" ]],
"a#0000ff\">b c" ,
[true ,true ,true ,true ],
{}],
["a[]c" ,
[["styleWithCSS" ,"true" ],["foreColor" ,"rgba(0, 0, 255, 0.5)" ],["styleWithCSS" ,"false" ],["insertText" ,"b" ]],
"acolor:rgba(0, 0, 255, 0.5)\">b c" ,
[true ,true ,true ,true ],
{}],
["a[]c" ,
[["styleWithCSS" ,"true" ],["foreColor" ,"transparent" ],["styleWithCSS" ,"false" ],["insertText" ,"b" ]],
"acolor:rgba(0, 0, 0, 0)\">b c" ,
[true ,true ,true ,true ],
{}],
["a[]c" ,
[["styleWithCSS" ,"false" ],["foreColor" ,"#0000FF" ],["styleWithCSS" ,"true" ],["insertText" ,"b" ]],
"acolor:rgb(0, 0, 255)\">b c" ,
[true ,true ,true ,true ],
{}],
["a[]c" ,
[["styleWithCSS" ,"false" ],["foreColor" ,"rgb(0, 0, 255)" ],["styleWithCSS" ,"true" ],["insertText" ,"b" ]],
"acolor:rgb(0, 0, 255)\">b c" ,
[true ,true ,true ,true ],
{}],
["a[]c" ,
[["styleWithCSS" ,"false" ],["foreColor" ,"rgba(0, 0, 255, 0.5)" ],["styleWithCSS" ,"true" ],["insertText" ,"b" ]],
"acolor:rgba(0, 0, 255, 0.5)\">b c" ,
[true ,true ,true ,true ],
{}],
["a[]c" ,
[["styleWithCSS" ,"false" ],["foreColor" ,"transparent" ],["styleWithCSS" ,"true" ],["insertText" ,"b" ]],
"acolor:rgba(0, 0, 0, 0)\">b c" ,
[true ,true ,true ,true ],
{}],
]
Messung V0.5 C=97 H=100 G=98
¤ Dauer der Verarbeitung: 0.5 Sekunden
(vorverarbeitet)
¤
*© Formatika GbR, Deutschland