Bug 1322527 - Move 'contents' together with the other 'display' values rather than adding dynamically with JS. r=jeremychen
authorMats Palmgren <mats@mozilla.com>
Thu, 08 Dec 2016 12:41:00 -0500
changeset 325607 97ec33ac932242b2bfcadab32a98a743183ebcea
parent 325606 cfc91cb39848376e1a47a16006b0d84028232158
child 325608 ace52a37393160c4ebbce07dfdb77ececfe99272
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersjeremychen
bugs1322527
milestone53.0a1
Bug 1322527 - Move 'contents' together with the other 'display' values rather than adding dynamically with JS. r=jeremychen
layout/style/test/property_database.js
--- a/layout/style/test/property_database.js
+++ b/layout/style/test/property_database.js
@@ -2960,16 +2960,17 @@ var gCSSProperties = {
       "table-column",
       "table-cell",
       "table-caption",
       "ruby",
       "ruby-base",
       "ruby-base-container",
       "ruby-text",
       "ruby-text-container",
+      "contents",
       "none"
     ],
     invalid_values: []
   },
   "empty-cells": {
     domProp: "emptyCells",
     inherited: true,
     type: CSS_TYPE_LONGHAND,
@@ -6720,18 +6721,16 @@ if (IsCSSPropertyPrefEnabled("layout.css
     subproperties: [ "grid-column-gap", "grid-row-gap" ],
     initial_values: [ "0", "0 0" ],
     other_values: [ "1ch 0", "1px 1%", "1em 1px", "calc(1px) calc(1%)" ],
     invalid_values: [ "-1px", "1px -1px", "1px 1px 1px", "inherit 1px",
                       "1px auto" ]
   };
 }
 
-gCSSProperties["display"].other_values.push("contents");
-
 if (IsCSSPropertyPrefEnabled("layout.css.contain.enabled")) {
   gCSSProperties["contain"] = {
     domProp: "contain",
     inherited: false,
     type: CSS_TYPE_LONGHAND,
     initial_values: [ "none" ],
     other_values: [
       "strict",