Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/testing/web-platform/tests/editing/data/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 49 kB image not shown  

Quelle  forecolor.js   Sprache: JAVA

 
// 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]qozquz",
    [["stylewithcss","true"],["forecolor","#0000FF"]],
    "foocolor:rgb(0, 0, 255)\">[barcolor:rgb(0, 0, 255)\">baz]qozquz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"forecolor":[false,false,"rgb(0, 0, 0)",false,false,"rgb(0, 0, 255)"]}],
["foo[barbaz]qozquz",
    [["stylewithcss","false"],["forecolor","#0000FF"]],
    "foo#0000ff\">[bar#0000ff\">baz]qozquz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"forecolor":[false,false,"rgb(0, 0, 0)",false,false,"rgb(0, 0, 255)"]}],
["foo[barbaz]qozquz",
    [["stylewithcss","true"],["forecolor","#0000FF"]],
    "foocolor:rgb(0, 0, 255)\">[barcolor:rgb(0, 0, 255)\">baz]qozquz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"forecolor":[false,false,"rgb(0, 0, 0)",false,false,"rgb(0, 0, 255)"]}],
["foo[barbaz]qozquz",
    [["stylewithcss","false"],["forecolor","#0000FF"]],
    "foo#0000ff\">[bar#0000ff\">baz]qozquz",
    [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)"]}],
["
foob[a]rbaz
"
,
    [["stylewithcss","true"],["forecolor","#0000FF"]],
    "
foobcolor:rgb(0, 0, 255)\">[a]rbaz
"
,
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"forecolor":[false,false,"rgb(0, 0, 0)",false,false,"rgb(0, 0, 255)"]}],
["
foob[a]rbaz
"
,
    [["stylewithcss","false"],["forecolor","#0000FF"]],
    "
foob#0000ff\">[a]rbaz
"
,
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"forecolor":[false,false,"rgb(0, 0, 0)",false,false,"rgb(0, 0, 255)"]}],
["
foobarbaz
"
,
    [["stylewithcss","true"],["forecolor","#0000FF"]],
    "{}
foocolor:rgb(0, 0, 255)\">barbaz
"
,
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"forecolor":[false,false,"rgb(0, 0, 0)",false,false,"rgb(0, 0, 255)"]}],
["
foobarbaz
"
,
    [["stylewithcss","false"],["forecolor","#0000FF"]],
    "{}
foo#0000ff\">barbaz
"
,
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"forecolor":[false,false,"rgb(0, 0, 0)",false,false,"rgb(0, 0, 255)"]}],
["
foobarbaz
"
,
    [["stylewithcss","true"],["forecolor","#0000FF"]],
    "{}
color:rgb(0, 0, 255)\">foocolor:rgb(0, 0, 255)\">barbaz
"
,
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"forecolor":[false,false,"rgb(0, 0, 0)",false,false,"rgb(0, 0, 255)"]}],
["
foobarbaz
"
,
    [["stylewithcss","false"],["forecolor","#0000FF"]],
    "{}
#0000ff\">foo#0000ff\">barbaz
"
,
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"forecolor":[false,false,"rgb(0, 0, 0)",false,false,"rgb(0, 0, 255)"]}],
["
foobarbaz
"
,
    [["stylewithcss","true"],["forecolor","#0000FF"]],
    "{}
color:rgb(0, 0, 255)\">foocolor:rgb(0, 0, 255)\">barcolor: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)"]}],
["
foobarbaz
"
,
    [["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)"]}],
["
foobarbaz
"
,
    [["stylewithcss","true"],["forecolor","#0000FF"]],
    "{}
color:rgb(0, 0, 255)\">foocolor:rgb(0, 0, 255)\">barcolor: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)"]}],
["
foobarbaz
"
,
    [["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)"]}],
["{
foobarbaz
}"
,
    [["stylewithcss","true"],["forecolor","#0000FF"]],
    "{
