From ef3968a96784ee088fede194de27866682b31b95 Mon Sep 17 00:00:00 2001 From: "janc%netscape.com" Date: Wed, 18 Nov 1998 00:58:49 +0000 Subject: [PATCH] New CSS Parser test git-svn-id: svn://10.0.0.236/trunk@14829 18797224-902f-48f8-a5cc-f745e15eee43 --- .../html/tests/css/counter-increment.css | 28 +++++++++++++++ .../layout/html/tests/css/counter-reset.css | 28 +++++++++++++++ mozilla/layout/html/tests/css/cue-after.css | 25 +++++++++++++ mozilla/layout/html/tests/css/cue-before.css | 25 +++++++++++++ mozilla/layout/html/tests/css/cue.css | 28 +++++++++++++++ mozilla/layout/html/tests/css/elevation.css | 36 +++++++++++++++++++ mozilla/layout/html/tests/css/empty-cells.css | 26 ++++++++++++++ .../html/tests/css/font-size-adjust.css | 34 ++++++++++++++++++ .../layout/html/tests/css/font-stretch.css | 34 ++++++++++++++++++ 9 files changed, 264 insertions(+) create mode 100644 mozilla/layout/html/tests/css/counter-increment.css create mode 100644 mozilla/layout/html/tests/css/counter-reset.css create mode 100644 mozilla/layout/html/tests/css/cue-after.css create mode 100644 mozilla/layout/html/tests/css/cue-before.css create mode 100644 mozilla/layout/html/tests/css/cue.css create mode 100644 mozilla/layout/html/tests/css/elevation.css create mode 100644 mozilla/layout/html/tests/css/empty-cells.css create mode 100644 mozilla/layout/html/tests/css/font-size-adjust.css create mode 100644 mozilla/layout/html/tests/css/font-stretch.css diff --git a/mozilla/layout/html/tests/css/counter-increment.css b/mozilla/layout/html/tests/css/counter-increment.css new file mode 100644 index 00000000000..133d18bf310 --- /dev/null +++ b/mozilla/layout/html/tests/css/counter-increment.css @@ -0,0 +1,28 @@ +/* + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. + * + * The Initial Developer of this code under the NPL is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. + */ + + + +GOOD { counter-increment: inherit } +GOOD { counter-increment: none; } +GOOD { counter-increment: rabbit; } +GOOD { counter-increment: rabbit 1; } +GOOD { counter-increment: rabbit 942 } +GOOD { counter-increment: rabbit -12; } +GOOD { counter-increment: rabbit 0 } +BAD { counter-increment: none to inherit } +BAD { counter-increment: cooler 4 5 -1; } diff --git a/mozilla/layout/html/tests/css/counter-reset.css b/mozilla/layout/html/tests/css/counter-reset.css new file mode 100644 index 00000000000..0b868df6908 --- /dev/null +++ b/mozilla/layout/html/tests/css/counter-reset.css @@ -0,0 +1,28 @@ +/* + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. + * + * The Initial Developer of this code under the NPL is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. + */ + + + +GOOD { counter-reset: inherit } +GOOD { counter-reset: none; } +GOOD { counter-reset: rabbit; } +GOOD { counter-reset: rabbit 1; } +GOOD { counter-reset: rabbit 942 } +GOOD { counter-reset: rabbit -12; } +GOOD { counter-reset: rabbit 0 } +BAD { counter-reset: none to inherit } +BAD { counter-reset: cooler 4 5 -1; } diff --git a/mozilla/layout/html/tests/css/cue-after.css b/mozilla/layout/html/tests/css/cue-after.css new file mode 100644 index 00000000000..45d26893c10 --- /dev/null +++ b/mozilla/layout/html/tests/css/cue-after.css @@ -0,0 +1,25 @@ +/* + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. + * + * The Initial Developer of this code under the NPL is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. + */ + + + +GOOD { cue-after: inherit } +GOOD { cue-after: url("pop.au") } +GOOD { cue-after: none } +BAD { cue-after: inherited } +BAD { cue-after: url("zip.aiff") url("bang.wav") url("bang.wav") } + diff --git a/mozilla/layout/html/tests/css/cue-before.css b/mozilla/layout/html/tests/css/cue-before.css new file mode 100644 index 00000000000..772ec823a59 --- /dev/null +++ b/mozilla/layout/html/tests/css/cue-before.css @@ -0,0 +1,25 @@ +/* + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. + * + * The Initial Developer of this code under the NPL is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. + */ + + + +GOOD { cue-before: inherit } +GOOD { cue-before: url("pop.au") } +GOOD { cue-before: none } +BAD { cue-before: inherited } +BAD { cue-before: url("zip.aiff") url("bang.wav") url("bang.wav") } + diff --git a/mozilla/layout/html/tests/css/cue.css b/mozilla/layout/html/tests/css/cue.css new file mode 100644 index 00000000000..ff85d61e39e --- /dev/null +++ b/mozilla/layout/html/tests/css/cue.css @@ -0,0 +1,28 @@ +/* + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. + * + * The Initial Developer of this code under the NPL is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. + */ + + + +GOOD { cue: inherit } +GOOD { cue: url("pop.au") } +GOOD { cue: url("zip.aiff") url("bang.wav") } +GOOD { cue: none url("bang.wav") } +GOOD { cue: none inherit } +GOOD { cue: url("zip.aiff") url("bang.wav") } +BAD { cue: inherited } +BAD { cue: url("zip.aiff") url("bang.wav") url("bang.wav") } + diff --git a/mozilla/layout/html/tests/css/elevation.css b/mozilla/layout/html/tests/css/elevation.css new file mode 100644 index 00000000000..9024a65ccd0 --- /dev/null +++ b/mozilla/layout/html/tests/css/elevation.css @@ -0,0 +1,36 @@ +/* + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. + * + * The Initial Developer of this code under the NPL is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. + */ + + + +GOOD { elevation: -90deg } +GOOD { elevation: 90deg } +GOOD { elevation: 0deg } +GOOD { elevation: 16deg } +GOOD { elevation: inherit } +GOOD { elevation: below; } +GOOD { elevation: level } +GOOD { elevation: above; } +GOOD { elevation: higher } +GOOD { elevation: lower } +BAD { elevation: inherited } +BAD { elevation: above below; } +BAD { elevation: duck below; } +BAD { elevation: center; } +BAD { elevation: align=right; } +BAD { elevation: 90deg right; } + diff --git a/mozilla/layout/html/tests/css/empty-cells.css b/mozilla/layout/html/tests/css/empty-cells.css new file mode 100644 index 00000000000..dc51a436d46 --- /dev/null +++ b/mozilla/layout/html/tests/css/empty-cells.css @@ -0,0 +1,26 @@ +/* + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. + * + * The Initial Developer of this code under the NPL is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. + */ + + + +GOOD { empty-cells: show } +GOOD { empty-cells: hide } +GOOD { empty-cells: inherit } +BAD { empty-cells: inherited } +BAD { empty-cells: show hide; } +BAD { empty-cells: hidden; } +BAD { empty-cells: none; } \ No newline at end of file diff --git a/mozilla/layout/html/tests/css/font-size-adjust.css b/mozilla/layout/html/tests/css/font-size-adjust.css new file mode 100644 index 00000000000..0c1447426bb --- /dev/null +++ b/mozilla/layout/html/tests/css/font-size-adjust.css @@ -0,0 +1,34 @@ +/* + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. + * + * The Initial Developer of this code under the NPL is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. + */ + + + +GOOD { font-size-adjust: 0 } +GOOD { font-size-adjust: 126 } +GOOD { font-size-adjust: .1 } +GOOD { font-size-adjust: 0.556} +GOOD { font-size-adjust: 57.0 } +GOOD { font-size-adjust: +7 } +GOOD { font-size-adjust: -126} +GOOD { font-size-adjust: -.1} +GOOD { font-size-adjust: -0.556} +GOOD { font-size-adjust: -57.0 } +GOOD { font-size-adjust: none; } +GOOD { font-size-adjust: inherit; } +BAD { font-size-adjust: inherited } +BAD { font-size-adjust: 12 none; } +BAD { font-size-adjust: four; } diff --git a/mozilla/layout/html/tests/css/font-stretch.css b/mozilla/layout/html/tests/css/font-stretch.css new file mode 100644 index 00000000000..cffc15b89ea --- /dev/null +++ b/mozilla/layout/html/tests/css/font-stretch.css @@ -0,0 +1,34 @@ +/* + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. + * + * The Initial Developer of this code under the NPL is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. + */ + + + +GOOD { font-stretch: normal } +GOOD { font-stretch: wider } +GOOD { font-stretch: narrower } +GOOD { font-stretch: ultra-condensed } +GOOD { font-stretch: extra-condensed } +GOOD { font-stretch: condensed } +GOOD { font-stretch: semi-condensed } +GOOD { font-stretch: semi-expanded } +GOOD { font-stretch: expanded } +GOOD { font-stretch: extra-expanded } +GOOD { font-stretch: ultra-expanded } +GOOD { font-stretch: inherit; } +BAD { font-stretch: none } +BAD { font-stretch: widest; } +BAD { font-stretch: ultra-condensed expanded; }