From 400672e2a6c02ec357db4b45b5104990577a9b99 Mon Sep 17 00:00:00 2001 From: "janc%netscape.com" Date: Wed, 18 Nov 1998 01:53:02 +0000 Subject: [PATCH] New CSS Parser test. git-svn-id: svn://10.0.0.236/trunk@14837 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/tests/css/max-height.css | 25 ++++++++++++++++++++ mozilla/layout/html/tests/css/max-width.css | 25 ++++++++++++++++++++ mozilla/layout/html/tests/css/min-height.css | 25 ++++++++++++++++++++ mozilla/layout/html/tests/css/min-width.css | 25 ++++++++++++++++++++ 4 files changed, 100 insertions(+) create mode 100644 mozilla/layout/html/tests/css/max-height.css create mode 100644 mozilla/layout/html/tests/css/max-width.css create mode 100644 mozilla/layout/html/tests/css/min-height.css create mode 100644 mozilla/layout/html/tests/css/min-width.css diff --git a/mozilla/layout/html/tests/css/max-height.css b/mozilla/layout/html/tests/css/max-height.css new file mode 100644 index 00000000000..29841fea309 --- /dev/null +++ b/mozilla/layout/html/tests/css/max-height.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 :before { max-height: 3em } +GOOD :before { max-height: 15%; } +GOOD :before { max-height: none } +GOOD :before { max-height: inherit; } +BAD { max-height: babushka } +BAD { max-height: auto; } +BAD { max-height: 4px 4px; } diff --git a/mozilla/layout/html/tests/css/max-width.css b/mozilla/layout/html/tests/css/max-width.css new file mode 100644 index 00000000000..d016c935fb8 --- /dev/null +++ b/mozilla/layout/html/tests/css/max-width.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 :before { max-width: 10px } +GOOD :before { max-width: 15%; } +GOOD :before { max-width: none } +GOOD :before { max-width: inherit; } +BAD { max-width: babushka } +BAD { max-width: auto; } +BAD { max-width: 1in 1in; } diff --git a/mozilla/layout/html/tests/css/min-height.css b/mozilla/layout/html/tests/css/min-height.css new file mode 100644 index 00000000000..55cfb5e82eb --- /dev/null +++ b/mozilla/layout/html/tests/css/min-height.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 :before { min-height: 5pc } +GOOD :before { min-height: 15%; } +GOOD :before { min-height: none } +GOOD :before { min-height: inherit; } +BAD { min-height: babushka } +BAD { min-height: auto; } +BAD { min-height: 4px 10mm; } diff --git a/mozilla/layout/html/tests/css/min-width.css b/mozilla/layout/html/tests/css/min-width.css new file mode 100644 index 00000000000..3b98d29737c --- /dev/null +++ b/mozilla/layout/html/tests/css/min-width.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 :before { max-width: 5ex } +GOOD :before { max-width: 15%; } +GOOD :before { max-width: none } +GOOD :before { max-width: inherit; } +BAD { max-width: babushka } +BAD { max-width: auto; } +BAD { max-width: 5cm .5in; }