From 4dae04e594f6662dcfb03fd304494841ca542091 Mon Sep 17 00:00:00 2001 From: athenian200 Date: Fri, 23 Oct 2020 14:34:55 -0500 Subject: Issue #1673 - Part 1: Allow tab-size to accept . Currently -moz-tab-size only accepts values, and both Chrome and Firefox currently support values and have for some time now. So with this you would be able to support sizes in px or em, for instance. This was implemented in Firefox 53 and was trivial to backport. --- layout/style/test/property_database.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'layout/style/test/property_database.js') diff --git a/layout/style/test/property_database.js b/layout/style/test/property_database.js index a7014c043..8624e17dd 100644 --- a/layout/style/test/property_database.js +++ b/layout/style/test/property_database.js @@ -2033,8 +2033,10 @@ var gCSSProperties = { inherited: true, type: CSS_TYPE_LONGHAND, initial_values: [ "8" ], - other_values: [ "0", "3", "99", "12000" ], - invalid_values: [ "-1", "-808", "3.0", "17.5" ] + other_values: [ "0", "2.5", "3", "99", "12000", "0px", "1em", + "calc(1px + 1em)", "calc(1px - 2px)", "calc(1 + 1)", "calc(-2.5)" ], + invalid_values: [ "9%", "calc(9% + 1px)", "calc(1 + 1em)", "-1", "-808", + "auto" ] }, "-moz-text-size-adjust": { domProp: "MozTextSizeAdjust", -- cgit v1.2.3 From 770cb9a4b98947b5508278aeb7532d42fd973cae Mon Sep 17 00:00:00 2001 From: athenian200 Date: Tue, 27 Oct 2020 20:37:50 -0500 Subject: Issue #1673 - Part 4: Unprefix -moz-tab-size. While we do fail a couple of tests, the other mainstream browsers also fail them and I think our implementation of tab-size is good enough to be unprefixed at this point. Having this patch also makes testing easier. --- layout/style/test/property_database.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'layout/style/test/property_database.js') diff --git a/layout/style/test/property_database.js b/layout/style/test/property_database.js index 8624e17dd..6b1ef5602 100644 --- a/layout/style/test/property_database.js +++ b/layout/style/test/property_database.js @@ -2028,8 +2028,8 @@ var gCSSProperties = { other_values: [ "ignore" ], invalid_values: [] }, - "-moz-tab-size": { - domProp: "MozTabSize", + "tab-size": { + domProp: "TabSize", inherited: true, type: CSS_TYPE_LONGHAND, initial_values: [ "8" ], @@ -2038,6 +2038,13 @@ var gCSSProperties = { invalid_values: [ "9%", "calc(9% + 1px)", "calc(1 + 1em)", "-1", "-808", "auto" ] }, + "-moz-tab-size": { + domProp: "MozTabSize", + inherited: true, + type: CSS_TYPE_SHORTHAND_AND_LONGHAND + alias_for: "tab-size", + subproperties: [ "tab-size" ] + }, "-moz-text-size-adjust": { domProp: "MozTextSizeAdjust", inherited: true, -- cgit v1.2.3