diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /layout/reftests/counters | |
parent | Initial commit. (diff) | |
download | thunderbird-upstream.tar.xz thunderbird-upstream.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
163 files changed, 5287 insertions, 0 deletions
diff --git a/layout/reftests/counters/counter-cjk-decimal-ref.html b/layout/reftests/counters/counter-cjk-decimal-ref.html new file mode 100644 index 0000000000..20848cc152 --- /dev/null +++ b/layout/reftests/counters/counter-cjk-decimal-ref.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<div>〇</div> +<div>一</div> +<div>二</div> +<div>三</div> +<div>四</div> +<div>五</div> +<div>六</div> +<div>七</div> +<div>八</div> +<div>九</div> + +<div>一〇</div> +<div>一一</div> +<div>九九</div> +<div>一〇〇</div> +<div>六〇〇一</div> +<div>一二三四五</div> + +<div>-1</div> diff --git a/layout/reftests/counters/counter-cjk-decimal.html b/layout/reftests/counters/counter-cjk-decimal.html new file mode 100644 index 0000000000..e4bcce920c --- /dev/null +++ b/layout/reftests/counters/counter-cjk-decimal.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<style> + div::after { + content: counter(n, cjk-decimal); + } +</style> +<div style="counter-reset: n 0;"></div> +<div style="counter-reset: n 1;"></div> +<div style="counter-reset: n 2;"></div> +<div style="counter-reset: n 3;"></div> +<div style="counter-reset: n 4;"></div> +<div style="counter-reset: n 5;"></div> +<div style="counter-reset: n 6;"></div> +<div style="counter-reset: n 7;"></div> +<div style="counter-reset: n 8;"></div> +<div style="counter-reset: n 9;"></div> + +<div style="counter-reset: n 10;"></div> +<div style="counter-reset: n 11;"></div> +<div style="counter-reset: n 99;"></div> +<div style="counter-reset: n 100;"></div> +<div style="counter-reset: n 6001;"></div> +<div style="counter-reset: n 12345;"></div> + +<div style="counter-reset: n -1;"></div> diff --git a/layout/reftests/counters/counter-ethiopic-numeric-ref.html b/layout/reftests/counters/counter-ethiopic-numeric-ref.html new file mode 100644 index 0000000000..02cac0b4db --- /dev/null +++ b/layout/reftests/counters/counter-ethiopic-numeric-ref.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> +<style type="text/css"> + div { + float: left; + padding: .5em; + } +</style> +<div>፩</div> +<div>፪</div> +<div>፫</div> +<div>፬</div> +<div>፭</div> +<div>፮</div> +<div>፯</div> +<div>፰</div> +<div>፱</div> + +<div>፲</div> +<div>፲፩</div> +<div>፲፪</div> +<div>፵፫</div> +<div>፸፯</div> +<div>፹</div> +<div>፺፱</div> +<div>፻</div> +<div>፻፩</div> +<div>፪፻፳፪</div> +<div>፭፻፵</div> +<div>፱፻፺፱</div> +<div>፲፻</div> +<div>፲፻፭</div> +<div>፲፻፷</div> +<div>፲፻፷፭</div> +<div>፲፰፻</div> +<div>፲፰፻፷</div> +<div>፲፰፻፷፭</div> +<div>፶፰፻፷፭</div> +<div>፸፻፭</div> +<div>፸፰፻</div> +<div>፸፰፻፷፬</div> +<div>፺፱፻፺፱</div> +<div>፼</div> +<div>፻፼፩</div> +<div>፸፰፻፩፼፺፪</div> + +<div>0</div> +<div>-1</div> diff --git a/layout/reftests/counters/counter-ethiopic-numeric.html b/layout/reftests/counters/counter-ethiopic-numeric.html new file mode 100644 index 0000000000..aeca84f306 --- /dev/null +++ b/layout/reftests/counters/counter-ethiopic-numeric.html @@ -0,0 +1,50 @@ +<!DOCTYPE html> +<style type="text/css"> + div { + float: left; + padding: .5em; + } + div::after { + content: counter(n, ethiopic-numeric); + } +</style> +<div style="counter-reset: n 1;"></div> +<div style="counter-reset: n 2;"></div> +<div style="counter-reset: n 3;"></div> +<div style="counter-reset: n 4;"></div> +<div style="counter-reset: n 5;"></div> +<div style="counter-reset: n 6;"></div> +<div style="counter-reset: n 7;"></div> +<div style="counter-reset: n 8;"></div> +<div style="counter-reset: n 9;"></div> + +<div style="counter-reset: n 10;"></div> +<div style="counter-reset: n 11;"></div> +<div style="counter-reset: n 12;"></div> +<div style="counter-reset: n 43;"></div> +<div style="counter-reset: n 77;"></div> +<div style="counter-reset: n 80;"></div> +<div style="counter-reset: n 99;"></div> +<div style="counter-reset: n 100;"></div> +<div style="counter-reset: n 101;"></div> +<div style="counter-reset: n 222;"></div> +<div style="counter-reset: n 540;"></div> +<div style="counter-reset: n 999;"></div> +<div style="counter-reset: n 1000;"></div> +<div style="counter-reset: n 1005;"></div> +<div style="counter-reset: n 1060;"></div> +<div style="counter-reset: n 1065;"></div> +<div style="counter-reset: n 1800;"></div> +<div style="counter-reset: n 1860;"></div> +<div style="counter-reset: n 1865;"></div> +<div style="counter-reset: n 5865;"></div> +<div style="counter-reset: n 7005;"></div> +<div style="counter-reset: n 7800;"></div> +<div style="counter-reset: n 7864;"></div> +<div style="counter-reset: n 9999;"></div> +<div style="counter-reset: n 10000;"></div> +<div style="counter-reset: n 1000001;"></div> +<div style="counter-reset: n 78010092;"></div> + +<div style="counter-reset: n 0;"></div> +<div style="counter-reset: n -1;"></div> diff --git a/layout/reftests/counters/counter-hebrew-reference.html b/layout/reftests/counters/counter-hebrew-reference.html new file mode 100644 index 0000000000..f2c1326056 --- /dev/null +++ b/layout/reftests/counters/counter-hebrew-reference.html @@ -0,0 +1,65 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter() error cases</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + + </head> + <body> + + <div> + <span>א</span> + <span>ב</span> + <span>ג</span> + <span>ד</span> + <span>ה</span> + <span>ו</span> + <span>ז</span> + <span>ח</span> + <span>ט</span> + <span>י</span> + <span>יא</span> + <span>יב</span> + <span>יג</span> + <span>יד</span> + <span>טו</span> + <span>טז</span> + <span>יז</span> + <span>כ</span> + <span>ל</span> + <span>מ</span> + <span>נ</span> + <span>ס</span> + <span>ע</span> + <span>פ</span> + <span>צ</span> + <span>ק</span> + <span>ר</span> + <span>ש</span> + <span>ת</span> + <span>תק</span> + <span>תר</span> + <span>תש</span> + <span>תת</span> + <span>תתק</span> + <span>א׳</span> + <span>ב׳</span> + <span>ג׳</span> + <span>ד׳</span> + <span>ה׳</span> + <span>ו׳</span> + <span>ז׳</span> + <span>ח׳</span> + <span>ט׳</span> + <span>ט׳תתקצט</span> + <span>תתקצט׳תתקצט</span> + <style> + #c18:before { counter-set: c 18; content: counter(c, hebrew); } + </style> + <span id="c18"></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/counter-hebrew-test.html b/layout/reftests/counters/counter-hebrew-test.html new file mode 100644 index 0000000000..8c636342d1 --- /dev/null +++ b/layout/reftests/counters/counter-hebrew-test.html @@ -0,0 +1,68 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter() error cases</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + #test { counter-reset: c; } + #test span { counter-increment: c; } + #test span:before { content: counter(c, hebrew); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span style="counter-reset: c 19"></span> + <span style="counter-reset: c 29"></span> + <span style="counter-reset: c 39"></span> + <span style="counter-reset: c 49"></span> + <span style="counter-reset: c 59"></span> + <span style="counter-reset: c 69"></span> + <span style="counter-reset: c 79"></span> + <span style="counter-reset: c 89"></span> + <span style="counter-reset: c 99"></span> + <span style="counter-reset: c 199"></span> + <span style="counter-reset: c 299"></span> + <span style="counter-reset: c 399"></span> + <span style="counter-reset: c 499"></span> + <span style="counter-reset: c 599"></span> + <span style="counter-reset: c 699"></span> + <span style="counter-reset: c 799"></span> + <span style="counter-reset: c 899"></span> + <span style="counter-reset: c 999"></span> + <span style="counter-reset: c 1999"></span> + <span style="counter-reset: c 2999"></span> + <span style="counter-reset: c 3999"></span> + <span style="counter-reset: c 4999"></span> + <span style="counter-reset: c 5999"></span> + <span style="counter-reset: c 6999"></span> + <span style="counter-reset: c 7999"></span> + <span style="counter-reset: c 8999"></span> + <span style="counter-reset: c 9998"></span> + <span style="counter-reset: c 999998"></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/counter-japanese-formal-ref.html b/layout/reftests/counters/counter-japanese-formal-ref.html new file mode 100644 index 0000000000..674823030f --- /dev/null +++ b/layout/reftests/counters/counter-japanese-formal-ref.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<div>零</div> +<div>壱</div> +<div>弐</div> +<div>参</div> +<div>四</div> +<div>伍</div> +<div>六</div> +<div>七</div> +<div>八</div> +<div>九</div> + +<div>壱拾</div> +<div>壱百</div> +<div>壱阡</div> +<div>壱萬</div> +<div>壱拾萬</div> +<div>壱百萬</div> +<div>壱阡萬</div> +<div>壱億</div> +<div>壱拾億</div> + +<div>壱拾壱</div> +<div>九拾九</div> +<div>壱百壱</div> +<div>弐百</div> +<div>六阡壱</div> +<div>壱萬壱</div> +<div>壱萬壱拾壱</div> +<div>壱萬壱百壱</div> +<div>壱萬壱阡壱百壱拾壱</div> +<div>壱阡壱百萬</div> +<div>壱億壱萬壱</div> +<div>壱億壱拾壱萬壱</div> + +<div>マイナス壱</div> diff --git a/layout/reftests/counters/counter-japanese-formal.html b/layout/reftests/counters/counter-japanese-formal.html new file mode 100644 index 0000000000..f580db7806 --- /dev/null +++ b/layout/reftests/counters/counter-japanese-formal.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<style> + div::after { + content: counter(n, japanese-formal); + } +</style> +<div style="counter-reset: n 0;"></div> +<div style="counter-reset: n 1;"></div> +<div style="counter-reset: n 2;"></div> +<div style="counter-reset: n 3;"></div> +<div style="counter-reset: n 4;"></div> +<div style="counter-reset: n 5;"></div> +<div style="counter-reset: n 6;"></div> +<div style="counter-reset: n 7;"></div> +<div style="counter-reset: n 8;"></div> +<div style="counter-reset: n 9;"></div> + +<div style="counter-reset: n 10;"></div> +<div style="counter-reset: n 100;"></div> +<div style="counter-reset: n 1000;"></div> +<div style="counter-reset: n 10000;"></div> +<div style="counter-reset: n 100000;"></div> +<div style="counter-reset: n 1000000;"></div> +<div style="counter-reset: n 10000000;"></div> +<div style="counter-reset: n 100000000;"></div> +<div style="counter-reset: n 1000000000;"></div> + +<div style="counter-reset: n 11;"></div> +<div style="counter-reset: n 99;"></div> +<div style="counter-reset: n 101;"></div> +<div style="counter-reset: n 200;"></div> +<div style="counter-reset: n 6001;"></div> +<div style="counter-reset: n 10001;"></div> +<div style="counter-reset: n 10011;"></div> +<div style="counter-reset: n 10101;"></div> +<div style="counter-reset: n 11111;"></div> +<div style="counter-reset: n 11000000;"></div> +<div style="counter-reset: n 100010001;"></div> +<div style="counter-reset: n 100110001;"></div> + +<div style="counter-reset: n -1;"></div> diff --git a/layout/reftests/counters/counter-japanese-informal-ref.html b/layout/reftests/counters/counter-japanese-informal-ref.html new file mode 100644 index 0000000000..a08a63631b --- /dev/null +++ b/layout/reftests/counters/counter-japanese-informal-ref.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<div>〇</div> +<div>一</div> +<div>二</div> +<div>三</div> +<div>四</div> +<div>五</div> +<div>六</div> +<div>七</div> +<div>八</div> +<div>九</div> + +<div>十</div> +<div>百</div> +<div>千</div> +<div>一万</div> +<div>十万</div> +<div>百万</div> +<div>一千万</div> +<div>一億</div> +<div>十億</div> + +<div>十一</div> +<div>九十九</div> +<div>百一</div> +<div>二百</div> +<div>六千一</div> +<div>一万一</div> +<div>一万十一</div> +<div>一万百一</div> +<div>一万一千百十一</div> +<div>一千百万</div> +<div>一億一万一</div> +<div>一億十一万一</div> + +<div>マイナス一</div> diff --git a/layout/reftests/counters/counter-japanese-informal.html b/layout/reftests/counters/counter-japanese-informal.html new file mode 100644 index 0000000000..e421fb5f62 --- /dev/null +++ b/layout/reftests/counters/counter-japanese-informal.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<style> + div::after { + content: counter(n, japanese-informal); + } +</style> +<div style="counter-reset: n 0;"></div> +<div style="counter-reset: n 1;"></div> +<div style="counter-reset: n 2;"></div> +<div style="counter-reset: n 3;"></div> +<div style="counter-reset: n 4;"></div> +<div style="counter-reset: n 5;"></div> +<div style="counter-reset: n 6;"></div> +<div style="counter-reset: n 7;"></div> +<div style="counter-reset: n 8;"></div> +<div style="counter-reset: n 9;"></div> + +<div style="counter-reset: n 10;"></div> +<div style="counter-reset: n 100;"></div> +<div style="counter-reset: n 1000;"></div> +<div style="counter-reset: n 10000;"></div> +<div style="counter-reset: n 100000;"></div> +<div style="counter-reset: n 1000000;"></div> +<div style="counter-reset: n 10000000;"></div> +<div style="counter-reset: n 100000000;"></div> +<div style="counter-reset: n 1000000000;"></div> + +<div style="counter-reset: n 11;"></div> +<div style="counter-reset: n 99;"></div> +<div style="counter-reset: n 101;"></div> +<div style="counter-reset: n 200;"></div> +<div style="counter-reset: n 6001;"></div> +<div style="counter-reset: n 10001;"></div> +<div style="counter-reset: n 10011;"></div> +<div style="counter-reset: n 10101;"></div> +<div style="counter-reset: n 11111;"></div> +<div style="counter-reset: n 11000000;"></div> +<div style="counter-reset: n 100010001;"></div> +<div style="counter-reset: n 100110001;"></div> + +<div style="counter-reset: n -1;"></div> diff --git a/layout/reftests/counters/counter-korean-hangul-formal-ref.html b/layout/reftests/counters/counter-korean-hangul-formal-ref.html new file mode 100644 index 0000000000..641fa5de1e --- /dev/null +++ b/layout/reftests/counters/counter-korean-hangul-formal-ref.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<div>영,</div> +<div>일,</div> +<div>이,</div> +<div>삼,</div> +<div>사,</div> +<div>오,</div> +<div>육,</div> +<div>칠,</div> +<div>팔,</div> +<div>구,</div> + +<div>일십,</div> +<div>일백,</div> +<div>일천,</div> +<div>일만,</div> +<div>일십만,</div> +<div>일백만,</div> +<div>일천만,</div> +<div>일억,</div> +<div>일십억,</div> + +<div>일십일,</div> +<div>구십구,</div> +<div>일백일,</div> +<div>이백,</div> +<div>육천일,</div> +<div>일만 일,</div> +<div>일만 일십일,</div> +<div>일만 일백일,</div> +<div>일만 일천일백일십일,</div> +<div>일천일백만,</div> +<div>일억 일만 일,</div> +<div>일억 일십일만 일,</div> + +<div>마이너스 일,</div> diff --git a/layout/reftests/counters/counter-korean-hangul-formal.html b/layout/reftests/counters/counter-korean-hangul-formal.html new file mode 100644 index 0000000000..57a110cee8 --- /dev/null +++ b/layout/reftests/counters/counter-korean-hangul-formal.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<style> + div::before { + content: counter(n, korean-hangul-formal); + } +</style> +<div style="counter-reset: n 0;">,</div> +<div style="counter-reset: n 1;">,</div> +<div style="counter-reset: n 2;">,</div> +<div style="counter-reset: n 3;">,</div> +<div style="counter-reset: n 4;">,</div> +<div style="counter-reset: n 5;">,</div> +<div style="counter-reset: n 6;">,</div> +<div style="counter-reset: n 7;">,</div> +<div style="counter-reset: n 8;">,</div> +<div style="counter-reset: n 9;">,</div> + +<div style="counter-reset: n 10;">,</div> +<div style="counter-reset: n 100;">,</div> +<div style="counter-reset: n 1000;">,</div> +<div style="counter-reset: n 10000;">,</div> +<div style="counter-reset: n 100000;">,</div> +<div style="counter-reset: n 1000000;">,</div> +<div style="counter-reset: n 10000000;">,</div> +<div style="counter-reset: n 100000000;">,</div> +<div style="counter-reset: n 1000000000;">,</div> + +<div style="counter-reset: n 11;">,</div> +<div style="counter-reset: n 99;">,</div> +<div style="counter-reset: n 101;">,</div> +<div style="counter-reset: n 200;">,</div> +<div style="counter-reset: n 6001;">,</div> +<div style="counter-reset: n 10001;">,</div> +<div style="counter-reset: n 10011;">,</div> +<div style="counter-reset: n 10101;">,</div> +<div style="counter-reset: n 11111;">,</div> +<div style="counter-reset: n 11000000;">,</div> +<div style="counter-reset: n 100010001;">,</div> +<div style="counter-reset: n 100110001;">,</div> + +<div style="counter-reset: n -1;">,</div> diff --git a/layout/reftests/counters/counter-korean-hanja-formal-ref.html b/layout/reftests/counters/counter-korean-hanja-formal-ref.html new file mode 100644 index 0000000000..da1f8a4813 --- /dev/null +++ b/layout/reftests/counters/counter-korean-hanja-formal-ref.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<div>零,</div> +<div>壹,</div> +<div>貳,</div> +<div>參,</div> +<div>四,</div> +<div>五,</div> +<div>六,</div> +<div>七,</div> +<div>八,</div> +<div>九,</div> + +<div>壹拾,</div> +<div>壹百,</div> +<div>壹仟,</div> +<div>壹萬,</div> +<div>壹拾萬,</div> +<div>壹百萬,</div> +<div>壹仟萬,</div> +<div>壹億,</div> +<div>壹拾億,</div> + +<div>壹拾壹,</div> +<div>九拾九,</div> +<div>壹百壹,</div> +<div>貳百,</div> +<div>六仟壹,</div> +<div>壹萬 壹,</div> +<div>壹萬 壹拾壹,</div> +<div>壹萬 壹百壹,</div> +<div>壹萬 壹仟壹百壹拾壹,</div> +<div>壹仟壹百萬,</div> +<div>壹億 壹萬 壹,</div> +<div>壹億 壹拾壹萬 壹,</div> + +<div>마이너스 壹,</div> diff --git a/layout/reftests/counters/counter-korean-hanja-formal.html b/layout/reftests/counters/counter-korean-hanja-formal.html new file mode 100644 index 0000000000..fa12892295 --- /dev/null +++ b/layout/reftests/counters/counter-korean-hanja-formal.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<style> + div::before { + content: counter(n, korean-hanja-formal); + } +</style> +<div style="counter-reset: n 0;">,</div> +<div style="counter-reset: n 1;">,</div> +<div style="counter-reset: n 2;">,</div> +<div style="counter-reset: n 3;">,</div> +<div style="counter-reset: n 4;">,</div> +<div style="counter-reset: n 5;">,</div> +<div style="counter-reset: n 6;">,</div> +<div style="counter-reset: n 7;">,</div> +<div style="counter-reset: n 8;">,</div> +<div style="counter-reset: n 9;">,</div> + +<div style="counter-reset: n 10;">,</div> +<div style="counter-reset: n 100;">,</div> +<div style="counter-reset: n 1000;">,</div> +<div style="counter-reset: n 10000;">,</div> +<div style="counter-reset: n 100000;">,</div> +<div style="counter-reset: n 1000000;">,</div> +<div style="counter-reset: n 10000000;">,</div> +<div style="counter-reset: n 100000000;">,</div> +<div style="counter-reset: n 1000000000;">,</div> + +<div style="counter-reset: n 11;">,</div> +<div style="counter-reset: n 99;">,</div> +<div style="counter-reset: n 101;">,</div> +<div style="counter-reset: n 200;">,</div> +<div style="counter-reset: n 6001;">,</div> +<div style="counter-reset: n 10001;">,</div> +<div style="counter-reset: n 10011;">,</div> +<div style="counter-reset: n 10101;">,</div> +<div style="counter-reset: n 11111;">,</div> +<div style="counter-reset: n 11000000;">,</div> +<div style="counter-reset: n 100010001;">,</div> +<div style="counter-reset: n 100110001;">,</div> + +<div style="counter-reset: n -1;">,</div> diff --git a/layout/reftests/counters/counter-korean-hanja-informal-ref.html b/layout/reftests/counters/counter-korean-hanja-informal-ref.html new file mode 100644 index 0000000000..1a7286f4da --- /dev/null +++ b/layout/reftests/counters/counter-korean-hanja-informal-ref.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<div>零,</div> +<div>一,</div> +<div>二,</div> +<div>三,</div> +<div>四,</div> +<div>五,</div> +<div>六,</div> +<div>七,</div> +<div>八,</div> +<div>九,</div> + +<div>十,</div> +<div>百,</div> +<div>千,</div> +<div>萬,</div> +<div>十萬,</div> +<div>百萬,</div> +<div>千萬,</div> +<div>一億,</div> +<div>十億,</div> + +<div>十一,</div> +<div>九十九,</div> +<div>百一,</div> +<div>二百,</div> +<div>六千一,</div> +<div>萬 一,</div> +<div>萬 十一,</div> +<div>萬 百一,</div> +<div>萬 千百十一,</div> +<div>千百萬,</div> +<div>一億 萬 一,</div> +<div>一億 十一萬 一,</div> + +<div>마이너스 一,</div> diff --git a/layout/reftests/counters/counter-korean-hanja-informal.html b/layout/reftests/counters/counter-korean-hanja-informal.html new file mode 100644 index 0000000000..51e70cb9ac --- /dev/null +++ b/layout/reftests/counters/counter-korean-hanja-informal.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<style> + div::before { + content: counter(n, korean-hanja-informal); + } +</style> +<div style="counter-reset: n 0;">,</div> +<div style="counter-reset: n 1;">,</div> +<div style="counter-reset: n 2;">,</div> +<div style="counter-reset: n 3;">,</div> +<div style="counter-reset: n 4;">,</div> +<div style="counter-reset: n 5;">,</div> +<div style="counter-reset: n 6;">,</div> +<div style="counter-reset: n 7;">,</div> +<div style="counter-reset: n 8;">,</div> +<div style="counter-reset: n 9;">,</div> + +<div style="counter-reset: n 10;">,</div> +<div style="counter-reset: n 100;">,</div> +<div style="counter-reset: n 1000;">,</div> +<div style="counter-reset: n 10000;">,</div> +<div style="counter-reset: n 100000;">,</div> +<div style="counter-reset: n 1000000;">,</div> +<div style="counter-reset: n 10000000;">,</div> +<div style="counter-reset: n 100000000;">,</div> +<div style="counter-reset: n 1000000000;">,</div> + +<div style="counter-reset: n 11;">,</div> +<div style="counter-reset: n 99;">,</div> +<div style="counter-reset: n 101;">,</div> +<div style="counter-reset: n 200;">,</div> +<div style="counter-reset: n 6001;">,</div> +<div style="counter-reset: n 10001;">,</div> +<div style="counter-reset: n 10011;">,</div> +<div style="counter-reset: n 10101;">,</div> +<div style="counter-reset: n 11111;">,</div> +<div style="counter-reset: n 11000000;">,</div> +<div style="counter-reset: n 100010001;">,</div> +<div style="counter-reset: n 100110001;">,</div> + +<div style="counter-reset: n -1;">,</div> diff --git a/layout/reftests/counters/counter-name-case-sensitive-ref.html b/layout/reftests/counters/counter-name-case-sensitive-ref.html new file mode 100644 index 0000000000..cccccc90ef --- /dev/null +++ b/layout/reftests/counters/counter-name-case-sensitive-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html lang="en-US"> +<head> + <title>Test that counter names are case sensitive (bug 416106)</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +</head> +<body> + +<div>1-5</div> +<div>1-7</div> +<div>1-7</div> +<div>2-7</div> +<div>2-9</div> +<div>2-9</div> + +</body> +</html> diff --git a/layout/reftests/counters/counter-name-case-sensitive.html b/layout/reftests/counters/counter-name-case-sensitive.html new file mode 100644 index 0000000000..7697062dfb --- /dev/null +++ b/layout/reftests/counters/counter-name-case-sensitive.html @@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html lang="en-US"> +<head> + <title>Test that counter names are case sensitive (bug 416106)</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + + body { counter-reset: foo 0 Foo 5; } + div:before { content: counters(foo, ".") "-" counters(Foo, "."); } + div.a { counter-increment: foo; } + div.b { counter-increment: Foo 2; } + + </style> +</head> +<body> + +<div class="a"></div> +<div class="b"></div> +<div></div> +<div class="a"></div> +<div class="b"></div> +<div></div> + +</body> +</html> diff --git a/layout/reftests/counters/counter-reset-integer-range-ref.html b/layout/reftests/counters/counter-reset-integer-range-ref.html new file mode 100644 index 0000000000..dfc950bc1c --- /dev/null +++ b/layout/reftests/counters/counter-reset-integer-range-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE HTML> +<title>Expected integer range</title> +0 +2147483647 +2147483647 +2147483647 +-2147483647 +-2147483647 +-2147483647 diff --git a/layout/reftests/counters/counter-reset-integer-range.html b/layout/reftests/counters/counter-reset-integer-range.html new file mode 100644 index 0000000000..a6fa15e8ec --- /dev/null +++ b/layout/reftests/counters/counter-reset-integer-range.html @@ -0,0 +1,20 @@ +<!DOCTYPE HTML> +<title>Expected integer range</title> +<style> + +span::after { content: counter(c); } + +</style> +<span style="counter-reset: c 0"></span> +<span style="counter-reset: c 2147483647"></span> +<span style="counter-reset: c 2147483648"></span> +<span style="counter-reset: c 2147483649"></span> +<span style="counter-reset: c -2147483647"></span> +<!-- + We use std::numeric_limits<int32_t>::min() as an internal "magic" value to + implement the content based <ol reversed> start value. So the following two + values are outside our supported range and should be clamped to the valid + range per spec. +--> +<span style="counter-reset: c -2147483648"></span> +<span style="counter-reset: c -2147483649"></span> diff --git a/layout/reftests/counters/counter-simp-chinese-formal-ref.html b/layout/reftests/counters/counter-simp-chinese-formal-ref.html new file mode 100644 index 0000000000..9a39f67426 --- /dev/null +++ b/layout/reftests/counters/counter-simp-chinese-formal-ref.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<div>零</div> +<div>壹</div> +<div>贰</div> +<div>叁</div> +<div>肆</div> +<div>伍</div> +<div>陆</div> +<div>柒</div> +<div>捌</div> +<div>玖</div> + +<div>壹拾</div> +<div>壹佰</div> +<div>壹仟</div> +<div>壹万</div> +<div>壹拾万</div> +<div>壹佰万</div> +<div>壹仟万</div> +<div>壹亿</div> +<div>壹拾亿</div> + +<div>壹拾壹</div> +<div>玖拾玖</div> +<div>壹佰零壹</div> +<div>贰佰</div> +<div>陆仟零壹</div> +<div>壹万零壹</div> +<div>壹万零壹拾壹</div> +<div>壹万零壹佰零壹</div> +<div>壹万壹仟壹佰壹拾壹</div> +<div>壹仟壹佰万</div> +<div>壹亿零壹万零壹</div> +<div>壹亿零壹拾壹万零壹</div> + +<div>负壹</div> diff --git a/layout/reftests/counters/counter-simp-chinese-formal.html b/layout/reftests/counters/counter-simp-chinese-formal.html new file mode 100644 index 0000000000..2f9f15f2ce --- /dev/null +++ b/layout/reftests/counters/counter-simp-chinese-formal.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<style> + div::after { + content: counter(n, simp-chinese-formal); + } +</style> +<div style="counter-reset: n 0;"></div> +<div style="counter-reset: n 1;"></div> +<div style="counter-reset: n 2;"></div> +<div style="counter-reset: n 3;"></div> +<div style="counter-reset: n 4;"></div> +<div style="counter-reset: n 5;"></div> +<div style="counter-reset: n 6;"></div> +<div style="counter-reset: n 7;"></div> +<div style="counter-reset: n 8;"></div> +<div style="counter-reset: n 9;"></div> + +<div style="counter-reset: n 10;"></div> +<div style="counter-reset: n 100;"></div> +<div style="counter-reset: n 1000;"></div> +<div style="counter-reset: n 10000;"></div> +<div style="counter-reset: n 100000;"></div> +<div style="counter-reset: n 1000000;"></div> +<div style="counter-reset: n 10000000;"></div> +<div style="counter-reset: n 100000000;"></div> +<div style="counter-reset: n 1000000000;"></div> + +<div style="counter-reset: n 11;"></div> +<div style="counter-reset: n 99;"></div> +<div style="counter-reset: n 101;"></div> +<div style="counter-reset: n 200;"></div> +<div style="counter-reset: n 6001;"></div> +<div style="counter-reset: n 10001;"></div> +<div style="counter-reset: n 10011;"></div> +<div style="counter-reset: n 10101;"></div> +<div style="counter-reset: n 11111;"></div> +<div style="counter-reset: n 11000000;"></div> +<div style="counter-reset: n 100010001;"></div> +<div style="counter-reset: n 100110001;"></div> + +<div style="counter-reset: n -1;"></div> diff --git a/layout/reftests/counters/counter-simp-chinese-informal-ref.html b/layout/reftests/counters/counter-simp-chinese-informal-ref.html new file mode 100644 index 0000000000..adc0a4c6c6 --- /dev/null +++ b/layout/reftests/counters/counter-simp-chinese-informal-ref.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<div>零</div> +<div>一</div> +<div>二</div> +<div>三</div> +<div>四</div> +<div>五</div> +<div>六</div> +<div>七</div> +<div>八</div> +<div>九</div> + +<div>十</div> +<div>一百</div> +<div>一千</div> +<div>一万</div> +<div>十万</div> +<div>一百万</div> +<div>一千万</div> +<div>一亿</div> +<div>十亿</div> + +<div>十一</div> +<div>九十九</div> +<div>一百零一</div> +<div>二百</div> +<div>六千零一</div> +<div>一万零一</div> +<div>一万零一十一</div> +<div>一万零一百零一</div> +<div>一万一千一百一十一</div> +<div>一千一百万</div> +<div>一亿零一万零一</div> +<div>一亿零十一万零一</div> + +<div>负一</div> diff --git a/layout/reftests/counters/counter-simp-chinese-informal.html b/layout/reftests/counters/counter-simp-chinese-informal.html new file mode 100644 index 0000000000..c4c394b89b --- /dev/null +++ b/layout/reftests/counters/counter-simp-chinese-informal.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<style> + div::after { + content: counter(n, simp-chinese-informal); + } +</style> +<div style="counter-reset: n 0;"></div> +<div style="counter-reset: n 1;"></div> +<div style="counter-reset: n 2;"></div> +<div style="counter-reset: n 3;"></div> +<div style="counter-reset: n 4;"></div> +<div style="counter-reset: n 5;"></div> +<div style="counter-reset: n 6;"></div> +<div style="counter-reset: n 7;"></div> +<div style="counter-reset: n 8;"></div> +<div style="counter-reset: n 9;"></div> + +<div style="counter-reset: n 10;"></div> +<div style="counter-reset: n 100;"></div> +<div style="counter-reset: n 1000;"></div> +<div style="counter-reset: n 10000;"></div> +<div style="counter-reset: n 100000;"></div> +<div style="counter-reset: n 1000000;"></div> +<div style="counter-reset: n 10000000;"></div> +<div style="counter-reset: n 100000000;"></div> +<div style="counter-reset: n 1000000000;"></div> + +<div style="counter-reset: n 11;"></div> +<div style="counter-reset: n 99;"></div> +<div style="counter-reset: n 101;"></div> +<div style="counter-reset: n 200;"></div> +<div style="counter-reset: n 6001;"></div> +<div style="counter-reset: n 10001;"></div> +<div style="counter-reset: n 10011;"></div> +<div style="counter-reset: n 10101;"></div> +<div style="counter-reset: n 11111;"></div> +<div style="counter-reset: n 11000000;"></div> +<div style="counter-reset: n 100010001;"></div> +<div style="counter-reset: n 100110001;"></div> + +<div style="counter-reset: n -1;"></div> diff --git a/layout/reftests/counters/counter-suffix-ref.html b/layout/reftests/counters/counter-suffix-ref.html new file mode 100644 index 0000000000..bcc760a7d3 --- /dev/null +++ b/layout/reftests/counters/counter-suffix-ref.html @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<style> + p, span { margin: 0; padding: 0; line-height: 150%; } + #wrapper { width: 10em; } + span { + display: inline-block; + width: 3em; + text-align: end; + box-sizing: border-box; + font-variant-numeric: tabular-nums; + } +</style> +<div id="wrapper"> + <p> + <span>1. </span>foo<br> + <span>2. </span>bar + </p> + <p> + <span>א. </span>foo<br> + <span>ב. </span>bar + </p> + <p> + <span>一、</span>foo<br> + <span>二、</span>bar + </p> + <p> + <span>일, </span>foo<br> + <span>이, </span>bar + </p> + <p dir="rtl"> + <span>1. </span>foo<br> + <span>2. </span>bar + </p> + <p dir="rtl"> + <span>א. </span>foo<br> + <span>ב. </span>bar + </p> +</div> diff --git a/layout/reftests/counters/counter-suffix.html b/layout/reftests/counters/counter-suffix.html new file mode 100644 index 0000000000..6378d7500b --- /dev/null +++ b/layout/reftests/counters/counter-suffix.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<style> + ol, li { margin: 0; padding: 0; line-height: 150%; } + #wrapper { width: 10em; } + ol { padding: 0 3em; } + .dec { list-style-type: decimal; } + .heb { list-style-type: hebrew; } + .cjk { list-style-type: cjk-decimal; } + .kor { list-style-type: korean-hangul-formal; } +</style> +<div id="wrapper"> + <ol class="dec"><li>foo<li>bar</ol> + <ol class="heb"><li>foo<li>bar</ol> + <ol class="cjk"><li>foo<li>bar</ol> + <ol class="kor"><li>foo<li>bar</ol> + <ol class="dec" dir="rtl"><li>foo<li>bar</ol> + <ol class="heb" dir="rtl"><li>foo<li>bar</ol> +</div> diff --git a/layout/reftests/counters/counter-trad-chinese-formal-ref.html b/layout/reftests/counters/counter-trad-chinese-formal-ref.html new file mode 100644 index 0000000000..8437f83142 --- /dev/null +++ b/layout/reftests/counters/counter-trad-chinese-formal-ref.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<div>零</div> +<div>壹</div> +<div>貳</div> +<div>參</div> +<div>肆</div> +<div>伍</div> +<div>陸</div> +<div>柒</div> +<div>捌</div> +<div>玖</div> + +<div>壹拾</div> +<div>壹佰</div> +<div>壹仟</div> +<div>壹萬</div> +<div>壹拾萬</div> +<div>壹佰萬</div> +<div>壹仟萬</div> +<div>壹億</div> +<div>壹拾億</div> + +<div>壹拾壹</div> +<div>玖拾玖</div> +<div>壹佰零壹</div> +<div>貳佰</div> +<div>陸仟零壹</div> +<div>壹萬零壹</div> +<div>壹萬零壹拾壹</div> +<div>壹萬零壹佰零壹</div> +<div>壹萬壹仟壹佰壹拾壹</div> +<div>壹仟壹佰萬</div> +<div>壹億零壹萬零壹</div> +<div>壹億零壹拾壹萬零壹</div> + +<div>負壹</div> diff --git a/layout/reftests/counters/counter-trad-chinese-formal.html b/layout/reftests/counters/counter-trad-chinese-formal.html new file mode 100644 index 0000000000..6c6ded5dc5 --- /dev/null +++ b/layout/reftests/counters/counter-trad-chinese-formal.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<style> + div::after { + content: counter(n, trad-chinese-formal); + } +</style> +<div style="counter-reset: n 0;"></div> +<div style="counter-reset: n 1;"></div> +<div style="counter-reset: n 2;"></div> +<div style="counter-reset: n 3;"></div> +<div style="counter-reset: n 4;"></div> +<div style="counter-reset: n 5;"></div> +<div style="counter-reset: n 6;"></div> +<div style="counter-reset: n 7;"></div> +<div style="counter-reset: n 8;"></div> +<div style="counter-reset: n 9;"></div> + +<div style="counter-reset: n 10;"></div> +<div style="counter-reset: n 100;"></div> +<div style="counter-reset: n 1000;"></div> +<div style="counter-reset: n 10000;"></div> +<div style="counter-reset: n 100000;"></div> +<div style="counter-reset: n 1000000;"></div> +<div style="counter-reset: n 10000000;"></div> +<div style="counter-reset: n 100000000;"></div> +<div style="counter-reset: n 1000000000;"></div> + +<div style="counter-reset: n 11;"></div> +<div style="counter-reset: n 99;"></div> +<div style="counter-reset: n 101;"></div> +<div style="counter-reset: n 200;"></div> +<div style="counter-reset: n 6001;"></div> +<div style="counter-reset: n 10001;"></div> +<div style="counter-reset: n 10011;"></div> +<div style="counter-reset: n 10101;"></div> +<div style="counter-reset: n 11111;"></div> +<div style="counter-reset: n 11000000;"></div> +<div style="counter-reset: n 100010001;"></div> +<div style="counter-reset: n 100110001;"></div> + +<div style="counter-reset: n -1;"></div> diff --git a/layout/reftests/counters/counter-trad-chinese-informal-ref.html b/layout/reftests/counters/counter-trad-chinese-informal-ref.html new file mode 100644 index 0000000000..2e156901ed --- /dev/null +++ b/layout/reftests/counters/counter-trad-chinese-informal-ref.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<div>零</div> +<div>一</div> +<div>二</div> +<div>三</div> +<div>四</div> +<div>五</div> +<div>六</div> +<div>七</div> +<div>八</div> +<div>九</div> + +<div>十</div> +<div>一百</div> +<div>一千</div> +<div>一萬<div> +<div>十萬</div> +<div>一百萬</div> +<div>一千萬</div> +<div>一億</div> +<div>十億</div> + +<div>十一</div> +<div>九十九</div> +<div>一百零一</div> +<div>二百</div> +<div>六千零一</div> +<div>一萬零一</div> +<div>一萬零一十一</div> +<div>一萬零一百零一</div> +<div>一萬一千一百一十一</div> +<div>一千一百萬</div> +<div>一億零一萬零一</div> +<div>一億零十一萬零一</div> + +<div>負一</div> diff --git a/layout/reftests/counters/counter-trad-chinese-informal.html b/layout/reftests/counters/counter-trad-chinese-informal.html new file mode 100644 index 0000000000..809cd7b942 --- /dev/null +++ b/layout/reftests/counters/counter-trad-chinese-informal.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<style> + div::after { + content: counter(n, trad-chinese-informal); + } +</style> +<div style="counter-reset: n 0;"></div> +<div style="counter-reset: n 1;"></div> +<div style="counter-reset: n 2;"></div> +<div style="counter-reset: n 3;"></div> +<div style="counter-reset: n 4;"></div> +<div style="counter-reset: n 5;"></div> +<div style="counter-reset: n 6;"></div> +<div style="counter-reset: n 7;"></div> +<div style="counter-reset: n 8;"></div> +<div style="counter-reset: n 9;"></div> + +<div style="counter-reset: n 10;"></div> +<div style="counter-reset: n 100;"></div> +<div style="counter-reset: n 1000;"></div> +<div style="counter-reset: n 10000;"></div> +<div style="counter-reset: n 100000;"></div> +<div style="counter-reset: n 1000000;"></div> +<div style="counter-reset: n 10000000;"></div> +<div style="counter-reset: n 100000000;"></div> +<div style="counter-reset: n 1000000000;"></div> + +<div style="counter-reset: n 11;"></div> +<div style="counter-reset: n 99;"></div> +<div style="counter-reset: n 101;"></div> +<div style="counter-reset: n 200;"></div> +<div style="counter-reset: n 6001;"></div> +<div style="counter-reset: n 10001;"></div> +<div style="counter-reset: n 10011;"></div> +<div style="counter-reset: n 10101;"></div> +<div style="counter-reset: n 11111;"></div> +<div style="counter-reset: n 11000000;"></div> +<div style="counter-reset: n 100010001;"></div> +<div style="counter-reset: n 100110001;"></div> + +<div style="counter-reset: n -1;"></div> diff --git a/layout/reftests/counters/counter-ua-limits-00-ref.html b/layout/reftests/counters/counter-ua-limits-00-ref.html new file mode 100644 index 0000000000..d0f76d8be4 --- /dev/null +++ b/layout/reftests/counters/counter-ua-limits-00-ref.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html> + <head> + <title>css-counter-styles-3 Test Suite: content: counter(c)</title> + <!-- + NOTE: This test cannot be contributed to the test suite because + it presumes a 4-byte unsigned integer, which is not required by + the spec. + + However, it tests the rules for what happens at the UA-specific + limit, which are required by the spec. + --> + <link rel="help" href="http://dev.w3.org/csswg/css-counter-styles-3/#counter-style-range"/> + <link rel="help" href="http://krijnhoetmer.nl/irc-logs/css/20130205#l-1590"/> + </head> + <body> + + <div id="test"> + <span>2147483646</span> + <span>2147483647</span> + <span>2147483647</span> + <span>2147483647</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/counter-ua-limits-00.html b/layout/reftests/counters/counter-ua-limits-00.html new file mode 100644 index 0000000000..9522f60fd2 --- /dev/null +++ b/layout/reftests/counters/counter-ua-limits-00.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<html> + <head> + <title>css-counter-styles-3 Test Suite: content: counter(c)</title> + <!-- + NOTE: This test cannot be contributed to the test suite because + it presumes a 4-byte unsigned integer, which is not required by + the spec. + + However, it tests the rules for what happens at the UA-specific + limit, which are required by the spec. + --> + <link rel="help" href="http://dev.w3.org/csswg/css-counter-styles-3/#counter-style-range"/> + <link rel="help" href="http://krijnhoetmer.nl/irc-logs/css/20130205#l-1590"/> + <style type="text/css"> + + #test { counter-reset: c 2147483645; } + #test span { counter-increment: c; } + #test span:before { content: counter(c); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/counter-ua-limits-01-ref.html b/layout/reftests/counters/counter-ua-limits-01-ref.html new file mode 100644 index 0000000000..c1742f61b7 --- /dev/null +++ b/layout/reftests/counters/counter-ua-limits-01-ref.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html> + <head> + <title>css-counter-styles-3 Test Suite: content: counter(c)</title> + <!-- + NOTE: This test cannot be contributed to the test suite because + it presumes a 4-byte unsigned integer, which is not required by + the spec. + + However, it tests the rules for what happens at the UA-specific + limit, which are required by the spec. + --> + <link rel="help" href="http://dev.w3.org/csswg/css-counter-styles-3/#counter-style-range"/> + <link rel="help" href="http://krijnhoetmer.nl/irc-logs/css/20130205#l-1590"/> + </head> + <body> + + <div id="test"> + <span>2147483640</span> + <span>2147483645</span> + <span>2147483645</span> + <span>2147483645</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/counter-ua-limits-01.html b/layout/reftests/counters/counter-ua-limits-01.html new file mode 100644 index 0000000000..cf6bcbe6ab --- /dev/null +++ b/layout/reftests/counters/counter-ua-limits-01.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<html> + <head> + <title>css-counter-styles-3 Test Suite: content: counter(c)</title> + <!-- + NOTE: This test cannot be contributed to the test suite because + it presumes a 4-byte unsigned integer, which is not required by + the spec. + + However, it tests the rules for what happens at the UA-specific + limit, which are required by the spec. + --> + <link rel="help" href="http://dev.w3.org/csswg/css-counter-styles-3/#counter-style-range"/> + <link rel="help" href="http://krijnhoetmer.nl/irc-logs/css/20130205#l-1590"/> + <style type="text/css"> + + #test { counter-reset: c 2147483635; } + #test span { counter-increment: c 5; } + #test span:before { content: counter(c); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/counter-ua-limits-02-ref.html b/layout/reftests/counters/counter-ua-limits-02-ref.html new file mode 100644 index 0000000000..2715253f3f --- /dev/null +++ b/layout/reftests/counters/counter-ua-limits-02-ref.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html> + <head> + <title>css-counter-styles-3 Test Suite: content: counter(c)</title> + <!-- + NOTE: This test cannot be contributed to the test suite because + it presumes a 4-byte unsigned integer, which is not required by + the spec. + + However, it tests the rules for what happens at the UA-specific + limit, which are required by the spec. + --> + <link rel="help" href="http://dev.w3.org/csswg/css-counter-styles-3/#counter-style-range"/> + <link rel="help" href="http://krijnhoetmer.nl/irc-logs/css/20130205#l-1590"/> + </head> + <body> + + <div id="test"> + <span>-2147483646</span> + <span>-2147483647</span> + <span>-2147483647</span> + <span>-2147483647</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/counter-ua-limits-02.html b/layout/reftests/counters/counter-ua-limits-02.html new file mode 100644 index 0000000000..e6cc9850b0 --- /dev/null +++ b/layout/reftests/counters/counter-ua-limits-02.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<html> + <head> + <title>css-counter-styles-3 Test Suite: content: counter(c)</title> + <!-- + NOTE: This test cannot be contributed to the test suite because + it presumes a 4-byte unsigned integer, which is not required by + the spec. + + However, it tests the rules for what happens at the UA-specific + limit, which are required by the spec. + --> + <link rel="help" href="http://dev.w3.org/csswg/css-counter-styles-3/#counter-style-range"/> + <link rel="help" href="http://krijnhoetmer.nl/irc-logs/css/20130205#l-1590"/> + <style type="text/css"> + + #test { counter-reset: c -2147483645; } + #test span { counter-increment: c -1; } + #test span:before { content: counter(c); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/counter-ua-limits-03-ref.html b/layout/reftests/counters/counter-ua-limits-03-ref.html new file mode 100644 index 0000000000..41c6e34324 --- /dev/null +++ b/layout/reftests/counters/counter-ua-limits-03-ref.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html> + <head> + <title>css-counter-styles-3 Test Suite: content: counter(c)</title> + <!-- + NOTE: This test cannot be contributed to the test suite because + it presumes a 4-byte unsigned integer, which is not required by + the spec. + + However, it tests the rules for what happens at the UA-specific + limit, which are required by the spec. + --> + <link rel="help" href="http://dev.w3.org/csswg/css-counter-styles-3/#counter-style-range"/> + <link rel="help" href="http://krijnhoetmer.nl/irc-logs/css/20130205#l-1590"/> + </head> + <body> + + <div id="test"> + <span>-2147483640</span> + <span>-2147483645</span> + <span>-2147483645</span> + <span>-2147483645</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/counter-ua-limits-03.html b/layout/reftests/counters/counter-ua-limits-03.html new file mode 100644 index 0000000000..338234fba6 --- /dev/null +++ b/layout/reftests/counters/counter-ua-limits-03.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<html> + <head> + <title>css-counter-styles-3 Test Suite: content: counter(c)</title> + <!-- + NOTE: This test cannot be contributed to the test suite because + it presumes a 4-byte unsigned integer, which is not required by + the spec. + + However, it tests the rules for what happens at the UA-specific + limit, which are required by the spec. + --> + <link rel="help" href="http://dev.w3.org/csswg/css-counter-styles-3/#counter-style-range"/> + <link rel="help" href="http://krijnhoetmer.nl/irc-logs/css/20130205#l-1590"/> + <style type="text/css"> + + #test { counter-reset: c -2147483635; } + #test span { counter-increment: c -5; } + #test span:before { content: counter(c); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/counter-ua-limits-list-00-ref.html b/layout/reftests/counters/counter-ua-limits-list-00-ref.html new file mode 100644 index 0000000000..9cdd2bf0af --- /dev/null +++ b/layout/reftests/counters/counter-ua-limits-list-00-ref.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<html> + <head> + <title>test of counter UA overflow rules for HTML lists</title> + <!-- + NOTE: This test cannot be contributed to the test suite because + it presumes a 4-byte unsigned integer, which is not required by + the spec. It also can't be contributed because it's testing HTML + lists. + + However, it tests the rules for what happens at the UA-specific + limit, which are required by the spec. + --> + <link rel="help" href="http://dev.w3.org/csswg/css-counter-styles-3/#counter-style-range"/> + <link rel="help" href="http://krijnhoetmer.nl/irc-logs/css/20130205#l-1590"/> + <style type="text/css"> + + ol { margin-left: 10em; padding-left: 0; } + li { margin-left: 0; padding-left: 0 } + + </style> + </head> + <body> + + <ol> + <li value="2147483646">Alpha + <li value="2147483647">Bravo + <li value="2147483647">Charlie + <li value="2147483647">Delta + </ol> + + </body> +</html> diff --git a/layout/reftests/counters/counter-ua-limits-list-00.html b/layout/reftests/counters/counter-ua-limits-list-00.html new file mode 100644 index 0000000000..68cf7cebd0 --- /dev/null +++ b/layout/reftests/counters/counter-ua-limits-list-00.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<html> + <head> + <title>test of counter UA overflow rules for HTML lists</title> + <!-- + NOTE: This test cannot be contributed to the test suite because + it presumes a 4-byte unsigned integer, which is not required by + the spec. It also can't be contributed because it's testing HTML + lists. + + However, it tests the rules for what happens at the UA-specific + limit, which are required by the spec. + --> + <link rel="help" href="http://dev.w3.org/csswg/css-counter-styles-3/#counter-style-range"/> + <link rel="help" href="http://krijnhoetmer.nl/irc-logs/css/20130205#l-1590"/> + <style type="text/css"> + + ol { margin-left: 10em; padding-left: 0; } + li { margin-left: 0; padding-left: 0 } + + </style> + </head> + <body> + + <ol start="2147483646"> + <li>Alpha + <li>Bravo + <li>Charlie + <li>Delta + </ol> + + </body> +</html> diff --git a/layout/reftests/counters/counter-ua-limits-list-01-ref.html b/layout/reftests/counters/counter-ua-limits-list-01-ref.html new file mode 100644 index 0000000000..2fb1370c60 --- /dev/null +++ b/layout/reftests/counters/counter-ua-limits-list-01-ref.html @@ -0,0 +1,46 @@ +<!DOCTYPE html> +<html> + <head> + <title>test of counter UA overflow rules for HTML lists</title> + <!-- + NOTE: This test cannot be contributed to the test suite because + it presumes a 4-byte unsigned integer, which is not required by + the spec. It also can't be contributed because it's testing HTML + lists. + + However, it tests the rules for what happens at the UA-specific + limit, which are required by the spec. + --> + <link rel="help" href="http://dev.w3.org/csswg/css-counter-styles-3/#counter-style-range"/> + <link rel="help" href="http://krijnhoetmer.nl/irc-logs/css/20130205#l-1590"/> + <style type="text/css"> + + ol { margin-left: 10em; padding-left: 0; } + li { margin-left: 0; padding-left: 0 } + li.hidden { visibility: hidden; height: 0 } + ol { margin-bottom: 0 } + ol + ol { margin-top: 0 } + + </style> + </head> + <body> + + <ol reversed start="-2147483645"> + <li class="hidden">hidden + <li>Alpha + </ol> + <ol reversed start="-2147483646"> + <li class="hidden">hidden + <li>Bravo + </ol> + <ol reversed start="-2147483647"> + <li class="hidden">hidden + <li>Charlie + </ol> + <ol reversed start="-2147483648"> + <li class="hidden">hidden + <li>Delta + </ol> + + </body> +</html> diff --git a/layout/reftests/counters/counter-ua-limits-list-01.html b/layout/reftests/counters/counter-ua-limits-list-01.html new file mode 100644 index 0000000000..0ab5448a80 --- /dev/null +++ b/layout/reftests/counters/counter-ua-limits-list-01.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<html> + <head> + <title>test of counter UA overflow rules for HTML lists</title> + <!-- + NOTE: This test cannot be contributed to the test suite because + it presumes a 4-byte unsigned integer, which is not required by + the spec. It also can't be contributed because it's testing HTML + lists. + + However, it tests the rules for what happens at the UA-specific + limit, which are required by the spec. + --> + <link rel="help" href="http://dev.w3.org/csswg/css-counter-styles-3/#counter-style-range"/> + <link rel="help" href="http://krijnhoetmer.nl/irc-logs/css/20130205#l-1590"/> + <style type="text/css"> + + ol { margin-left: 10em; padding-left: 0; } + li { margin-left: 0; padding-left: 0 } + + </style> + </head> + <body> + + <ol reversed start="-2147483646"> + <li>Alpha + <li>Bravo + <li>Charlie + <li>Delta + </ol> + + </body> +</html> diff --git a/layout/reftests/counters/counters-hebrew-reference.html b/layout/reftests/counters/counters-hebrew-reference.html new file mode 100644 index 0000000000..7e725760e8 --- /dev/null +++ b/layout/reftests/counters/counters-hebrew-reference.html @@ -0,0 +1,66 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", hebrew)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + + </head> + <body> + + <p></p> + <div> + <span>א.א</span> + <span>ב</span> + <span>ג</span> + <span>ד</span> + <span>ה</span> + <span>ו</span> + <span>ז</span> + <span>ח</span> + <span>ט</span> + <span>י</span> + <span>יא</span> + <span>יב</span> + <span>יג</span> + <span>יד</span> + <span>טו</span> + <span>טז</span> + <span>יז</span> + <span>יז.כ</span> + <span>יז.ל</span> + <span>יז.מ</span> + <span>יז.נ</span> + <span>יז.ס</span> + <span>יז.ע</span> + <span>יז.פ</span> + <span>יז.צ</span> + <span>יז.ק</span> + <span>יז.ר</span> + <span>יז.ש</span> + <span>יז.ת</span> + <span>יז.תק</span> + <span>יז.תר</span> + <span>יז.תש</span> + <span>יז.תת</span> + <span>יז.תתק</span> + <span>יז.א׳</span> + <span>יז.ב׳</span> + <span>יז.ג׳</span> + <span>יז.ד׳</span> + <span>יז.ה׳</span> + <span>יז.ו׳</span> + <span>יז.ז׳</span> + <span>יז.ח׳</span> + <span>יז.ט׳</span> + <span>יז.ט׳תתקצט</span> + <span>יז.תתקצט׳תתקצט</span> + <style> + #c18:before { counter-set: c 18; content: counter(c, hebrew); } + </style> + <span id="c18"></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/counters-hebrew-test.html b/layout/reftests/counters/counters-hebrew-test.html new file mode 100644 index 0000000000..ca18ae5ffb --- /dev/null +++ b/layout/reftests/counters/counters-hebrew-test.html @@ -0,0 +1,72 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", hebrew)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + <style type="text/css"> + + body, #test span:first-child { counter-reset: c; } + p, #test span { counter-increment: c; } + #test span:before { content: counters(c, ".", hebrew); } + #test span { direction: rtl; } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span style="counter-reset: c 19"></span> + <span style="counter-reset: c 29"></span> + <span style="counter-reset: c 39"></span> + <span style="counter-reset: c 49"></span> + <span style="counter-reset: c 59"></span> + <span style="counter-reset: c 69"></span> + <span style="counter-reset: c 79"></span> + <span style="counter-reset: c 89"></span> + <span style="counter-reset: c 99"></span> + <span style="counter-reset: c 199"></span> + <span style="counter-reset: c 299"></span> + <span style="counter-reset: c 399"></span> + <span style="counter-reset: c 499"></span> + <span style="counter-reset: c 599"></span> + <span style="counter-reset: c 699"></span> + <span style="counter-reset: c 799"></span> + <span style="counter-reset: c 899"></span> + <span style="counter-reset: c 999"></span> + <span style="counter-reset: c 1999"></span> + <span style="counter-reset: c 2999"></span> + <span style="counter-reset: c 3999"></span> + <span style="counter-reset: c 4999"></span> + <span style="counter-reset: c 5999"></span> + <span style="counter-reset: c 6999"></span> + <span style="counter-reset: c 7999"></span> + <span style="counter-reset: c 8999"></span> + <span style="counter-reset: c 9998"></span> + <span style="counter-reset: c 999998"></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/multiple-thai-counters-ref.html b/layout/reftests/counters/multiple-thai-counters-ref.html new file mode 100644 index 0000000000..cb2e921c1f --- /dev/null +++ b/layout/reftests/counters/multiple-thai-counters-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<style> + span span span::before { + counter-increment: item; + content: counter(item, -moz-thai) "." counter(item, -moz-thai) "." counter(item, -moz-thai); + content: counter(item, thai) "." counter(item, thai) "." counter(item, thai); + } +</style> +<span><span><span></span></span></span> diff --git a/layout/reftests/counters/multiple-thai-counters.html b/layout/reftests/counters/multiple-thai-counters.html new file mode 100644 index 0000000000..0e37af4d0b --- /dev/null +++ b/layout/reftests/counters/multiple-thai-counters.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<style> + span { + counter-reset: item; + counter-increment: item; + } + span span span::before { + content: counters(item, ".", -moz-thai); + content: counters(item, ".", thai); + } +</style> +<span><span><span></span></span></span> diff --git a/layout/reftests/counters/reftest.list b/layout/reftests/counters/reftest.list new file mode 100644 index 0000000000..08a3b62877 --- /dev/null +++ b/layout/reftests/counters/reftest.list @@ -0,0 +1,81 @@ +== counter-name-case-sensitive.html counter-name-case-sensitive-ref.html +== t1202-counter-00-b-test.html t1202-counter-00-b-reference.html +== t1202-counter-02-b-test.html t1202-counter-02-b-reference.html +== t1202-counter-03-b-test.html t1202-counter-03-b-reference.html +== t1202-counter-04-b-test.html t1202-counter-04-b-reference.html +== t1202-counter-05-b-test.html t1202-counter-05-b-reference.html +== t1202-counter-06-b-test.html t1202-counter-06-b-reference.html +== t1202-counter-07-b-test.html t1202-counter-07-b-reference.html +== t1202-counter-08-b-test.html t1202-counter-08-b-reference.html +== t1202-counter-09-b-test.html t1202-counter-09-b-reference.html +== t1202-counter-10-b-test.html t1202-counter-10-b-reference.html +== t1202-counter-11-b-test.html t1202-counter-11-b-reference.html +== t1202-counter-12-b-test.html t1202-counter-12-b-reference.html +== t1202-counter-13-b-test.html t1202-counter-13-b-reference.html +== t1202-counter-14-b-test.html t1202-counter-14-b-reference.html +== t1202-counter-15-b-test.html t1202-counter-15-b-reference.html +== t1202-counter-16-f-test.html t1202-counter-16-f-reference.html +== t1202-counters-00-b-test.html t1202-counters-00-b-reference.html +== t1202-counters-01-b-test.html about:blank +== t1202-counters-02-b-test.html t1202-counters-02-b-reference.html +== t1202-counters-03-b-test.html t1202-counters-03-b-reference.html +== t1202-counters-04-b-test.html t1202-counters-04-b-reference.html +== t1202-counters-05-b-test.html t1202-counters-05-b-reference.html +== t1202-counters-06-b-test.html t1202-counters-06-b-reference.html +== t1202-counters-07-b-test.html t1202-counters-07-b-reference.html +== t1202-counters-08-b-test.html t1202-counters-08-b-reference.html +== t1202-counters-09-b-test.html t1202-counters-09-b-reference.html +== t1202-counters-10-b-test.html t1202-counters-10-b-reference.html +== t1202-counters-11-b-test.html t1202-counters-11-b-reference.html +== t1202-counters-12-b-test.html t1202-counters-12-b-reference.html +== t1202-counters-13-b-test.html t1202-counters-13-b-reference.html +== t1202-counters-14-b-test.html t1202-counters-14-b-reference.html +== t1202-counters-15-b-test.html t1202-counters-15-b-reference.html +== t1202-counters-16-c-test.html t1202-counters-16-c-reference.html +== t1202-counters-17-d-test.html t1202-counters-17-d-reference.html +== t1202-counters-18-f-test.html t1202-counters-18-f-reference.html +== t1204-implied-00-b-test.html t1204-implied-00-b-reference.html +== t1204-implied-01-c-test.html t1204-implied-01-c-reference.html +== t1204-implied-02-d-test.html t1204-implied-02-d-reference.html +== t1204-increment-00-c-o-test.html t1204-increment-00-c-o-reference.html +== t1204-increment-01-c-o-test.html t1204-increment-01-c-o-reference.html +== t1204-increment-02-c-o-test.html t1204-increment-02-c-o-reference.html +== t1204-multiple-00-c-test.html t1204-multiple-00-c-reference.html +== t1204-multiple-01-c-test.html t1204-multiple-01-c-reference.html +== t1204-order-00-c-test.html t1204-order-00-c-reference.html +== t1204-order-01-d-test.html t1204-order-01-d-reference.html +== t1204-reset-00-c-o-test.html t1204-reset-00-c-o-reference.html +== t1204-reset-01-c-o-test.html t1204-reset-01-c-o-reference.html +== t1204-reset-02-c-o-test.html t1204-reset-02-c-o-reference.html +== t1204-root-e-test.html t1204-root-e-reference.html +== t120401-scope-00-b-test.html t120401-scope-00-b-reference.html +== t120401-scope-01-c-test.html t120401-scope-01-c-reference.html +== t120401-scope-02-c-test.html t120401-scope-02-c-reference.html +== t120401-scope-03-c-test.html t120401-scope-03-c-reference.html +== t120401-scope-04-d-test.html t120401-scope-04-d-reference.html +== t120403-content-none-00-c-test.html t120403-content-none-00-c-reference.html +== t120403-display-none-00-c-test.html t120403-display-none-00-c-reference.html +== t120403-visibility-00-c-test.html t120403-visibility-00-c-reference.html +== text-boundaries-subpixel.html text-boundaries-subpixel-ref.html +== counter-hebrew-test.html counter-hebrew-reference.html +== counters-hebrew-test.html counters-hebrew-reference.html +== counter-reset-integer-range.html counter-reset-integer-range-ref.html +== counter-ua-limits-00.html counter-ua-limits-00-ref.html +== counter-ua-limits-01.html counter-ua-limits-01-ref.html +== counter-ua-limits-02.html counter-ua-limits-02-ref.html +== counter-ua-limits-03.html counter-ua-limits-03-ref.html +== counter-ua-limits-list-00.html counter-ua-limits-list-00-ref.html +== counter-ua-limits-list-01.html counter-ua-limits-list-01-ref.html +== multiple-thai-counters.html multiple-thai-counters-ref.html +== counter-suffix.html counter-suffix-ref.html +== counter-cjk-decimal.html counter-cjk-decimal-ref.html +== counter-japanese-informal.html counter-japanese-informal-ref.html +== counter-japanese-formal.html counter-japanese-formal-ref.html +== counter-korean-hangul-formal.html counter-korean-hangul-formal-ref.html +== counter-korean-hanja-informal.html counter-korean-hanja-informal-ref.html +== counter-korean-hanja-formal.html counter-korean-hanja-formal-ref.html +== counter-simp-chinese-informal.html counter-simp-chinese-informal-ref.html +== counter-simp-chinese-formal.html counter-simp-chinese-formal-ref.html +== counter-trad-chinese-informal.html counter-trad-chinese-informal-ref.html +== counter-trad-chinese-formal.html counter-trad-chinese-formal-ref.html +== counter-ethiopic-numeric.html counter-ethiopic-numeric-ref.html diff --git a/layout/reftests/counters/t1202-counter-00-b-reference.html b/layout/reftests/counters/t1202-counter-00-b-reference.html new file mode 100644 index 0000000000..f51610e8b7 --- /dev/null +++ b/layout/reftests/counters/t1202-counter-00-b-reference.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + + </head> + <body> + +<div> + <span>1</span> + <span>2</span> + <span>3</span> + <span>4</span> + <span>5</span> + <span>6</span> + <span>7</span> + <span>8</span> + <span>9</span> + <span>10</span> + <span>11</span> + <span>12</span> +</div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-00-b-test.html b/layout/reftests/counters/t1202-counter-00-b-test.html new file mode 100644 index 0000000000..c3ac0ad57f --- /dev/null +++ b/layout/reftests/counters/t1202-counter-00-b-test.html @@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + #test { counter-reset: c; } + #test span { counter-increment: c; } + #test span:before { content: counter(c); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-01-b-reference.html b/layout/reftests/counters/t1202-counter-01-b-reference.html new file mode 100644 index 0000000000..dc14dd61e9 --- /dev/null +++ b/layout/reftests/counters/t1202-counter-01-b-reference.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, none)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + + </head> + <body> + + <div> + <span>z</span> + <span>z</span> + <span>z</span> + <span>z</span> + <span>z</span> + <span>z</span> + <span>z</span> + <span>z</span> + <span>z</span> + <span>z</span> + <span>z</span> + <span>z</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-02-b-reference.html b/layout/reftests/counters/t1202-counter-02-b-reference.html new file mode 100644 index 0000000000..5b7fcc22a6 --- /dev/null +++ b/layout/reftests/counters/t1202-counter-02-b-reference.html @@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, disc)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + </head> + <body> + + <div> + <span>•</span> + <span>•</span> + <span>•</span> + <span>•</span> + <span>•</span> + <span>•</span> + <span>•</span> + <span>•</span> + <span>•</span> + <span>•</span> + <span>•</span> + <span>•</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-02-b-test.html b/layout/reftests/counters/t1202-counter-02-b-test.html new file mode 100644 index 0000000000..8c2819fbb1 --- /dev/null +++ b/layout/reftests/counters/t1202-counter-02-b-test.html @@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, disc)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + #test { counter-reset: c; } + #test span { counter-increment: c; } + #test span:before { content: counter(c, disc); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-03-b-reference.html b/layout/reftests/counters/t1202-counter-03-b-reference.html new file mode 100644 index 0000000000..f926beacd9 --- /dev/null +++ b/layout/reftests/counters/t1202-counter-03-b-reference.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, circle)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + + </head> + <body> + + <div> + <span>◦</span> + <span>◦</span> + <span>◦</span> + <span>◦</span> + <span>◦</span> + <span>◦</span> + <span>◦</span> + <span>◦</span> + <span>◦</span> + <span>◦</span> + <span>◦</span> + <span>◦</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-03-b-test.html b/layout/reftests/counters/t1202-counter-03-b-test.html new file mode 100644 index 0000000000..8e57a13d5d --- /dev/null +++ b/layout/reftests/counters/t1202-counter-03-b-test.html @@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, circle)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + #test { counter-reset: c; } + #test span { counter-increment: c; } + #test span:before { content: counter(c, circle); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-04-b-reference.html b/layout/reftests/counters/t1202-counter-04-b-reference.html new file mode 100644 index 0000000000..ccbea83acd --- /dev/null +++ b/layout/reftests/counters/t1202-counter-04-b-reference.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, square)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + + </head> + <body> + + <div> + <span>▪</span> + <span>▪</span> + <span>▪</span> + <span>▪</span> + <span>▪</span> + <span>▪</span> + <span>▪</span> + <span>▪</span> + <span>▪</span> + <span>▪</span> + <span>▪</span> + <span>▪</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-04-b-test.html b/layout/reftests/counters/t1202-counter-04-b-test.html new file mode 100644 index 0000000000..3a56ceda6b --- /dev/null +++ b/layout/reftests/counters/t1202-counter-04-b-test.html @@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, square)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + #test { counter-reset: c; } + #test span { counter-increment: c; } + #test span:before { content: counter(c, square); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-05-b-reference.html b/layout/reftests/counters/t1202-counter-05-b-reference.html new file mode 100644 index 0000000000..9bb369daa3 --- /dev/null +++ b/layout/reftests/counters/t1202-counter-05-b-reference.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, decimal)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + + </head> + <body> + + <div> + <span>1</span> + <span>2</span> + <span>3</span> + <span>4</span> + <span>5</span> + <span>6</span> + <span>7</span> + <span>8</span> + <span>9</span> + <span>10</span> + <span>11</span> + <span>12</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-05-b-test.html b/layout/reftests/counters/t1202-counter-05-b-test.html new file mode 100644 index 0000000000..06809d4fdc --- /dev/null +++ b/layout/reftests/counters/t1202-counter-05-b-test.html @@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, decimal)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + #test { counter-reset: c; } + #test span { counter-increment: c; } + #test span:before { content: counter(c, decimal); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-06-b-reference.html b/layout/reftests/counters/t1202-counter-06-b-reference.html new file mode 100644 index 0000000000..78c9300a8b --- /dev/null +++ b/layout/reftests/counters/t1202-counter-06-b-reference.html @@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, decimal-leading-zero)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + + </head> + <body> + + <div> + <span>01</span> + <span>02</span> + <span>03</span> + <span>04</span> + <span>05</span> + <span>06</span> + <span>07</span> + <span>08</span> + <span>09</span> + <span>10</span> + <span>11</span> + <span>12</span> + <span>99</span> + <span>13</span> + <span>14</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-06-b-test.html b/layout/reftests/counters/t1202-counter-06-b-test.html new file mode 100644 index 0000000000..8a4109c35c --- /dev/null +++ b/layout/reftests/counters/t1202-counter-06-b-test.html @@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, decimal-leading-zero)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + <style type="text/css"> + + #test { counter-reset: c; } + #test span { counter-increment: c; } + #test span:before { content: counter(c, decimal-leading-zero); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span style="counter-reset: c 98"></span> + <span></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-07-b-reference.html b/layout/reftests/counters/t1202-counter-07-b-reference.html new file mode 100644 index 0000000000..b0da1fa597 --- /dev/null +++ b/layout/reftests/counters/t1202-counter-07-b-reference.html @@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, lower-roman)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + </head> + <body> + + <div> + <span>i</span> + <span>ii</span> + <span>iii</span> + <span>iv</span> + <span>v</span> + <span>vi</span> + <span>vii</span> + <span>viii</span> + <span>ix</span> + <span>x</span> + <span>xi</span> + <span>xii</span> + <span>xlix</span> + <span>xiii</span> + <span>ccclxxxix</span> + <span>xiv</span> + <span>mmmcdlxxxix</span> + <span>xv</span> + <span>xvi</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-07-b-test.html b/layout/reftests/counters/t1202-counter-07-b-test.html new file mode 100644 index 0000000000..85c0f9df7d --- /dev/null +++ b/layout/reftests/counters/t1202-counter-07-b-test.html @@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, lower-roman)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + <style type="text/css"> + + #test { counter-reset: c; } + #test span { counter-increment: c; } + #test span:before { content: counter(c, lower-roman); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span style="counter-reset: c 48"></span> + <span></span> + <span style="counter-reset: c 388"></span> + <span></span> + <span style="counter-reset: c 3488"></span> + <span></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-08-b-reference.html b/layout/reftests/counters/t1202-counter-08-b-reference.html new file mode 100644 index 0000000000..40a8bf8d53 --- /dev/null +++ b/layout/reftests/counters/t1202-counter-08-b-reference.html @@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, upper-roman)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + </head> + <body> + + <div> + <span>I</span> + <span>II</span> + <span>III</span> + <span>IV</span> + <span>V</span> + <span>VI</span> + <span>VII</span> + <span>VIII</span> + <span>IX</span> + <span>X</span> + <span>XI</span> + <span>XII</span> + <span>XLIX</span> + <span>XIII</span> + <span>CCCLXXXIX</span> + <span>XIV</span> + <span>MMMCDLXXXIX</span> + <span>XV</span> + <span>XVI</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-08-b-test.html b/layout/reftests/counters/t1202-counter-08-b-test.html new file mode 100644 index 0000000000..188ac0e45c --- /dev/null +++ b/layout/reftests/counters/t1202-counter-08-b-test.html @@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, upper-roman)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + <style type="text/css"> + + #test { counter-reset: c; } + #test span { counter-increment: c; } + #test span:before { content: counter(c, upper-roman); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span style="counter-reset: c 48"></span> + <span></span> + <span style="counter-reset: c 388"></span> + <span></span> + <span style="counter-reset: c 3488"></span> + <span></span> + <span></span> + </div> + + </body> +</html>
\ No newline at end of file diff --git a/layout/reftests/counters/t1202-counter-09-b-reference.html b/layout/reftests/counters/t1202-counter-09-b-reference.html new file mode 100644 index 0000000000..d54030065f --- /dev/null +++ b/layout/reftests/counters/t1202-counter-09-b-reference.html @@ -0,0 +1,57 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, georgian)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + + </head> + <body> + + <div> + <span>ა</span> + <span>ბ</span> + <span>გ</span> + <span>დ</span> + <span>ე</span> + <span>ვ</span> + <span>ზ</span> + <span>ჱ</span> + <span>თ</span> + <span>ი</span> + <span>ია</span> + <span>იბ</span> + <span>კ</span> + <span>ლ</span> + <span>მ</span> + <span>ნ</span> + <span>ჲ</span> + <span>ო</span> + <span>პ</span> + <span>ჟ</span> + <span>რ</span> + <span>ს</span> + <span>ტ</span> + <span>ჳ</span> + <span>ფ</span> + <span>ქ</span> + <span>ღ</span> + <span>ყ</span> + <span>შ</span> + <span>ჩ</span> + <span>ც</span> + <span>ძ</span> + <span>წ</span> + <span>ჭ</span> + <span>ხ</span> + <span>ჴ</span> + <span>ჯ</span> + <span>ჰ</span> + <span>ჵ</span> + <span>ჵჰშჟთ</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-09-b-test.html b/layout/reftests/counters/t1202-counter-09-b-test.html new file mode 100644 index 0000000000..dff904b2ed --- /dev/null +++ b/layout/reftests/counters/t1202-counter-09-b-test.html @@ -0,0 +1,63 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, georgian)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + <style type="text/css"> + + #test { counter-reset: c; } + #test span { counter-increment: c; } + #test span:before { content: counter(c, georgian); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span style="counter-reset: c 19"></span> + <span style="counter-reset: c 29"></span> + <span style="counter-reset: c 39"></span> + <span style="counter-reset: c 49"></span> + <span style="counter-reset: c 59"></span> + <span style="counter-reset: c 69"></span> + <span style="counter-reset: c 79"></span> + <span style="counter-reset: c 89"></span> + <span style="counter-reset: c 99"></span> + <span style="counter-reset: c 199"></span> + <span style="counter-reset: c 299"></span> + <span style="counter-reset: c 399"></span> + <span style="counter-reset: c 499"></span> + <span style="counter-reset: c 599"></span> + <span style="counter-reset: c 699"></span> + <span style="counter-reset: c 799"></span> + <span style="counter-reset: c 899"></span> + <span style="counter-reset: c 999"></span> + <span style="counter-reset: c 1999"></span> + <span style="counter-reset: c 2999"></span> + <span style="counter-reset: c 3999"></span> + <span style="counter-reset: c 4999"></span> + <span style="counter-reset: c 5999"></span> + <span style="counter-reset: c 6999"></span> + <span style="counter-reset: c 7999"></span> + <span style="counter-reset: c 8999"></span> + <span style="counter-reset: c 9999"></span> + <span style="counter-reset: c 19998"></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-10-b-reference.html b/layout/reftests/counters/t1202-counter-10-b-reference.html new file mode 100644 index 0000000000..02965401ec --- /dev/null +++ b/layout/reftests/counters/t1202-counter-10-b-reference.html @@ -0,0 +1,56 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, armenian)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + + </head> + <body> + + <div> + <span>Ա</span> + <span>Բ</span> + <span>Գ</span> + <span>Դ</span> + <span>Ե</span> + <span>Զ</span> + <span>Է</span> + <span>Ը</span> + <span>Թ</span> + <span>Ժ</span> + <span>ԺԱ</span> + <span>ԺԲ</span> + <span>Ի</span> + <span>Լ</span> + <span>Խ</span> + <span>Ծ</span> + <span>Կ</span> + <span>Հ</span> + <span>Ձ</span> + <span>Ղ</span> + <span>Ճ</span> + <span>Մ</span> + <span>Յ</span> + <span>Ն</span> + <span>Շ</span> + <span>Ո</span> + <span>Չ</span> + <span>Պ</span> + <span>Ջ</span> + <span>Ռ</span> + <span>Ս</span> + <span>Վ</span> + <span>Տ</span> + <span>Ր</span> + <span>Ց</span> + <span>Ւ</span> + <span>Փ</span> + <span>Ք</span> + <span>ՔՋՂԹ</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-10-b-test.html b/layout/reftests/counters/t1202-counter-10-b-test.html new file mode 100644 index 0000000000..7eeabdd155 --- /dev/null +++ b/layout/reftests/counters/t1202-counter-10-b-test.html @@ -0,0 +1,62 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, armenian)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + <style type="text/css"> + + #test { counter-reset: c; } + #test span { counter-increment: c; } + #test span:before { content: counter(c, armenian); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span style="counter-reset: c 19"></span> + <span style="counter-reset: c 29"></span> + <span style="counter-reset: c 39"></span> + <span style="counter-reset: c 49"></span> + <span style="counter-reset: c 59"></span> + <span style="counter-reset: c 69"></span> + <span style="counter-reset: c 79"></span> + <span style="counter-reset: c 89"></span> + <span style="counter-reset: c 99"></span> + <span style="counter-reset: c 199"></span> + <span style="counter-reset: c 299"></span> + <span style="counter-reset: c 399"></span> + <span style="counter-reset: c 499"></span> + <span style="counter-reset: c 599"></span> + <span style="counter-reset: c 699"></span> + <span style="counter-reset: c 799"></span> + <span style="counter-reset: c 899"></span> + <span style="counter-reset: c 999"></span> + <span style="counter-reset: c 1999"></span> + <span style="counter-reset: c 2999"></span> + <span style="counter-reset: c 3999"></span> + <span style="counter-reset: c 4999"></span> + <span style="counter-reset: c 5999"></span> + <span style="counter-reset: c 6999"></span> + <span style="counter-reset: c 7999"></span> + <span style="counter-reset: c 8999"></span> + <span style="counter-reset: c 9998"></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-11-b-reference.html b/layout/reftests/counters/t1202-counter-11-b-reference.html new file mode 100644 index 0000000000..beff972245 --- /dev/null +++ b/layout/reftests/counters/t1202-counter-11-b-reference.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, lower-latin)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + + </head> + <body> + + <div> + <span>a</span> + <span>b</span> + <span>c</span> + <span>d</span> + <span>e</span> + <span>f</span> + <span>g</span> + <span>h</span> + <span>i</span> + <span>j</span> + <span>k</span> + <span>l</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-11-b-test.html b/layout/reftests/counters/t1202-counter-11-b-test.html new file mode 100644 index 0000000000..0fec0f849b --- /dev/null +++ b/layout/reftests/counters/t1202-counter-11-b-test.html @@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, lower-latin)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + #test { counter-reset: c; } + #test span { counter-increment: c; } + #test span:before { content: counter(c, lower-latin); } + + </style> + </head> + <body> + +<div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-12-b-reference.html b/layout/reftests/counters/t1202-counter-12-b-reference.html new file mode 100644 index 0000000000..375dffee90 --- /dev/null +++ b/layout/reftests/counters/t1202-counter-12-b-reference.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, lower-alpha)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + + </head> + <body> + + <div> + <span>a</span> + <span>b</span> + <span>c</span> + <span>d</span> + <span>e</span> + <span>f</span> + <span>g</span> + <span>h</span> + <span>i</span> + <span>j</span> + <span>k</span> + <span>l</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-12-b-test.html b/layout/reftests/counters/t1202-counter-12-b-test.html new file mode 100644 index 0000000000..3de16e478d --- /dev/null +++ b/layout/reftests/counters/t1202-counter-12-b-test.html @@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, lower-alpha)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + #test { counter-reset: c; } + #test span { counter-increment: c; } + #test span:before { content: counter(c, lower-alpha); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-13-b-reference.html b/layout/reftests/counters/t1202-counter-13-b-reference.html new file mode 100644 index 0000000000..c613674a9f --- /dev/null +++ b/layout/reftests/counters/t1202-counter-13-b-reference.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, upper-latin)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + + </head> + <body> + + <div> + <span>A</span> + <span>B</span> + <span>C</span> + <span>D</span> + <span>E</span> + <span>F</span> + <span>G</span> + <span>H</span> + <span>I</span> + <span>J</span> + <span>K</span> + <span>L</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-13-b-test.html b/layout/reftests/counters/t1202-counter-13-b-test.html new file mode 100644 index 0000000000..21ec67b312 --- /dev/null +++ b/layout/reftests/counters/t1202-counter-13-b-test.html @@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, upper-latin)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + #test { counter-reset: c; } + #test span { counter-increment: c; } + #test span:before { content: counter(c, upper-latin); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-14-b-reference.html b/layout/reftests/counters/t1202-counter-14-b-reference.html new file mode 100644 index 0000000000..cd9f1a32cd --- /dev/null +++ b/layout/reftests/counters/t1202-counter-14-b-reference.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, upper-alpha)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + + </head> + <body> + + <div> + <span>A</span> + <span>B</span> + <span>C</span> + <span>D</span> + <span>E</span> + <span>F</span> + <span>G</span> + <span>H</span> + <span>I</span> + <span>J</span> + <span>K</span> + <span>L</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-14-b-test.html b/layout/reftests/counters/t1202-counter-14-b-test.html new file mode 100644 index 0000000000..187ca1679e --- /dev/null +++ b/layout/reftests/counters/t1202-counter-14-b-test.html @@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, upper-alpha)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + #test { counter-reset: c; } + #test span { counter-increment: c; } + #test span:before { content: counter(c, upper-alpha); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-15-b-reference.html b/layout/reftests/counters/t1202-counter-15-b-reference.html new file mode 100644 index 0000000000..491c06b2e1 --- /dev/null +++ b/layout/reftests/counters/t1202-counter-15-b-reference.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, lower-greek)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + + </head> + <body> + + <div> + <span>α</span> + <span>β</span> + <span>γ</span> + <span>δ</span> + <span>ε</span> + <span>ζ</span> + <span>η</span> + <span>θ</span> + <span>ι</span> + <span>κ</span> + <span>λ</span> + <span>μ</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-15-b-test.html b/layout/reftests/counters/t1202-counter-15-b-test.html new file mode 100644 index 0000000000..0321b124b4 --- /dev/null +++ b/layout/reftests/counters/t1202-counter-15-b-test.html @@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter(c, lower-greek)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + #test { counter-reset: c; } + #test span { counter-increment: c; } + #test span:before { content: counter(c, lower-greek); } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-16-f-reference.html b/layout/reftests/counters/t1202-counter-16-f-reference.html new file mode 100644 index 0000000000..6f26a01983 --- /dev/null +++ b/layout/reftests/counters/t1202-counter-16-f-reference.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter() error cases</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + + </head> + <body> + + <div> + <span>1</span> + <span>2</span> + <span>3</span> + <span>4</span> + <span>5</span> + <span>6</span> + <span>7</span> + <span>8</span> + <span>9</span> + <span>10</span> + <span>11</span> + <span>12</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counter-16-f-test.html b/layout/reftests/counters/t1202-counter-16-f-test.html new file mode 100644 index 0000000000..c0954d58e4 --- /dev/null +++ b/layout/reftests/counters/t1202-counter-16-f-test.html @@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counter() error cases</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + #test { counter-reset: c 0 f 1000; } + #test span { counter-increment: c; } + #test span:before { + content: counter(c); + content: counter(f, "."); + content: counter(f, ".", decimal); + content: counter(f, decimal, "."); + content: counter(f, decimal, decimal); + } + + </style> + </head> + <body> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-00-b-reference.html b/layout/reftests/counters/t1202-counters-00-b-reference.html new file mode 100644 index 0000000000..61198bbc11 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-00-b-reference.html @@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".")</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + </head> + <body> + + <p></p> + + <div> + <span>1.1</span> + <span>1.2</span> + <span>1.3</span> + <span>1.4</span> + <span>1.5</span> + <span>1.6</span> + <span>1.7</span> + <span>1.8</span> + <span>1.9</span> + <span>1.10</span> + <span>1.11</span> + <span>1.12</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-00-b-test.html b/layout/reftests/counters/t1202-counters-00-b-test.html new file mode 100644 index 0000000000..c355b02eb1 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-00-b-test.html @@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".")</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + body, #test { counter-reset: c; } + p, #test span { counter-increment: c; } + #test span:before { content: counters(c, "."); } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-01-b-test.html b/layout/reftests/counters/t1202-counters-01-b-test.html new file mode 100644 index 0000000000..f4a227fa78 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-01-b-test.html @@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", none)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + body, #test { counter-reset: c; } + p, #test span { counter-increment: c; } + #test span:before { content: counters(c, ".", none) "z"; } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-02-b-reference.html b/layout/reftests/counters/t1202-counters-02-b-reference.html new file mode 100644 index 0000000000..38bb3b6548 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-02-b-reference.html @@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", disc)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + </head> + <body> + + <p></p> + + <div> + <span>•.•</span> + <span>•.•</span> + <span>•.•</span> + <span>•.•</span> + <span>•.•</span> + <span>•.•</span> + <span>•.•</span> + <span>•.•</span> + <span>•.•</span> + <span>•.•</span> + <span>•.•</span> + <span>•.•</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-02-b-test.html b/layout/reftests/counters/t1202-counters-02-b-test.html new file mode 100644 index 0000000000..9ee45c2163 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-02-b-test.html @@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", disc)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + body, #test { counter-reset: c; } + p, #test span { counter-increment: c; } + #test span:before { content: counters(c, ".", disc); } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-03-b-reference.html b/layout/reftests/counters/t1202-counters-03-b-reference.html new file mode 100644 index 0000000000..3c9758ef2b --- /dev/null +++ b/layout/reftests/counters/t1202-counters-03-b-reference.html @@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", circle)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + </head> + <body> + + <p></p> + + <div> + <span>◦.◦</span> + <span>◦.◦</span> + <span>◦.◦</span> + <span>◦.◦</span> + <span>◦.◦</span> + <span>◦.◦</span> + <span>◦.◦</span> + <span>◦.◦</span> + <span>◦.◦</span> + <span>◦.◦</span> + <span>◦.◦</span> + <span>◦.◦</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-03-b-test.html b/layout/reftests/counters/t1202-counters-03-b-test.html new file mode 100644 index 0000000000..102e538648 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-03-b-test.html @@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", circle)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + body, #test { counter-reset: c; } + p, #test span { counter-increment: c; } + #test span:before { content: counters(c, ".", circle); } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-04-b-reference.html b/layout/reftests/counters/t1202-counters-04-b-reference.html new file mode 100644 index 0000000000..b8632de75f --- /dev/null +++ b/layout/reftests/counters/t1202-counters-04-b-reference.html @@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", square)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + </head> + <body> + + <p></p> + + <div> + <span>▪.▪</span> + <span>▪.▪</span> + <span>▪.▪</span> + <span>▪.▪</span> + <span>▪.▪</span> + <span>▪.▪</span> + <span>▪.▪</span> + <span>▪.▪</span> + <span>▪.▪</span> + <span>▪.▪</span> + <span>▪.▪</span> + <span>▪.▪</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-04-b-test.html b/layout/reftests/counters/t1202-counters-04-b-test.html new file mode 100644 index 0000000000..6fd5e6d1d3 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-04-b-test.html @@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", square)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + body, #test { counter-reset: c; } + p, #test span { counter-increment: c; } + #test span:before { content: counters(c, ".", square); } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-05-b-reference.html b/layout/reftests/counters/t1202-counters-05-b-reference.html new file mode 100644 index 0000000000..68911cde32 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-05-b-reference.html @@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", decimal)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + </head> + <body> + + <p></p> + + <div> + <span>1.1</span> + <span>1.2</span> + <span>1.3</span> + <span>1.4</span> + <span>1.5</span> + <span>1.6</span> + <span>1.7</span> + <span>1.8</span> + <span>1.9</span> + <span>1.10</span> + <span>1.11</span> + <span>1.12</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-05-b-test.html b/layout/reftests/counters/t1202-counters-05-b-test.html new file mode 100644 index 0000000000..335e898a20 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-05-b-test.html @@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", decimal)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + body, #test { counter-reset: c; } + p, #test span { counter-increment: c; } + #test span:before { content: counters(c, ".", decimal); } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-06-b-reference.html b/layout/reftests/counters/t1202-counters-06-b-reference.html new file mode 100644 index 0000000000..7b3af2409f --- /dev/null +++ b/layout/reftests/counters/t1202-counters-06-b-reference.html @@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", decimal-leading-zero)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + </head> + <body> + + <p></p> + + <div> + <span>01.01</span> + <span>02</span> + <span>03</span> + <span>04</span> + <span>05</span> + <span>06</span> + <span>07</span> + <span>08</span> + <span>09</span> + <span>10</span> + <span>11</span> + <span>12</span> + <span>12.99</span> + <span>13</span> + <span>14</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-06-b-test.html b/layout/reftests/counters/t1202-counters-06-b-test.html new file mode 100644 index 0000000000..55f5ba6284 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-06-b-test.html @@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", decimal-leading-zero)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + <style type="text/css"> + + body, #test span:first-child { counter-reset: c; } + p, #test span { counter-increment: c; } + #test span:before { content: counters(c, ".", decimal-leading-zero); } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span style="counter-reset: c 98"></span> + <span></span> + <span></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-07-b-reference.html b/layout/reftests/counters/t1202-counters-07-b-reference.html new file mode 100644 index 0000000000..49713c7344 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-07-b-reference.html @@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", lower-roman)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + </head> + <body> + + <p></p> + + <div> + <span>i.i</span> + <span>ii</span> + <span>iii</span> + <span>iv</span> + <span>v</span> + <span>vi</span> + <span>vii</span> + <span>viii</span> + <span>ix</span> + <span>x</span> + <span>xi</span> + <span>xii</span> + <span>xii.xlix</span> + <span>xiii</span> + <span>xiii.ccclxxxix</span> + <span>xiv</span> + <span>xiv.mmmcdlxxxix</span> + <span>xv</span> + <span>xvi</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-07-b-test.html b/layout/reftests/counters/t1202-counters-07-b-test.html new file mode 100644 index 0000000000..1213eebec2 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-07-b-test.html @@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", lower-roman)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + <style type="text/css"> + + body, #test span:first-child { counter-reset: c; } + p, #test span { counter-increment: c; } + #test span:before { content: counters(c, ".", lower-roman); } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span style="counter-reset: c 48"></span> + <span></span> + <span style="counter-reset: c 388"></span> + <span></span> + <span style="counter-reset: c 3488"></span> + <span></span> + <span></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-08-b-reference.html b/layout/reftests/counters/t1202-counters-08-b-reference.html new file mode 100644 index 0000000000..92a6429164 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-08-b-reference.html @@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", upper-roman)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + </head> + <body> + + <p></p> + + <div> + <span>I.I</span> + <span>II</span> + <span>III</span> + <span>IV</span> + <span>V</span> + <span>VI</span> + <span>VII</span> + <span>VIII</span> + <span>IX</span> + <span>X</span> + <span>XI</span> + <span>XII</span> + <span>XII.XLIX</span> + <span>XIII</span> + <span>XIII.CCCLXXXIX</span> + <span>XIV</span> + <span>XIV.MMMCDLXXXIX</span> + <span>XV</span> + <span>XVI</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-08-b-test.html b/layout/reftests/counters/t1202-counters-08-b-test.html new file mode 100644 index 0000000000..1bbcb28732 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-08-b-test.html @@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", upper-roman)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + <style type="text/css"> + + body, #test span:first-child { counter-reset: c; } + p, #test span { counter-increment: c; } + #test span:before { content: counters(c, ".", upper-roman); } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span style="counter-reset: c 48"></span> + <span></span> + <span style="counter-reset: c 388"></span> + <span></span> + <span style="counter-reset: c 3488"></span> + <span></span> + <span></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-09-b-reference.html b/layout/reftests/counters/t1202-counters-09-b-reference.html new file mode 100644 index 0000000000..928e440ae1 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-09-b-reference.html @@ -0,0 +1,58 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", georgian)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + </head> + <body> + + <p></p> + + <div> + <span>ა.ა</span> + <span>ბ</span> + <span>გ</span> + <span>დ</span> + <span>ე</span> + <span>ვ</span> + <span>ზ</span> + <span>ჱ</span> + <span>თ</span> + <span>ი</span> + <span>ია</span> + <span>იბ</span> + <span>იბ.კ</span> + <span>იბ.ლ</span> + <span>იბ.მ</span> + <span>იბ.ნ</span> + <span>იბ.ჲ</span> + <span>იბ.ო</span> + <span>იბ.პ</span> + <span>იბ.ჟ</span> + <span>იბ.რ</span> + <span>იბ.ს</span> + <span>იბ.ტ</span> + <span>იბ.ჳ</span> + <span>იბ.ფ</span> + <span>იბ.ქ</span> + <span>იბ.ღ</span> + <span>იბ.ყ</span> + <span>იბ.შ</span> + <span>იბ.ჩ</span> + <span>იბ.ც</span> + <span>იბ.ძ</span> + <span>იბ.წ</span> + <span>იბ.ჭ</span> + <span>იბ.ხ</span> + <span>იბ.ჴ</span> + <span>იბ.ჯ</span> + <span>იბ.ჰ</span> + <span>იბ.ჵ</span> + <span>იბ.ჵჰშჟთ</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-09-b-test.html b/layout/reftests/counters/t1202-counters-09-b-test.html new file mode 100644 index 0000000000..fb242b53a3 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-09-b-test.html @@ -0,0 +1,66 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", georgian)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + <style type="text/css"> + + body, #test span:first-child { counter-reset: c; } + p, #test span { counter-increment: c; } + #test span:before { content: counters(c, ".", georgian); } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span style="counter-reset: c 19"></span> + <span style="counter-reset: c 29"></span> + <span style="counter-reset: c 39"></span> + <span style="counter-reset: c 49"></span> + <span style="counter-reset: c 59"></span> + <span style="counter-reset: c 69"></span> + <span style="counter-reset: c 79"></span> + <span style="counter-reset: c 89"></span> + <span style="counter-reset: c 99"></span> + <span style="counter-reset: c 199"></span> + <span style="counter-reset: c 299"></span> + <span style="counter-reset: c 399"></span> + <span style="counter-reset: c 499"></span> + <span style="counter-reset: c 599"></span> + <span style="counter-reset: c 699"></span> + <span style="counter-reset: c 799"></span> + <span style="counter-reset: c 899"></span> + <span style="counter-reset: c 999"></span> + <span style="counter-reset: c 1999"></span> + <span style="counter-reset: c 2999"></span> + <span style="counter-reset: c 3999"></span> + <span style="counter-reset: c 4999"></span> + <span style="counter-reset: c 5999"></span> + <span style="counter-reset: c 6999"></span> + <span style="counter-reset: c 7999"></span> + <span style="counter-reset: c 8999"></span> + <span style="counter-reset: c 9999"></span> + <span style="counter-reset: c 19998"></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-10-b-reference.html b/layout/reftests/counters/t1202-counters-10-b-reference.html new file mode 100644 index 0000000000..f3a3fa6dfa --- /dev/null +++ b/layout/reftests/counters/t1202-counters-10-b-reference.html @@ -0,0 +1,57 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", armenian)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + </head> + <body> + + <p></p> + + <div> + <span>Ա.Ա</span> + <span>Բ</span> + <span>Գ</span> + <span>Դ</span> + <span>Ե</span> + <span>Զ</span> + <span>Է</span> + <span>Ը</span> + <span>Թ</span> + <span>Ժ</span> + <span>ԺԱ</span> + <span>ԺԲ</span> + <span>ԺԲ.Ի</span> + <span>ԺԲ.Լ</span> + <span>ԺԲ.Խ</span> + <span>ԺԲ.Ծ</span> + <span>ԺԲ.Կ</span> + <span>ԺԲ.Հ</span> + <span>ԺԲ.Ձ</span> + <span>ԺԲ.Ղ</span> + <span>ԺԲ.Ճ</span> + <span>ԺԲ.Մ</span> + <span>ԺԲ.Յ</span> + <span>ԺԲ.Ն</span> + <span>ԺԲ.Շ</span> + <span>ԺԲ.Ո</span> + <span>ԺԲ.Չ</span> + <span>ԺԲ.Պ</span> + <span>ԺԲ.Ջ</span> + <span>ԺԲ.Ռ</span> + <span>ԺԲ.Ս</span> + <span>ԺԲ.Վ</span> + <span>ԺԲ.Տ</span> + <span>ԺԲ.Ր</span> + <span>ԺԲ.Ց</span> + <span>ԺԲ.Ւ</span> + <span>ԺԲ.Փ</span> + <span>ԺԲ.Ք</span> + <span>ԺԲ.ՔՋՂԹ</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-10-b-test.html b/layout/reftests/counters/t1202-counters-10-b-test.html new file mode 100644 index 0000000000..5139812fce --- /dev/null +++ b/layout/reftests/counters/t1202-counters-10-b-test.html @@ -0,0 +1,65 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", armenian)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + <style type="text/css"> + + body, #test span:first-child { counter-reset: c; } + p, #test span { counter-increment: c; } + #test span:before { content: counters(c, ".", armenian); } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span style="counter-reset: c 19"></span> + <span style="counter-reset: c 29"></span> + <span style="counter-reset: c 39"></span> + <span style="counter-reset: c 49"></span> + <span style="counter-reset: c 59"></span> + <span style="counter-reset: c 69"></span> + <span style="counter-reset: c 79"></span> + <span style="counter-reset: c 89"></span> + <span style="counter-reset: c 99"></span> + <span style="counter-reset: c 199"></span> + <span style="counter-reset: c 299"></span> + <span style="counter-reset: c 399"></span> + <span style="counter-reset: c 499"></span> + <span style="counter-reset: c 599"></span> + <span style="counter-reset: c 699"></span> + <span style="counter-reset: c 799"></span> + <span style="counter-reset: c 899"></span> + <span style="counter-reset: c 999"></span> + <span style="counter-reset: c 1999"></span> + <span style="counter-reset: c 2999"></span> + <span style="counter-reset: c 3999"></span> + <span style="counter-reset: c 4999"></span> + <span style="counter-reset: c 5999"></span> + <span style="counter-reset: c 6999"></span> + <span style="counter-reset: c 7999"></span> + <span style="counter-reset: c 8999"></span> + <span style="counter-reset: c 9998"></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-11-b-reference.html b/layout/reftests/counters/t1202-counters-11-b-reference.html new file mode 100644 index 0000000000..b46d605f16 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-11-b-reference.html @@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", lower-latin)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + </head> + <body> + + <p></p> + + <div> + <span>a.a</span> + <span>a.b</span> + <span>a.c</span> + <span>a.d</span> + <span>a.e</span> + <span>a.f</span> + <span>a.g</span> + <span>a.h</span> + <span>a.i</span> + <span>a.j</span> + <span>a.k</span> + <span>a.l</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-11-b-test.html b/layout/reftests/counters/t1202-counters-11-b-test.html new file mode 100644 index 0000000000..b1c8ecb25c --- /dev/null +++ b/layout/reftests/counters/t1202-counters-11-b-test.html @@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", lower-latin)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + body, #test { counter-reset: c; } + p, #test span { counter-increment: c; } + #test span:before { content: counters(c, ".", lower-latin); } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-12-b-reference.html b/layout/reftests/counters/t1202-counters-12-b-reference.html new file mode 100644 index 0000000000..14103e0a2a --- /dev/null +++ b/layout/reftests/counters/t1202-counters-12-b-reference.html @@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", lower-alpha)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + </head> + <body> + + <p></p> + + <div> + <span>a.a</span> + <span>a.b</span> + <span>a.c</span> + <span>a.d</span> + <span>a.e</span> + <span>a.f</span> + <span>a.g</span> + <span>a.h</span> + <span>a.i</span> + <span>a.j</span> + <span>a.k</span> + <span>a.l</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-12-b-test.html b/layout/reftests/counters/t1202-counters-12-b-test.html new file mode 100644 index 0000000000..78895530a1 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-12-b-test.html @@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", lower-alpha)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + body, #test { counter-reset: c; } + p, #test span { counter-increment: c; } + #test span:before { content: counters(c, ".", lower-alpha); } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-13-b-reference.html b/layout/reftests/counters/t1202-counters-13-b-reference.html new file mode 100644 index 0000000000..cd6acb9789 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-13-b-reference.html @@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", upper-latin)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + </head> + <body> + + <p></p> + + <div> + <span>A.A</span> + <span>A.B</span> + <span>A.C</span> + <span>A.D</span> + <span>A.E</span> + <span>A.F</span> + <span>A.G</span> + <span>A.H</span> + <span>A.I</span> + <span>A.J</span> + <span>A.K</span> + <span>A.L</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-13-b-test.html b/layout/reftests/counters/t1202-counters-13-b-test.html new file mode 100644 index 0000000000..13205b3d14 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-13-b-test.html @@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", upper-latin)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + body, #test { counter-reset: c; } + p, #test span { counter-increment: c; } + #test span:before { content: counters(c, ".", upper-latin); } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-14-b-reference.html b/layout/reftests/counters/t1202-counters-14-b-reference.html new file mode 100644 index 0000000000..325bb481b6 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-14-b-reference.html @@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", upper-alpha)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + </head> + <body> + + <p></p> + + <div> + <span>A.A</span> + <span>A.B</span> + <span>A.C</span> + <span>A.D</span> + <span>A.E</span> + <span>A.F</span> + <span>A.G</span> + <span>A.H</span> + <span>A.I</span> + <span>A.J</span> + <span>A.K</span> + <span>A.L</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-14-b-test.html b/layout/reftests/counters/t1202-counters-14-b-test.html new file mode 100644 index 0000000000..2760d0cf58 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-14-b-test.html @@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", upper-alpha)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + body, #test { counter-reset: c; } + p, #test span { counter-increment: c; } + #test span:before { content: counters(c, ".", upper-alpha); } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-15-b-reference.html b/layout/reftests/counters/t1202-counters-15-b-reference.html new file mode 100644 index 0000000000..29b8ddc5f7 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-15-b-reference.html @@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", lower-greek)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + </head> + <body> + + <p></p> + + <div> + <span>α.α</span> + <span>α.β</span> + <span>α.γ</span> + <span>α.δ</span> + <span>α.ε</span> + <span>α.ζ</span> + <span>α.η</span> + <span>α.θ</span> + <span>α.ι</span> + <span>α.κ</span> + <span>α.λ</span> + <span>α.μ</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-15-b-test.html b/layout/reftests/counters/t1202-counters-15-b-test.html new file mode 100644 index 0000000000..e7ed9d35c8 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-15-b-test.html @@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters(c, ".", lower-greek)</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + body, #test { counter-reset: c; } + p, #test span { counter-increment: c; } + #test span:before { content: counters(c, ".", lower-greek); } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-16-c-reference.html b/layout/reftests/counters/t1202-counters-16-c-reference.html new file mode 100644 index 0000000000..5e325375b3 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-16-c-reference.html @@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters() string argument</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + </head> + <body> + + <p></p> + + <div><span>1.1</span><span> - </span><span>12</span><span> - </span><span>1.3</span><span>-- --</span><span>1-------3</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-16-c-test.html b/layout/reftests/counters/t1202-counters-16-c-test.html new file mode 100644 index 0000000000..9e8f5d818d --- /dev/null +++ b/layout/reftests/counters/t1202-counters-16-c-test.html @@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters() string argument</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + body, #test { counter-reset: c; } + p, #test span { counter-increment: c; } + + span#one:before { content: counters(c, ".") " - "; } + span#two:before { content: counters(c, "") " - "; } + span#three:before { content: counters(c, ".", decimal) "-- --" counters(c, "-------", decimal); } + + </style> + </head> + <body> + + <p></p> + + <div id="test"><span id="one"></span><span id="two"></span><span id="three"></span></div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-17-d-reference.html b/layout/reftests/counters/t1202-counters-17-d-reference.html new file mode 100644 index 0000000000..0fb9907781 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-17-d-reference.html @@ -0,0 +1,21 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters() string argument</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + div { white-space: pre; } + + </style> + </head> + <body> + + <p></p> + + <div><span>1.1 - </span><span>12 - </span><span>1.3-- --1-------3</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-17-d-test.html b/layout/reftests/counters/t1202-counters-17-d-test.html new file mode 100644 index 0000000000..d7d02bcd45 --- /dev/null +++ b/layout/reftests/counters/t1202-counters-17-d-test.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters() string argument</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + body, #test { counter-reset: c; } + div { white-space: pre; } + p, #test span { counter-increment: c; } + + span#one:before { content: counters(c, ".") " - "; } + span#two:before { content: counters(c, "") " - "; } + span#three:before { content: counters(c, ".", decimal) "-- --" counters(c, "-------", decimal); } + + </style> + </head> + <body> + + <p></p> + + <div id="test"><span id="one"></span><span id="two"></span><span id="three"></span></div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-18-f-reference.html b/layout/reftests/counters/t1202-counters-18-f-reference.html new file mode 100644 index 0000000000..8bd74796fd --- /dev/null +++ b/layout/reftests/counters/t1202-counters-18-f-reference.html @@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters() error cases</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + </head> + <body> + + <p></p> + + <div> + <span>1.1</span> + <span>1.2</span> + <span>1.3</span> + <span>1.4</span> + <span>1.5</span> + <span>1.6</span> + <span>1.7</span> + <span>1.8</span> + <span>1.9</span> + <span>1.10</span> + <span>1.11</span> + <span>1.12</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1202-counters-18-f-test.html b/layout/reftests/counters/t1202-counters-18-f-test.html new file mode 100644 index 0000000000..58d3f24e7a --- /dev/null +++ b/layout/reftests/counters/t1202-counters-18-f-test.html @@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: content: counters() error cases</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> + <style type="text/css"> + + body, #test { counter-reset: c 0 f 1000; } + p, #test span { counter-increment: c; } + #test span:before { + content: counters(c, "."); + content: counters(f); + content: counters(f, decimal); + content: counters(f, decimal, "."); + content: counters(f, ".", decimal, decimal); + content: counters(f, ".", decimal, "."); + } + + </style> + </head> + <body> + + <p></p> + + <div id="test"> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + <span></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1204-implied-00-b-reference.html b/layout/reftests/counters/t1204-implied-00-b-reference.html new file mode 100644 index 0000000000..0aa1d0bf33 --- /dev/null +++ b/layout/reftests/counters/t1204-implied-00-b-reference.html @@ -0,0 +1,15 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Implied counter scopes with no 'counter-increment' or 'counter-reset'</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + </head> + <body> + + + <div><span>0</span><span>0</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-implied-00-b-test.html b/layout/reftests/counters/t1204-implied-00-b-test.html new file mode 100644 index 0000000000..9f2d8a8756 --- /dev/null +++ b/layout/reftests/counters/t1204-implied-00-b-test.html @@ -0,0 +1,21 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Implied counter scopes with no 'counter-increment' or 'counter-reset'</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <style type="text/css"> + + #one:before { content: counter(one) } + #two:before { content: counter(two) } + + </style> + </head> + <body> + + + <div><span id="one"></span><span id="two"></span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-implied-01-c-reference.html b/layout/reftests/counters/t1204-implied-01-c-reference.html new file mode 100644 index 0000000000..92f7b8502e --- /dev/null +++ b/layout/reftests/counters/t1204-implied-01-c-reference.html @@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Implied counter scopes by counter use</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + </head> + <body> + + + + <div><span>0 </span><span>1 </span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-implied-01-c-test.html b/layout/reftests/counters/t1204-implied-01-c-test.html new file mode 100644 index 0000000000..810436da07 --- /dev/null +++ b/layout/reftests/counters/t1204-implied-01-c-test.html @@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Implied counter scopes by counter use</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <style type="text/css"> + + .i { counter-increment: c 1; } + .r { counter-reset: c 0; } + .u:before { content: counters(c, ".") " "; } + + </style> + </head> + <body> + + + <div><span class="u"></span><span class="r"><span class="i u"></span></span></div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1204-implied-02-d-reference.html b/layout/reftests/counters/t1204-implied-02-d-reference.html new file mode 100644 index 0000000000..8bb4bfccda --- /dev/null +++ b/layout/reftests/counters/t1204-implied-02-d-reference.html @@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Implied counter scopes by 'counter-increment'</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + </head> + <body> + + + + <div><span>B</span><span>1 </span><span>0 </span><span>1 </span><span>1.0</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-implied-02-d-test.html b/layout/reftests/counters/t1204-implied-02-d-test.html new file mode 100644 index 0000000000..fda0f50afd --- /dev/null +++ b/layout/reftests/counters/t1204-implied-02-d-test.html @@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Implied counter scopes by 'counter-increment'</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <style type="text/css"> + + .i { counter-increment: c 1; } + .ib:before { counter-increment: c 1; content: "B" } + .r { counter-reset: c 0; } + .u:before { content: counters(c, ".") " "; } + + </style> + </head> + <body> + + + <div><span class="ib"><span class="u"></span><span class="r"><span class="u"></span></span></span><span class="i"><span class="u"></span><span class="r"><span class="u"></span></span></span></div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1204-increment-00-c-o-reference.html b/layout/reftests/counters/t1204-increment-00-c-o-reference.html new file mode 100644 index 0000000000..8676b8c82d --- /dev/null +++ b/layout/reftests/counters/t1204-increment-00-c-o-reference.html @@ -0,0 +1,15 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <meta http-equiv="Content-Script-Type" content="text/javascript"/> + </head> + <body> + + <div id="reference"><span>1-</span><span>2-new-</span><span>3-</span><span>4-</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-increment-00-c-o-test.html b/layout/reftests/counters/t1204-increment-00-c-o-test.html new file mode 100644 index 0000000000..fa2edcff7d --- /dev/null +++ b/layout/reftests/counters/t1204-increment-00-c-o-test.html @@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> + <head> + <title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <meta http-equiv="Content-Script-Type" content="text/javascript"/> + <style type="text/css"> + + #test, .reset { counter-reset: c; } + .increment:before { content: counters(c, ".") "-"; } + .increment { counter-increment: c; } + + </style> + <script type="text/javascript"> + + function run() { + var t = document.getElementById("test"); + var s = document.createElement("span"); + s.setAttribute("class", "increment"); + s.appendChild(document.createTextNode("new-")); + t.insertBefore(s, t.childNodes.item(1)); + document.documentElement.removeAttribute('class'); + } + + document.addEventListener("MozReftestInvalidate", run); + </script> + </head> + <body> + + <div id="test"><span class="increment"></span><span class="increment"></span><span class="increment"></span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-increment-01-c-o-reference.html b/layout/reftests/counters/t1204-increment-01-c-o-reference.html new file mode 100644 index 0000000000..3be209b7e8 --- /dev/null +++ b/layout/reftests/counters/t1204-increment-01-c-o-reference.html @@ -0,0 +1,15 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <meta http-equiv="Content-Script-Type" content="text/javascript"/> + </head> + <body> + + <div id="reference"><span>1-</span><span>2-</span><span>3-</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-increment-01-c-o-test.html b/layout/reftests/counters/t1204-increment-01-c-o-test.html new file mode 100644 index 0000000000..5d5f0493c3 --- /dev/null +++ b/layout/reftests/counters/t1204-increment-01-c-o-test.html @@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> + <head> + <title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <meta http-equiv="Content-Script-Type" content="text/javascript"/> + <style type="text/css"> + + #test, .reset { counter-reset: c; } + .increment:before { content: counters(c, ".") "-"; } + .increment { counter-increment: c; } + + </style> + <script type="text/javascript"> + + function run() { + var t = document.getElementById("test"); + t.removeChild(t.childNodes.item(1)); + document.documentElement.removeAttribute('class'); + } + + document.addEventListener("MozReftestInvalidate", run); + </script> + </head> + <body> + + <div id="test"><span class="increment"></span><span class="increment">FAIL-</span><span class="increment"></span><span class="increment"></span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-increment-02-c-o-reference.html b/layout/reftests/counters/t1204-increment-02-c-o-reference.html new file mode 100644 index 0000000000..348c3267ce --- /dev/null +++ b/layout/reftests/counters/t1204-increment-02-c-o-reference.html @@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + <meta http-equiv="Content-Script-Type" content="text/javascript"/> + </head> + <body> + + <div id="reference"><span>0.1</span><span>-</span><span>0.2</span><span>-</span><span>1</span><span>-</span><span>2</span><span>-</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-increment-02-c-o-test.html b/layout/reftests/counters/t1204-increment-02-c-o-test.html new file mode 100644 index 0000000000..a4327c2839 --- /dev/null +++ b/layout/reftests/counters/t1204-increment-02-c-o-test.html @@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> + <head> + <title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <meta http-equiv="Content-Style-Type" content="text/css"/> + <meta http-equiv="Content-Script-Type" content="text/javascript"/> + <style type="text/css"> + + #test, .reset { counter-reset: c; } + .increment:before, .use:before { content: counters(c, ".") "-"; } + .increment { counter-increment: c; } + + </style> + <script type="text/javascript"> + + function run() { + document.getElementById("one").removeAttribute("class"); + document.getElementById("two").setAttribute("class", "increment"); + document.getElementById("three").setAttribute("style", "counter-increment: c"); + document.documentElement.removeAttribute('class'); + } + + document.addEventListener("MozReftestInvalidate", run); + </script> + </head> + <body> + + <div id="test"><span id="one" class="increment"></span><span><span class="reset"><span class="increment"></span><span id="two" class="increment"></span></span></span><span id="three" class="use"></span><span class="increment"></span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-multiple-00-c-reference.html b/layout/reftests/counters/t1204-multiple-00-c-reference.html new file mode 100644 index 0000000000..b878c754ba --- /dev/null +++ b/layout/reftests/counters/t1204-multiple-00-c-reference.html @@ -0,0 +1,15 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Multiple resets for same counter</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + </head> + <body> + + + <div><span>1</span><span>2</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-multiple-00-c-test.html b/layout/reftests/counters/t1204-multiple-00-c-test.html new file mode 100644 index 0000000000..3415bf92bf --- /dev/null +++ b/layout/reftests/counters/t1204-multiple-00-c-test.html @@ -0,0 +1,21 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Multiple resets for same counter</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <style type="text/css"> + + #one:before { counter-reset: one 1; content: counter(one) } + #two:before { counter-reset: two 7 two 2; content: counter(two) } + + </style> + </head> + <body> + + + <div><span id="one"></span><span id="two"></span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-multiple-01-c-reference.html b/layout/reftests/counters/t1204-multiple-01-c-reference.html new file mode 100644 index 0000000000..e4bc1285f6 --- /dev/null +++ b/layout/reftests/counters/t1204-multiple-01-c-reference.html @@ -0,0 +1,15 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Multiple increments and resets</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + </head> + <body> + + + <div><span>1</span><span>2</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-multiple-01-c-test.html b/layout/reftests/counters/t1204-multiple-01-c-test.html new file mode 100644 index 0000000000..c10c5b4d81 --- /dev/null +++ b/layout/reftests/counters/t1204-multiple-01-c-test.html @@ -0,0 +1,22 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Multiple increments and resets</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <style type="text/css"> + + body { counter-reset: one 7 two -2; } + #one:before { counter-increment: one -6; content: counter(one) } + #two:before { counter-increment: dummy two 7 two two -4 silly 7; content: counter(two) } + + </style> + </head> + <body> + + + <div><span id="one"></span><span id="two"></span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-order-00-c-reference.html b/layout/reftests/counters/t1204-order-00-c-reference.html new file mode 100644 index 0000000000..6478f6ecc0 --- /dev/null +++ b/layout/reftests/counters/t1204-order-00-c-reference.html @@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Order of 'counter-reset', 'counter-increment', and counter use, including pseudo-elements</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + </head> + <body> + + + + <div> + <span>0</span> + <span>1</span> + <span>2</span> + <span>3</span> + <span>4</span> + <span>4</span> + <span>4</span> + <span>4</span> + <span>8</span> + <span>9</span> + <span>10</span> + <span>11</span> + <span>12</span> + <span>12</span> + <span>12</span> + <span>12</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-order-00-c-test.html b/layout/reftests/counters/t1204-order-00-c-test.html new file mode 100644 index 0000000000..8145459001 --- /dev/null +++ b/layout/reftests/counters/t1204-order-00-c-test.html @@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Order of 'counter-reset', 'counter-increment', and counter use, including pseudo-elements</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <style type="text/css"> + + span.c span:before { content: counter(c); } + span.c { counter-reset: c 0; } + span.one { counter-reset: c 1; } + span.two { counter-increment: c 2; } + span.four:before { counter-reset: c 4; } + span.eight:before { counter-increment: c 8; } + span.c span:after { counter-increment: c 100; counter-reset: c 200; } + + </style> + </head> + <body> + + + <div> + <span class="c"><span class=""></span></span> + <span class="c"><span class="one"></span></span> + <span class="c"><span class="two"></span></span> + <span class="c"><span class="two one"></span></span> + <span class="c"><span class="four"></span></span> + <span class="c"><span class="four one"></span></span> + <span class="c"><span class="four two"></span></span> + <span class="c"><span class="four two one"></span></span> + <span class="c"><span class="eight"></span></span> + <span class="c"><span class="eight one"></span></span> + <span class="c"><span class="eight two"></span></span> + <span class="c"><span class="eight two one"></span></span> + <span class="c"><span class="eight four"></span></span> + <span class="c"><span class="eight four one"></span></span> + <span class="c"><span class="eight four two"></span></span> + <span class="c"><span class="eight four two one"></span></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t1204-order-01-d-reference.html b/layout/reftests/counters/t1204-order-01-d-reference.html new file mode 100644 index 0000000000..bd0b5a2d88 --- /dev/null +++ b/layout/reftests/counters/t1204-order-01-d-reference.html @@ -0,0 +1,43 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Order of counters in out-of-flow content</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <style type="text/css"> + + ul { display: block; margin: 0; padding: 0; } + li, div { display: block; margin: 0; padding: 0; + width: 3em; border: thin solid; } + + #four { border: none; } + + #two { float: left; } + #three { position: relative; } + #four { position: relative; } + #four div { position: absolute; left: 8em; } + #six { position: absolute; top: 5em; left: 12em; } + #eight { position: fixed; top: 8em; left: 4em; } + + </style> + </head> + <body> + + <p>The number pairs (same digit repeated twice) "11" through "44" + should appear on this page.</p> + + <ul> + <li id="one"><span>1</span>1</li> + <li id="two"><span>2</span>2</li> + <li id="three"><span>3</span>3</li> + <li id="four"><div><span>4</span>4</div></li> + <li id="five"><span>5</span>5</li> + <li id="six"><span>6</span>6</li> + <li id="seven"><span>7</span>7</li> + <li id="eight"><span>8</span>8</li> + <li id="nine"><span>9</span>9</li> + </ul> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-order-01-d-test.html b/layout/reftests/counters/t1204-order-01-d-test.html new file mode 100644 index 0000000000..9b3f2a82b0 --- /dev/null +++ b/layout/reftests/counters/t1204-order-01-d-test.html @@ -0,0 +1,46 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Order of counters in out-of-flow content</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <style type="text/css"> + + ul { display: block; margin: 0; padding: 0; counter-reset: c; } + li { counter-increment: c; } + li, div { display: block; margin: 0; padding: 0; + width: 3em; border: thin solid; } + li:before, div:before { content: counter(c); } + + #four { border: none; } + #four:before { content: ""; content: none; } + + #two { float: left; } + #three { position: relative; } + #four { position: relative; } + #four div { position: absolute; left: 8em; } + #six { position: absolute; top: 5em; left: 12em; } + #eight { position: fixed; top: 8em; left: 4em; } + + </style> + </head> + <body> + + <p>The number pairs (same digit repeated twice) "11" through "44" + should appear on this page.</p> + + <ul> + <li id="one">1</li> + <li id="two">2</li> + <li id="three">3</li> + <li id="four"><div>4</div></li> + <li id="five">5</li> + <li id="six">6</li> + <li id="seven">7</li> + <li id="eight">8</li> + <li id="nine">9</li> + </ul> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-reset-00-c-o-reference.html b/layout/reftests/counters/t1204-reset-00-c-o-reference.html new file mode 100644 index 0000000000..3be209b7e8 --- /dev/null +++ b/layout/reftests/counters/t1204-reset-00-c-o-reference.html @@ -0,0 +1,15 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <meta http-equiv="Content-Script-Type" content="text/javascript"/> + </head> + <body> + + <div id="reference"><span>1-</span><span>2-</span><span>3-</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-reset-00-c-o-test.html b/layout/reftests/counters/t1204-reset-00-c-o-test.html new file mode 100644 index 0000000000..b6dc6ce7e0 --- /dev/null +++ b/layout/reftests/counters/t1204-reset-00-c-o-test.html @@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> + <head> + <title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <meta http-equiv="Content-Script-Type" content="text/javascript"/> + <style type="text/css"> + + #test, .reset { counter-reset: c; } + .increment:before { content: counters(c, ".") "-"; } + .increment { counter-increment: c; } + + </style> + <script type="text/javascript"> + + function run() { + var t = document.getElementById("test"); + var s = document.createElement("span"); + s.setAttribute("class", "reset"); + t.insertBefore(s, t.childNodes.item(1)); + document.documentElement.removeAttribute('class'); + } + + document.addEventListener("MozReftestInvalidate", run); + </script> + </head> + <body> + + <div id="test"><span class="increment"></span><span class="increment"></span><span class="increment"></span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-reset-01-c-o-reference.html b/layout/reftests/counters/t1204-reset-01-c-o-reference.html new file mode 100644 index 0000000000..3be209b7e8 --- /dev/null +++ b/layout/reftests/counters/t1204-reset-01-c-o-reference.html @@ -0,0 +1,15 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <meta http-equiv="Content-Script-Type" content="text/javascript"/> + </head> + <body> + + <div id="reference"><span>1-</span><span>2-</span><span>3-</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-reset-01-c-o-test.html b/layout/reftests/counters/t1204-reset-01-c-o-test.html new file mode 100644 index 0000000000..e3800332ca --- /dev/null +++ b/layout/reftests/counters/t1204-reset-01-c-o-test.html @@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> + <head> + <title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <meta http-equiv="Content-Script-Type" content="text/javascript"/> + <style type="text/css"> + + #test, .reset { counter-reset: c; } + .increment:before { content: counters(c, ".") "-"; } + .increment { counter-increment: c; } + + </style> + <script type="text/javascript"> + + function run() { + var t = document.getElementById("test"); + t.removeChild(t.childNodes.item(1)); + document.documentElement.removeAttribute('class'); + } + + document.addEventListener("MozReftestInvalidate", run); + </script> + </head> + <body> + + <div id="test"><span class="increment"></span><span class="reset"></span><span class="increment"></span><span class="increment"></span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-reset-02-c-o-reference.html b/layout/reftests/counters/t1204-reset-02-c-o-reference.html new file mode 100644 index 0000000000..a154f70228 --- /dev/null +++ b/layout/reftests/counters/t1204-reset-02-c-o-reference.html @@ -0,0 +1,15 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <meta http-equiv="Content-Script-Type" content="text/javascript"/> + </head> + <body> + + <div id="reference"><span>1</span><span>-</span><span>1.1</span><span>-</span><span>2</span><span>-</span><span>3</span><span>-</span><span>4</span><span>-</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-reset-02-c-o-test.html b/layout/reftests/counters/t1204-reset-02-c-o-test.html new file mode 100644 index 0000000000..8aea7425e2 --- /dev/null +++ b/layout/reftests/counters/t1204-reset-02-c-o-test.html @@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> + <head> + <title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <meta http-equiv="Content-Script-Type" content="text/javascript"/> + <style type="text/css"> + + #test, .reset { counter-reset: c; } + .increment:before { content: counters(c, ".") "-"; } + .increment { counter-increment: c; } + + </style> + <script type="text/javascript"> + + function run() { + document.getElementById("one").setAttribute("class", "reset"); + document.getElementById("two").removeAttribute("class"); + document.documentElement.removeAttribute('class'); + } + + document.addEventListener("MozReftestInvalidate", run); + </script> + </head> + <body> + + <div id="test"><span class="increment"></span><span><span id="one"><span class="increment"></span></span></span><span class="increment"></span><span><span id="two" class="reset"><span class="increment"></span></span></span><span class="increment"></span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-root-e-reference.html b/layout/reftests/counters/t1204-root-e-reference.html new file mode 100644 index 0000000000..3efe27018b --- /dev/null +++ b/layout/reftests/counters/t1204-root-e-reference.html @@ -0,0 +1,18 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: counters on the root element</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + </head> + <body> + + + + <div> + <span>4.8</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t1204-root-e-test.html b/layout/reftests/counters/t1204-root-e-test.html new file mode 100644 index 0000000000..3e7286db6e --- /dev/null +++ b/layout/reftests/counters/t1204-root-e-test.html @@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: counters on the root element</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <style type="text/css"> + + html { counter-reset: c 0 c 4 c 0; counter-increment: c 1 c 3; } + html:before { content: " "; counter-reset: c 9999; counter-increment: c 9999; } + body { counter-reset: c 3; counter-increment: c 5; } + + span.c:before { content: counters(c, "."); } + + </style> + </head> + <body> + + + <div> + <span class="c"></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t120401-scope-00-b-reference.html b/layout/reftests/counters/t120401-scope-00-b-reference.html new file mode 100644 index 0000000000..e1b9eedad5 --- /dev/null +++ b/layout/reftests/counters/t120401-scope-00-b-reference.html @@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Counter scope</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#scope"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + </head> + <body> + + + <div> + <span>1</span><span>2</span><span>2</span><span>1</span><span>1</span><span>1</span> + <span>1</span><span>3</span><span>3</span><span>3</span><span>3</span><span>1</span> + </div> + + </body> +</html> diff --git a/layout/reftests/counters/t120401-scope-00-b-test.html b/layout/reftests/counters/t120401-scope-00-b-test.html new file mode 100644 index 0000000000..da7a6ae1a8 --- /dev/null +++ b/layout/reftests/counters/t120401-scope-00-b-test.html @@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Counter scope</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#scope"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <style type="text/css"> + + .scope { counter-reset: c 1; } + .scope:before, .scope:after { content: counter(c); } + .c:before { content: counter(c); } + + .one:before { counter-reset: c 2; } + .two { counter-reset: c 3; } + + </style> + </head> + <body> + + <div> + <span class="scope"><span class="one c"><span class="c"></span></span><span class="c"></span></span><span class="c"></span> + <span class="scope"><span class="two c"><span class="c"></span></span><span class="c"></span></span><span class="c"></span> + </div> + + + </body> +</html> diff --git a/layout/reftests/counters/t120401-scope-01-c-reference.html b/layout/reftests/counters/t120401-scope-01-c-reference.html new file mode 100644 index 0000000000..021366aaed --- /dev/null +++ b/layout/reftests/counters/t120401-scope-01-c-reference.html @@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Counter scope and nesting on elements</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#scope"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + </head> + <body> + + + <div><span>B</span><span>1</span><span>-</span><span>B</span><span>2</span><span>-</span><span>B</span><span>2.1</span><span>-</span><span>B</span><span>2.2</span><span>-</span><span>A</span><span>2.3</span><span>-</span><span>B</span><span>2.4</span><span>-</span><span>A</span><span>2.5</span><span>-</span><span>A</span><span>2.6</span><span>-</span><span>B</span><span>3</span><span>-</span><span>B</span><span>4</span><span>-</span><span>A</span><span>5</span><span>-</span><span>A</span><span>6</span><span>-</span><span>A</span><span>7</span><span>-</span><span>A</span><span>8</span><span>-</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t120401-scope-01-c-test.html b/layout/reftests/counters/t120401-scope-01-c-test.html new file mode 100644 index 0000000000..1f75f74fbd --- /dev/null +++ b/layout/reftests/counters/t120401-scope-01-c-test.html @@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Counter scope and nesting on elements</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#scope"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <style type="text/css"> + + span:before { counter-increment: c 1; content: "B" counters(c,".") "-" } + span:after { counter-increment: c 1; content: "A" counters(c,".") "-" } + + body, span#reset { counter-reset: c 0; } + + </style> + </head> + <body> + + + <div><span><span><span id="reset"><span></span><span></span></span><span><span></span></span></span></span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t120401-scope-02-c-reference.html b/layout/reftests/counters/t120401-scope-02-c-reference.html new file mode 100644 index 0000000000..41fc79875a --- /dev/null +++ b/layout/reftests/counters/t120401-scope-02-c-reference.html @@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Counter scope and nesting on :before</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#scope"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + </head> + <body> + + + <div><span>B</span><span>1</span><span>-</span><span>B</span><span>1.1</span><span>-</span><span>B</span><span>2</span><span>-</span><span>A</span><span>3</span><span>-</span><span>A</span><span>4</span><span>-</span><span>A</span><span>5</span><span>-</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t120401-scope-02-c-test.html b/layout/reftests/counters/t120401-scope-02-c-test.html new file mode 100644 index 0000000000..40bc787f2a --- /dev/null +++ b/layout/reftests/counters/t120401-scope-02-c-test.html @@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Counter scope and nesting on :before</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#scope"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <style type="text/css"> + + span:before { counter-increment: c 1; content: "B" counters(c,".") "-" } + span:after { counter-increment: c 1; content: "A" counters(c,".") "-" } + + body, span#reset:before { counter-reset: c 0; } + + </style> + </head> + <body> + + + <div><span><span id="reset"><span></span></span></span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t120401-scope-03-c-reference.html b/layout/reftests/counters/t120401-scope-03-c-reference.html new file mode 100644 index 0000000000..e1da0eb565 --- /dev/null +++ b/layout/reftests/counters/t120401-scope-03-c-reference.html @@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Counter scope and nesting on :after</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#scope"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + </head> + <body> + + + <div><span>B</span><span>1</span><span>-</span><span>B</span><span>2</span><span>-</span><span>B</span><span>3</span><span>-</span><span>A</span><span>4</span><span>-</span><span>A</span><span>4.1</span><span>-</span><span>A</span><span>5</span><span>-</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t120401-scope-03-c-test.html b/layout/reftests/counters/t120401-scope-03-c-test.html new file mode 100644 index 0000000000..553207287d --- /dev/null +++ b/layout/reftests/counters/t120401-scope-03-c-test.html @@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Counter scope and nesting on :after</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#scope"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <style type="text/css"> + + span:before { counter-increment: c 1; content: "B" counters(c,".") "-" } + span:after { counter-increment: c 1; content: "A" counters(c,".") "-" } + + body, span#reset:after { counter-reset: c 0; } + + </style> + </head> + <body> + + + <div><span><span id="reset"><span></span></span></span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t120401-scope-04-d-reference.html b/layout/reftests/counters/t120401-scope-04-d-reference.html new file mode 100644 index 0000000000..ff1dba44c5 --- /dev/null +++ b/layout/reftests/counters/t120401-scope-04-d-reference.html @@ -0,0 +1,15 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Counter scope and nesting</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#scope"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + </head> + <body> + + <div><span>1 </span><span>1 </span><span>R</span><span>1.1 </span><span>1.1 </span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t120401-scope-04-d-test.html b/layout/reftests/counters/t120401-scope-04-d-test.html new file mode 100644 index 0000000000..214137ef6b --- /dev/null +++ b/layout/reftests/counters/t120401-scope-04-d-test.html @@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Counter scope and nesting</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#scope"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <style type="text/css"> + + .reset { counter-reset: c; } + .rb:before { counter-reset: c; content: "R"; } + .use { counter-increment: c; } + .use:before { content: counters(c, ".") " "; } + + </style> + </head> + <body> + + <div><span class="reset"></span><span class="use"></span><span class="reset"></span><span class="use"></span><span class="rb"><span class="use"></span><span class="reset"></span><span class="use"></span></span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t120403-content-none-00-c-reference.html b/layout/reftests/counters/t120403-content-none-00-c-reference.html new file mode 100644 index 0000000000..78053a9719 --- /dev/null +++ b/layout/reftests/counters/t120403-content-none-00-c-reference.html @@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Counter properties on 'content: none' pseudo-elements</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#q9"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + </head> + <body> + + + <div><span>0</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t120403-content-none-00-c-test.html b/layout/reftests/counters/t120403-content-none-00-c-test.html new file mode 100644 index 0000000000..6ea67aa07e --- /dev/null +++ b/layout/reftests/counters/t120403-content-none-00-c-test.html @@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Counter properties on 'content: none' pseudo-elements</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#q9"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <style type="text/css"> + + div { counter-reset: c } + #one:before { counter-increment: c } + #two:before { content: counter(c) } + + </style> + </head> + <body> + + + <div><span id="one"></span><span id="two"></span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t120403-display-none-00-c-reference.html b/layout/reftests/counters/t120403-display-none-00-c-reference.html new file mode 100644 index 0000000000..a7ae167c0b --- /dev/null +++ b/layout/reftests/counters/t120403-display-none-00-c-reference.html @@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Counter properties on 'display: none' elements</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#q9"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + </head> + <body> + + + <div><span>0</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t120403-display-none-00-c-test.html b/layout/reftests/counters/t120403-display-none-00-c-test.html new file mode 100644 index 0000000000..33180006df --- /dev/null +++ b/layout/reftests/counters/t120403-display-none-00-c-test.html @@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Counter properties on 'display: none' elements</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#q9"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <style type="text/css"> + + div { counter-reset: c } + #one { display: none; counter-increment: c } + #two:before { content: counter(c) } + + </style> + </head> + <body> + + + <div><span id="one"></span><span id="two"></span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t120403-visibility-00-c-reference.html b/layout/reftests/counters/t120403-visibility-00-c-reference.html new file mode 100644 index 0000000000..99470c1de7 --- /dev/null +++ b/layout/reftests/counters/t120403-visibility-00-c-reference.html @@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Counter properties on 'visibility: hidden' elements</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#q9"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + </head> + <body> + + + <div><span>1</span></div> + + </body> +</html> diff --git a/layout/reftests/counters/t120403-visibility-00-c-test.html b/layout/reftests/counters/t120403-visibility-00-c-test.html new file mode 100644 index 0000000000..9246519d8a --- /dev/null +++ b/layout/reftests/counters/t120403-visibility-00-c-test.html @@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS 2.1 Test Suite: Counter properties on 'visibility: hidden' elements</title> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#q9"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> + <style type="text/css"> + + div { counter-reset: c } + #one { visibility: hidden; counter-increment: c } + #two:before { content: counter(c) } + + </style> + </head> + <body> + + + <div><span id="one"></span><span id="two"></span></div> + + </body> +</html> diff --git a/layout/reftests/counters/text-boundaries-subpixel-ref.html b/layout/reftests/counters/text-boundaries-subpixel-ref.html new file mode 100644 index 0000000000..6c24c588b3 --- /dev/null +++ b/layout/reftests/counters/text-boundaries-subpixel-ref.html @@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Test that inline boundaries don't change subpixel positioning of text</title> + </head> + <body> + + <!-- + Since we changed all the other counters tests to NOT test this, we + should make sure we still test it. + --> + + <p>This is some text with inline elements in it.</p> + <p>This-is-some-text-with-inline-elements-in-it.</p> + + </body> +</html> diff --git a/layout/reftests/counters/text-boundaries-subpixel.html b/layout/reftests/counters/text-boundaries-subpixel.html new file mode 100644 index 0000000000..7117569aa1 --- /dev/null +++ b/layout/reftests/counters/text-boundaries-subpixel.html @@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Test that inline boundaries don't change subpixel positioning of text</title> + </head> + <body> + + <!-- + Since we changed all the other counters tests to NOT test this, we + should make sure we still test it. + --> + + <p>This <span>is </span>some text<span> with </span>inline <span>elements</span> in<span> it</span>.</p> + <p>This-<span>is-</span>some-text<span>-with-</span>inline-<span>elements</span>-in<span>-it</span>.</p> + + </body> +</html> |