diff options
author | Michael Drake <Michael Drake tlsa@netsurf-browser.org> | 2019-05-12 16:17:12 +0100 |
---|---|---|
committer | Michael Drake <Michael Drake tlsa@netsurf-browser.org> | 2019-05-12 16:23:27 +0100 |
commit | 4989d72549b53f751d2999a771e0bc6737015810 (patch) | |
tree | 744c15bc5403563cc11be3ad1af94a2447b523f2 /src/select/select_config.py | |
parent | d09f33131b8079f3886e0827cf458e1fc2c7f2d6 (diff) | |
download | libcss-4989d72549b53f751d2999a771e0bc6737015810.tar.gz libcss-4989d72549b53f751d2999a771e0bc6737015810.tar.bz2 |
Computed styles: Drop uncommon extension blocks.
They were a space saving feature, but they became largely
redundant with computed style sharing. They also made the
code complex and buggy in many places. E.g. the cascade,
inheritance / composition, and intial values all needed to
behave corretly when they, or their parent, had or didn't
have an uncommon block.
Also, only the uncommon block was really used.
Fixes:
https://bugs.netsurf-browser.org/mantis/view.php?id=2641
Diffstat (limited to 'src/select/select_config.py')
-rw-r--r-- | src/select/select_config.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/select/select_config.py b/src/select/select_config.py index a543542..8845814 100644 --- a/src/select/select_config.py +++ b/src/select/select_config.py @@ -110,10 +110,7 @@ style = { 'blank entry.'), ('quotes', 1, 'string_arr', None, None, 'Encode quotes as an array of string objects, terminated with a ' - 'blank entry.') -} - -page = { + 'blank entry.'), # Page group ('page_break_after', 3, None, None, 'CSS_PAGE_BREAK_AFTER_AUTO'), ('page_break_before', 3, None, None, 'CSS_PAGE_BREAK_BEFORE_AUTO'), @@ -121,10 +118,7 @@ page = { ('widows', 1, (('integer', '2'),), None, 'CSS_WIDOWS_SET'), ('orphans', 1, (('integer', '2'),), None, - 'CSS_ORPHANS_SET') -} - -uncommon = { + 'CSS_ORPHANS_SET'), # Uncommon group ('border_spacing', 1, (('length',), ('length',)), 'CSS_BORDER_SPACING_SET', 'CSS_BORDER_SPACING_SET'), @@ -170,7 +164,5 @@ uncommon = { } groups = [ - { 'name': 'uncommon', 'props': uncommon }, - { 'name': 'page', 'props': page }, { 'name': 'style', 'props': style } ] |