color:rgb(0, 0, 255)\">foocolor:rgb(0, 0, 255)\">barcolor: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)"]}],
["{
foobarbaz
}"
,
    [["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)\">foocolor:rgb(0, 0, 255)\">barcolor: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)\">foocolor:rgb(0, 0, 255)\">barcolor:rgb(0, 0, 255)\">baz",
     "blue\">foocolor:rgb(0, 0, 255)\">barblue\">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[rba]z",
    [["stylewithcss","true"],["forecolor","#0000FF"]],
    "foopurple\">bacolor:rgb(0, 0, 255)\">[rcolor: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[rba]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]rbaz",
    [["stylewithcss","true"],["forecolor","#0000FF"]],
    "color:rgb(0, 0, 255)\">foopurple\">bcolor:rgb(0, 0, 255)\">[a]rbaz",
    [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]rbaz",
    [["stylewithcss","false"],["forecolor","#0000FF"]],
    "color:rgb(0, 0, 255)\">foopurple\">b#0000ff\">[a]rbaz",
    [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]arbaz",
    [["stylewithcss","true"],["forecolor","#0000FF"]],
    "focolor:rgb(0, 0, 255)\">[ob]brown\">arbaz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"forecolor":[true,false,"rgb(0, 0, 0)",false,false,"rgb(0, 0, 255)"]}],
["fo[ob]arbaz",
    [["stylewithcss","false"],["forecolor","#0000FF"]],
    "fo#0000ff\">[ob]brown\">arbaz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"forecolor":[true,false,"rgb(0, 0, 0)",false,false,"rgb(0, 0, 255)"]}],
["fooba[rb]az",
    [["stylewithcss","true"],["forecolor","#0000FF"]],
    "foobrown\">bacolor: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[rb]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[obarb]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[obarb]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]arbaz",
    [["stylewithcss","true"],["forecolor","#0000FF"]],
    "foocolor:rgb(0, 0, 255)\">[b]brown\">arbaz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"forecolor":[false,false,"rgb(165, 42, 42)",false,false,"rgb(0, 0, 255)"]}],
["foo[b]arbaz",
    [["stylewithcss","false"],["forecolor","#0000FF"]],
    "foo#0000ff\">[b]brown\">arbaz",
    [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\">bacolor: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[ob]ar",
    [["stylewithcss","true"],["forecolor","#0000FF"]],
    "brown\">focolor: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[ob]ar",
    [["stylewithcss","false"],["forecolor","#0000FF"]],
    "brown\">fo#0000ff\">obcolor: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[ob]ar",
    [["stylewithcss","true"],["forecolor","#0000FF"]],
    "color:rgb(165, 42, 42)\">focolor: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[ob]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\">bc",
    [true,true,true,true],
    {}],
["a[]c",
    [["styleWithCSS","true"],["foreColor","rgb(0, 0, 255)"],["styleWithCSS","false"],["insertText","b"]],
    "a#0000ff\">bc",
    [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)\">bc",
    [true,true,true,true],
    {}],
["a[]c",
    [["styleWithCSS","true"],["foreColor","transparent"],["styleWithCSS","false"],["insertText","b"]],
    "acolor:rgba(0, 0, 0, 0)\">bc",
    [true,true,true,true],
    {}],
["a[]c",
    [["styleWithCSS","false"],["foreColor","#0000FF"],["styleWithCSS","true"],["insertText","b"]],
    "acolor:rgb(0, 0, 255)\">bc",
    [true,true,true,true],
    {}],
["a[]c",
    [["styleWithCSS","false"],["foreColor","rgb(0, 0, 255)"],["styleWithCSS","true"],["insertText","b"]],
    "acolor:rgb(0, 0, 255)\">bc",
    [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)\">bc",
    [true,true,true,true],
    {}],
["a[]c",
    [["styleWithCSS","false"],["foreColor","transparent"],["styleWithCSS","true"],["insertText","b"]],
    "acolor:rgba(0, 0, 0, 0)\">bc",
    [true,true,true,true],
    {}],
]

¤ Dauer der Verarbeitung: 0.17 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.