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 42 kB image not shown  

Quelle  underline.js   Sprache: JAVA

 
// For documentation of the format, see README in this directory.
var browserTests = [
["foo[]bar",
    [["underline",""]],
    "foo[]bar",
    [true],
    {"underline":[false,false,"",false,true,""]}],
["

[foo

bar]

"
,
    [["stylewithcss","true"],["underline",""]],
    "

text-decoration:underline\">[foo

text-decoration:underline\">bar]

"
,
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["

[foo

bar]

"
,
    [["stylewithcss","false"],["underline",""]],
    "

[foo

bar]

"
,
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["[foo bar]",
    [["stylewithcss","true"],["underline",""]],
    "text-decoration:underline\">[foo bar]",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["[foo bar]",
    [["stylewithcss","false"],["underline",""]],
    "[foo bar]",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["

[foo

bar

baz]

"
,
    [["stylewithcss","true"],["underline",""]],
    "

text-decoration:underline\">[foo

text-decoration:underline\">bar

text-decoration:underline\">baz

"
,
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["

[foo

bar

baz]

"
,
    [["stylewithcss","false"],["underline",""]],
    "

[foo

bar

baz]

"
,
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["

[foo


bar]",
    [["stylewithcss","true"],["underline",""]],
    "

text-decoration:underline\">[foo

text-decoration:underline\">

text-decoration:underline\">bar]

"
,
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["

[foo


bar]",
    [["stylewithcss","false"],["underline",""]],
    "

[foo


bar]

"
,
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[]bar",
    [["underline",""]],
    "foo[]bar",
    [true],
    {"underline":[false,false,"",false,true,""]}],
["foo[]bar",
    [["underline",""]],
    "foo[]bar",
    [true],
    {"underline":[false,false,"",false,true,""]}],
["foo{}bar",
    [["underline",""]],
    "foo{}bar",
    [true],
    {"underline":[false,false,"",false,true,""]}],
["foo[]bar",
    [["underline",""]],
    "foo[]bar",
    [true],
    {"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[barbaz]qozquz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[bartext-decoration:underline\">baz]qozquz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[barbaz]qozquz",
    [["stylewithcss","false"],["underline",""]],
    "foo[barbaz]qozquz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[barbaz]qozquz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[bartext-decoration:underline\">baz]qozquz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[barbaz]qozquz",
    [["stylewithcss","false"],["underline",""]],
    "foo[barbaz]qozquz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["{

foo

}"
,
    [["stylewithcss","true"],["underline",""]],
    "{

text-decoration:underline\">foo

}"
,
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["{

foo

}"
,
    [["stylewithcss","false"],["underline",""]],
    "{

foo

}"
,
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["
foob[a]rbaz
"
,
    [["stylewithcss","true"],["underline",""]],
    "
foobtext-decoration:underline\">[a]rbaz
"
,
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["
foob[a]rbaz
"
,
    [["stylewithcss","false"],["underline",""]],
    "
foob[a]rbaz
"
,
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["
foobarbaz
"
,
    [["stylewithcss","true"],["underline",""]],
    "{}
footext-decoration:underline\">barbaz
"
,
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["
foobarbaz
"
,
    [["stylewithcss","false"],["underline",""]],
    "{}
foobarbaz
"
,
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["
foobarbaz
"
,
    [["stylewithcss","true"],["underline",""]],
    "{}
text-decoration:underline\">footext-decoration:underline\">barbaz
"
,
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["
foobarbaz
"
,
    [["stylewithcss","false"],["underline",""]],
    "{}
foobarbaz
"
,
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["
foobarbaz
"
,
    [["stylewithcss","true"],["underline",""]],
    "{}
text-decoration:underline\">footext-decoration:underline\">bartext-decoration:underline\">baz
"
,
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["
foobarbaz
"
,
    [["stylewithcss","false"],["underline",""]],
    "{}
foobarbaz
"
,
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["
foobarbaz
"
,
    [["stylewithcss","true"],["underline",""]],
    "{}
text-decoration:underline\">footext-decoration:underline\">bartext-decoration:underline\">baz
"
,
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["
foobarbaz
"
,
    [["stylewithcss","false"],["underline",""]],
    "{}
foobarbaz
"
,
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["{
foobarbaz
}"
,
    [["stylewithcss","true"],["underline",""]],
    "{
text-decoration:underline\">footext-decoration:underline\">bartext-decoration:underline\">baz
}"
,
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["{
foobarbaz
}"
,
    [["stylewithcss","false"],["underline",""]],
    "{
foobarbaz
}"
,
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["footext-decoration: underline\">[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],
["footext-decoration: underline\">[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],
["foo[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "text-decoration:underline\">foo[bar]text-decoration:underline\">baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],
["foo[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],
["foo[bcolor:blue\">ar]baz",
    [["stylewithcss","true"],["underline",""]],
    "text-decoration:underline\">foo[bcolor:rgb(0, 0, 255)\">ar]text-decoration:underline\">batext-decoration:underline\">z",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],
["foo[bcolor:blue\">ar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bcolor:rgb(0, 0, 255)\">ar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],
["foo[bcolor:blue\" id=foo>ar]baz",
    [["stylewithcss","true"],["underline",""]],
    "text-decoration:underline\">foo[bcolor:rgb(0, 0, 255)\" id=\"foo\">ar]text-decoration:underline\">batext-decoration:underline\">z",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],
["foo[bcolor:blue\" id=foo>ar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bcolor:rgb(0, 0, 255)\" id=\"foo\">ar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],
["foo[bfont-size:3em\">ar]baz",
    [["stylewithcss","true"],["underline",""]],
    "text-decoration:underline\">foo[bfont-size:3em\">ar]text-decoration:underline\">batext-decoration:underline\">z",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],
["foo[bfont-size:3em\">ar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bfont-size:3em\">ar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],
["foo[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "text-decoration:underline\">foo[bar]text-decoration:underline\">batext-decoration:underline\">z",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],
["foo[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],
["

text-decoration: underline\">foo[bar]baz

"
,
    [["stylewithcss","true"],["underline",""]],
    "

text-decoration:underline\">foo[bar]text-decoration:underline\">baz

"
,
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],
["

text-decoration: underline\">foo[bar]baz

"
,
    [["stylewithcss","false"],["underline",""]],
    "

foo[bar]baz

"
,
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],
// <s> should be replaced with new <span> because it just represents line-though
// style, and should set its text-decoration to underline (requested style) and
// line-through (default style of <s>).
["foo[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline line-through\">[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
// Should update text-decoration declaration in the <span> which is a container
// of the range.
["footext-decoration: line-through\">[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline line-through\">[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["footext-decoration: line-through\">[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "footext-decoration:line-through\">[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[bcolor:blue\">ar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[bcolor:rgb(0, 0, 255)\">text-decoration:underline\">ar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bcolor:blue\">ar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bcolor:rgb(0, 0, 255)\">ar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[bcolor:blue\" id=foo>ar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[bcolor:rgb(0, 0, 255)\" id=\"foo\">text-decoration:underline\">ar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bcolor:blue\" id=foo>ar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bcolor:rgb(0, 0, 255)\" id=\"foo\">ar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[bfont-size:3em\">ar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[bfont-size:3em\">text-decoration:underline\">ar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bfont-size:3em\">ar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bfont-size:3em\">ar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[btext-decoration:underline\">ar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["

text-decoration: line-through\">foo[bar]baz

"
,
    [["stylewithcss","true"],["underline",""]],
    "

text-decoration:line-through\">footext-decoration:underline\">[bar]baz

"
,
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["

text-decoration: line-through\">foo[bar]baz

"
,
    [["stylewithcss","false"],["underline",""]],
    "

text-decoration:line-through\">foo[bar]baz

"
,
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
// Should replace <strike> with new <span> because <strike> is just representing
// line-through style, and set its text-decoration to underline (requested
// style) and line-though (default style of <strike>).
["foo[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline line-through\">[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[bcolor:blue\">ar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[bcolor:rgb(0, 0, 255)\">text-decoration:underline\">ar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bcolor:blue\">ar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bcolor:rgb(0, 0, 255)\">ar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[bcolor:blue\" id=foo>ar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[bcolor:rgb(0, 0, 255)\" id=\"foo\">text-decoration:underline\">ar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bcolor:blue\" id=foo>ar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bcolor:rgb(0, 0, 255)\" id=\"foo\">ar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[bfont-size:3em\">ar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[bfont-size:3em\">text-decoration:underline\">ar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bfont-size:3em\">ar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bfont-size:3em\">ar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[btext-decoration:underline\">ar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["underline",""]],
    "foo[bar]baz",
    [true],
    {"underline":[false,true,"",false,true,""]}],
["foo[bar]baz",
    [["underline",""]],
    "foo[bar]baz",
    [true],
    {"underline":[false,true,"",false,true,""]}],
["foo[bcolor:blue\">ar]baz",
    [["underline",""]],
    "foo[bcolor:rgb(0, 0, 255)\">ar]baz",
    [true],
    {"underline":[false,true,"",false,true,""]}],
["foo[bcolor:blue\" id=foo>ar]baz",
    [["underline",""]],
    "foo[bcolor:rgb(0, 0, 255)\" id=\"foo\">ar]baz",
    [true],
    {"underline":[false,true,"",false,true,""]}],
["foo[bfont-size:3em\">ar]baz",
    [["underline",""]],
    "foo[bfont-size:3em\">ar]baz",
    [true],
    {"underline":[false,true,"",false,true,""]}],
["foo[bar]baz",
    [["underline",""]],
    "foo[bar]baz",
    [true],
    {"underline":[false,true,"",false,true,""]}],
// Should set text-decoration of <del> because it has line-through style by
// default and it is not only representing it, thus, replacing it with <span>
// changes the meaning.
["foo[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline line-through\">[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[bcolor:blue\">ar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[bcolor:rgb(0, 0, 255)\">text-decoration:underline\">ar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bcolor:blue\">ar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bcolor:rgb(0, 0, 255)\">ar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[bcolor:blue\" id=foo>ar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[bcolor:rgb(0, 0, 255)\" id=\"foo\">text-decoration:underline\">ar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bcolor:blue\" id=foo>ar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bcolor:rgb(0, 0, 255)\" id=\"foo\">ar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[bfont-size:3em\">ar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[bfont-size:3em\">text-decoration:underline\">ar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bfont-size:3em\">ar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bfont-size:3em\">ar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">[btext-decoration:underline\">ar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["foo[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["footext-decoration: underline line-through\">[bar]baz",
    [["underline",""]],
    "footext-decoration:line-through\">[bar]baz",
    [true],
    {"underline":[false,true,"",false,false,""]}],
["footext-decoration: underline line-through\">b[a]rbaz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:line-through\">text-decoration:underline\">b[a]text-decoration:underline\">rbaz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],
["footext-decoration: underline line-through\">b[a]rbaz",
    [["stylewithcss","false"],["underline",""]],
    "footext-decoration:line-through\">b[a]rbaz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],
["footext-decoration: underline\">[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],
["footext-decoration: underline\">[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],
["footext-decoration: underline\">b[a]rbaz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">b[a]text-decoration:underline\">rbaz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],
["footext-decoration: underline\">b[a]rbaz",
    [["stylewithcss","false"],["underline",""]],
    "foob[a]rbaz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],
["footext-decoration: line-through\">[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">text-decoration:line-through\">[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["footext-decoration: line-through\">[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "footext-decoration:line-through\">[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["footext-decoration: line-through\">b[a]rbaz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:line-through\">btext-decoration:underline\">[a]rbaz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["footext-decoration: line-through\">b[a]rbaz",
    [["stylewithcss","false"],["underline",""]],
    "footext-decoration:line-through\">b[a]rbaz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
// Should replace <s> with new <span> and set its `text-decoration` to underline
// (for applying the requested style) and overline (which was specified to the
// <s>).  Note that line-though was removed by the text-decoration setting.
// Therefore, it should not appear.
["footext-decoration: overline\">[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline overline\">[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["footext-decoration: overline\">[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "footext-decoration:overline\">[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["footext-decoration: overline\">b[a]rbaz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:overline\">btext-decoration:underline\">[a]rbaz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["footext-decoration: overline\">b[a]rbaz",
    [["stylewithcss","false"],["underline",""]],
    "footext-decoration:overline\">b[a]rbaz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["footext-decoration: overline\">[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">text-decoration:overline\">[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["footext-decoration: overline\">[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "footext-decoration:overline\">[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["footext-decoration: overline\">b[a]rbaz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:overline\">btext-decoration:underline\">[a]rbaz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["footext-decoration: overline\">b[a]rbaz",
    [["stylewithcss","false"],["underline",""]],
    "footext-decoration:overline\">b[a]rbaz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["

text-decoration: overline\">foo[bar]baz

"
,
    [["stylewithcss","true"],["underline",""]],
    "

text-decoration:overline\">footext-decoration:underline\">[bar]baz

"
,
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["

text-decoration: overline\">foo[bar]baz

"
,
    [["stylewithcss","false"],["underline",""]],
    "

text-decoration:overline\">foo[bar]baz

"
,
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foounderline\">[bar]baz",
    [["underline",""]],
    "foounderline\">[bar]baz",
    [true],
    {"underline":[false,true,"",false,true,""]}],
["foounderline\">b[a]rbaz",
    [["underline",""]],
    "foounderline\">b[a]rbaz",
    [true],
    {"underline":[false,true,"",false,true,""]}],
["fooline-through\">[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "fooline-through\" style=\"text-decoration:underline\">[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["fooline-through\">[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "fooline-through\">[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["fooline-through\">b[a]rbaz",
    [["stylewithcss","true"],["underline",""]],
    "fooline-through\">btext-decoration:underline\">[a]rbaz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],
["fooline-through\">b[a]rbaz",
    [["stylewithcss","false"],["underline",""]],
    "fooline-through\">b[a]rbaz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],
["foounderline-and-line-through\">[bar]baz",
    [["underline",""]],
    "foounderline-and-line-through\">[bar]baz",
    [true],
    {"underline":[false,true,"",false,true,""]}],
["foounderline-and-line-through\">b[a]rbaz",
    [["underline",""]],
    "foounderline-and-line-through\">b[a]rbaz",
    [true],
    {"underline":[false,true,"",false,true,""]}],
["fo[ob]arbaz",
    [["underline",""]],
    "fo[ob]arbaz",
    [true],
    {"underline":[true,false,"",false,true,""]}],
["fooba[rb]az",
    [["underline",""]],
    "fooba[rb]az",
    [true],
    {"underline":[true,false,"",false,true,""]}],
["fo[obarb]az",
    [["stylewithcss","true"],["underline",""]],
    "fotext-decoration:underline\">[obarb]az",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[true,false,"",false,true,""]}],
["fo[obarb]az",
    [["stylewithcss","false"],["underline",""]],
    "fo[obarb]az",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[true,false,"",false,true,""]}],
["foo[b]arbaz",
    [["stylewithcss","true"],["underline",""]],
    "foo[b]text-decoration:underline\">arbaz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],
["foo[b]arbaz",
    [["stylewithcss","false"],["underline",""]],
    "foo[b]arbaz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],
["fooba[r]baz",
    [["stylewithcss","true"],["underline",""]],
    "footext-decoration:underline\">ba[r]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],
["fooba[r]baz",
    [["stylewithcss","false"],["underline",""]],
    "fooba[r]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],
["foo[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],
["foo[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],
["foo[bar]baz",
    [["stylewithcss","true"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],
["foo[bar]baz",
    [["stylewithcss","false"],["underline",""]],
    "foo[bar]baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],
["foo{bar}baz",
    [["stylewithcss","true"],["underline",""]],
    "foo{bar}baz",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],
["foo{bar}baz",
    [["stylewithcss","false"],["underline",""]],
    "foo{bar}baz",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],
["fo[ob]arbaz",
    [["underline",""]],
    "fotext-decoration:underline\">[ob]arbaz",
    [true],
    {"underline":[true,false,"",false,true,""]}],
["fo[ob]ar",
    [["stylewithcss","true"],["underline",""]],
    "fo[ob]text-decoration:underline\">ar",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",true,false,""]}],
["fo[ob]ar",
    [["stylewithcss","false"],["underline",""]],
    "fo[ob]ar",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",true,false,""]}],
["fo[ob]ar",
    [["stylewithcss","true"],["underline",""]],
    "text-decoration:underline\">fo[ob]ar",
    [true,true],
    {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",true,false,""]}],
["fo[ob]ar",
    [["stylewithcss","false"],["underline",""]],
    "fo[ob]ar",
    [true,true],
    {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",true,false,""]}],

// Tests to remove only underline from existing text-decoration
["abctext-decoration:line-through overline underline\">[def]ghi",
    [["stylewithcss","true"],["underline",""]],
    ["abctext-decoration:overline line-through\">[def]ghi",
     "abctext-decoration-line:overline line-through\">[def]ghi"],
    [true,true],
    {}],

// blink, text-decoration-color and text-decoration-style values should be
// dropped.  This rule is odd because executing "underline" command causes
// the data loss, but for now, the compatibility between browsers is more
// important.  Once you want/need to change the behavior of a browser, you
// should file a spec issue first.
// And these tests allows the difference between text-decoration vs.
// text-decoration-line because these tests want to check the data loss.
["abctext-decoration:blink line-through overline\">[def]ghi",
    [["stylewithcss","true"],["underline",""]],
    ["abctext-decoration:underline overline line-through\">[def]ghi",
     "abctext-decoration-line:underline overline line-through\">[def]ghi"],
    [true,true],
    {}],
["abctext-decoration:line-through blue dotted\">[def]ghi",
    [["stylewithcss","true"],["underline",""]],
    ["abctext-decoration:underline line-through\">[def]ghi",
     "abctext-decoration-line:underline line-through\">[def]ghi"],
    [true,true],
    {}],
["abctext-decoration:blink line-through underline overline\">[def]ghi",
    [["stylewithcss","true"],["underline",""]],
    ["abctext-decoration:overline line-through\">[def]ghi",
     "abctext-decoration-line:overline line-through\">[def]ghi"],
    [true,true],
    {}],
["abctext-decoration:underline line-through blue dotted\">[def]ghi",
    [["stylewithcss","true"],["underline",""]],
    ["abctext-decoration:line-through\">[def]ghi",
     "abctext-decoration-line:line-through\">[def]ghi"],
    [true,true],
    {}],
]

Messung V0.5
C=98 H=100 G=98

¤ Dauer der Verarbeitung: 0.13 Sekunden  ¤

*© 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.