summaryrefslogtreecommitdiff
path: root/layout/style/test/property_database.js
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2022-04-07 01:07:24 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2022-04-07 18:35:51 +0800
commitacf30bc5f4cd2dd1c3e01a38b1a766375d97fa01 (patch)
tree3375d67bb585ef094a3cdf7156ee139d72e9398d /layout/style/test/property_database.js
parentca38eaca7095efaf4bb4643d04fc3f18e705e9c0 (diff)
downloaduxp-acf30bc5f4cd2dd1c3e01a38b1a766375d97fa01.tar.gz
Issue #1370 - Part 6: Update tests
Diffstat (limited to 'layout/style/test/property_database.js')
-rw-r--r--layout/style/test/property_database.js20
1 files changed, 14 insertions, 6 deletions
diff --git a/layout/style/test/property_database.js b/layout/style/test/property_database.js
index e3e719771b..5c6e2f6d86 100644
--- a/layout/style/test/property_database.js
+++ b/layout/style/test/property_database.js
@@ -4130,6 +4130,8 @@ var gCSSProperties = {
"calc(50px/(2 - 1))",
],
invalid_values: [ "none", "-2px",
+ /* invalid for width but not flex-basis */
+ "content",
/* invalid -moz-calc() values */
"-moz-calc(50%+ 2px)",
"-moz-calc(50% +2px)",
@@ -4645,12 +4647,18 @@ var gCSSProperties = {
inherited: false,
type: CSS_TYPE_LONGHAND,
initial_values: [ " auto" ],
- // NOTE: This is cribbed directly from the "width" chunk, since this
- // property takes the exact same values as width (albeit with
- // different semantics on 'auto').
- // XXXdholbert (Maybe these should get separated out into
- // a reusable array defined at the top of this file?)
- other_values: [ "15px", "3em", "15%", "-moz-max-content", "-moz-min-content", "-moz-fit-content", "-moz-available",
+ // NOTE: Besides "content", this is cribbed directly from the "width"
+ // chunk, since this property takes the exact same values as width
+ // (plus 'content' & with different semantics on 'auto').
+ other_values: [
+ "15px",
+ "3em",
+ "15%",
+ "-moz-max-content",
+ "-moz-min-content",
+ "-moz-fit-content",
+ "-moz-available",
+ "content",
// valid calc() values
"calc(-2px)",
"calc(2px)",