From 0cf10a040aea028c7dc81cf353da7a7af5331076 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 15 Mar 2021 16:56:59 +0000 Subject: Units: Remove units that nobody supports. --- test/data/parse2/units.dat | 24 ------------------------ test/data/select/tests1.dat | 12 ++++++------ test/dump.h | 9 --------- test/dump_computed.h | 9 --------- 4 files changed, 6 insertions(+), 48 deletions(-) (limited to 'test') diff --git a/test/data/parse2/units.dat b/test/data/parse2/units.dat index 1052dc5..800df75 100644 --- a/test/data/parse2/units.dat +++ b/test/data/parse2/units.dat @@ -69,14 +69,6 @@ | width: 10pc #reset -#data -* { width: 10cap; } -#errors -#expected -| * -| width: 10cap -#reset - #data * { width: 10ch; } #errors @@ -85,14 +77,6 @@ | width: 10ch #reset -#data -* { width: 10ic; } -#errors -#expected -| * -| width: 10ic -#reset - #data * { width: 10rem; } #errors @@ -109,14 +93,6 @@ | width: 10lh #reset -#data -* { width: 10rlh; } -#errors -#expected -| * -| width: 10rlh -#reset - #data * { width: 10vh; } #errors diff --git a/test/data/select/tests1.dat b/test/data/select/tests1.dat index 1a91e82..eaf37d7 100644 --- a/test/data/select/tests1.dat +++ b/test/data/select/tests1.dat @@ -12419,7 +12419,7 @@ z-index: auto #tree | div* #ua -div { width: 10cap; } +div { width: 10em; } #errors #expected align-content: stretch @@ -12519,7 +12519,7 @@ unicode-bidi: normal vertical-align: baseline visibility: visible white-space: normal -width: 10cap +width: 10em word-spacing: normal writing-mode: horizontal-tb z-index: auto @@ -12637,7 +12637,7 @@ z-index: auto #tree | div* #ua -div { width: 10ic; } +div { width: 10ch; } #errors #expected align-content: stretch @@ -12737,7 +12737,7 @@ unicode-bidi: normal vertical-align: baseline visibility: visible white-space: normal -width: 10ic +width: 10ch word-spacing: normal writing-mode: horizontal-tb z-index: auto @@ -12964,7 +12964,7 @@ z-index: auto #tree | div* #ua -div { width: 10rlh; } +div { width: 10rem; } #errors #expected align-content: stretch @@ -13064,7 +13064,7 @@ unicode-bidi: normal vertical-align: baseline visibility: visible white-space: normal -width: 10rlh +width: 10rem word-spacing: normal writing-mode: horizontal-tb z-index: auto diff --git a/test/dump.h b/test/dump.h index d67bb2a..79819e0 100644 --- a/test/dump.h +++ b/test/dump.h @@ -584,24 +584,15 @@ static void dump_unit(css_fixed val, uint32_t unit, char **ptr) case UNIT_PC: *ptr += sprintf(*ptr, "pc"); break; - case UNIT_CAP: - *ptr += sprintf(*ptr, "cap"); - break; case UNIT_CH: *ptr += sprintf(*ptr, "ch"); break; - case UNIT_IC: - *ptr += sprintf(*ptr, "ic"); - break; case UNIT_REM: *ptr += sprintf(*ptr, "rem"); break; case UNIT_LH: *ptr += sprintf(*ptr, "lh"); break; - case UNIT_RLH: - *ptr += sprintf(*ptr, "rlh"); - break; case UNIT_VH: *ptr += sprintf(*ptr, "vh"); break; diff --git a/test/dump_computed.h b/test/dump_computed.h index b0c8bda..8ac6424 100644 --- a/test/dump_computed.h +++ b/test/dump_computed.h @@ -105,24 +105,15 @@ static size_t dump_css_unit(css_fixed val, css_unit unit, char *ptr, size_t len) case CSS_UNIT_PC: ret += snprintf(ptr + ret, len - ret, "pc"); break; - case CSS_UNIT_CAP: - ret += snprintf(ptr + ret, len - ret, "cap"); - break; case CSS_UNIT_CH: ret += snprintf(ptr + ret, len - ret, "ch"); break; - case CSS_UNIT_IC: - ret += snprintf(ptr + ret, len - ret, "ic"); - break; case CSS_UNIT_REM: ret += snprintf(ptr + ret, len - ret, "rem"); break; case CSS_UNIT_LH: ret += snprintf(ptr + ret, len - ret, "lh"); break; - case CSS_UNIT_RLH: - ret += snprintf(ptr + ret, len - ret, "rlh"); - break; case CSS_UNIT_VH: ret += snprintf(ptr + ret, len - ret, "vh"); break; -- cgit v1.2.1