From a0aa872111376b85e7d748ca6e098c6ef51ec25c Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Thu, 15 Oct 2015 11:19:22 +0200 Subject: Add a few new properties dealing with text and transforms. (bzr r14414) --- share/attributes/genMapDataCSS.pl | 40 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) (limited to 'share/attributes/genMapDataCSS.pl') diff --git a/share/attributes/genMapDataCSS.pl b/share/attributes/genMapDataCSS.pl index 438c26d04..380942794 100755 --- a/share/attributes/genMapDataCSS.pl +++ b/share/attributes/genMapDataCSS.pl @@ -223,8 +223,8 @@ $properties{ "text-decoration-color" }->{inherit} = "no"; push @{$properties{ "text-decoration-style" }->{elements}}, @container_elements; push @{$properties{ "text-decoration-style" }->{elements}}, @text_content_elements; -$properties{ "text-decoration-color" }->{default} = "solid"; -$properties{ "text-decoration-color" }->{inherit} = "no"; +$properties{ "text-decoration-style" }->{default} = "solid"; +$properties{ "text-decoration-style" }->{inherit} = "no"; push @{$properties{ "text-decoration-fill" }->{elements}}, @container_elements; push @{$properties{ "text-decoration-fill" }->{elements}}, @text_content_elements; @@ -236,6 +236,42 @@ push @{$properties{ "text-decoration-stroke" }->{elements}}, @text_content_eleme $properties{ "text-decoration-stroke" }->{default} = "NO_DEFAULT"; $properties{ "text-decoration-stroke" }->{inherit} = "no"; +# CSS Writing Modes +push @{$properties{ "text-orientation" }->{elements}}, @container_elements; +push @{$properties{ "text-orientation" }->{elements}}, @text_content_elements; +$properties{ "text-orientation" }->{default} = "mixed"; +$properties{ "text-orientation" }->{inherit} = "yes"; + +# CSS Transformations +push @{$properties{ "transform" }->{elements}}, @container_elements; +push @{$properties{ "transform" }->{elements}}, @graphics_elements; +$properties{ "transform" }->{default} = "none"; +$properties{ "transform" }->{inherit} = "no"; + +push @{$properties{ "transform-origin" }->{elements}}, @container_elements; +push @{$properties{ "transform-origin" }->{elements}}, @graphics_elements; +$properties{ "transform-origin" }->{default} = "NO_DEFAULT"; # Default is complicated +$properties{ "transform-origin" }->{inherit} = "no"; + +push @{$properties{ "transform-style" }->{elements}}, @container_elements; +push @{$properties{ "transform-style" }->{elements}}, @graphics_elements; +$properties{ "transform-style" }->{default} = "flat"; +$properties{ "transform-style" }->{inherit} = "no"; + +push @{$properties{ "perspective" }->{elements}}, @container_elements; +push @{$properties{ "perspective" }->{elements}}, @graphics_elements; +$properties{ "perspective" }->{default} = "none"; +$properties{ "perspective" }->{inherit} = "no"; + +push @{$properties{ "perspective-origin" }->{elements}}, @container_elements; +push @{$properties{ "perspective-origin" }->{elements}}, @graphics_elements; +$properties{ "perspective-origin" }->{default} = "NO_DEFAULT"; # Default is complicated +$properties{ "perspective-origin" }->{inherit} = "no"; + +push @{$properties{ "backface-visibility" }->{elements}}, @container_elements; +push @{$properties{ "backface-visibility" }->{elements}}, @graphics_elements; +$properties{ "backface-visibility" }->{default} = "visible"; +$properties{ "backface-visibility" }->{inherit} = "no"; # Output -- cgit v1.2.3 From 7955f779344953ea99a7cf0cb3a7982e06709364 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Thu, 15 Oct 2015 11:30:51 +0200 Subject: Add 'transform-box' to CSS properties. (bzr r14415) --- share/attributes/genMapDataCSS.pl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'share/attributes/genMapDataCSS.pl') diff --git a/share/attributes/genMapDataCSS.pl b/share/attributes/genMapDataCSS.pl index 380942794..0d6e5c13d 100755 --- a/share/attributes/genMapDataCSS.pl +++ b/share/attributes/genMapDataCSS.pl @@ -248,6 +248,11 @@ push @{$properties{ "transform" }->{elements}}, @graphics_elements; $properties{ "transform" }->{default} = "none"; $properties{ "transform" }->{inherit} = "no"; +push @{$properties{ "transform-box" }->{elements}}, @container_elements; +push @{$properties{ "transform-box" }->{elements}}, @graphics_elements; +$properties{ "transform-box" }->{default} = "NO_DEFAULT"; # Default no 100% fixed. +$properties{ "transform-box" }->{inherit} = "no"; + push @{$properties{ "transform-origin" }->{elements}}, @container_elements; push @{$properties{ "transform-origin" }->{elements}}, @graphics_elements; $properties{ "transform-origin" }->{default} = "NO_DEFAULT"; # Default is complicated -- cgit v1.2.3 From 947e19464e621348fc41c9fd359d17a894d09253 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Wed, 2 Dec 2015 17:35:33 +0100 Subject: Add some SVG2 text properties to tables. (bzr r14500) --- share/attributes/genMapDataCSS.pl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'share/attributes/genMapDataCSS.pl') diff --git a/share/attributes/genMapDataCSS.pl b/share/attributes/genMapDataCSS.pl index 0d6e5c13d..f5f14e1e6 100755 --- a/share/attributes/genMapDataCSS.pl +++ b/share/attributes/genMapDataCSS.pl @@ -210,6 +210,28 @@ push @{$properties{ "solid-opacity" }->{elements}}, @graphics_elements; $properties{ "solid-opacity" }->{default} = "1.0"; $properties{ "solid-opacity" }->{inherit} = "no"; +push @{$properties{ "white-space" }->{elements}}, @container_elements; +push @{$properties{ "white-space" }->{elements}}, @text_content_elements; +$properties{ "white-space" }->{default} = "normal"; +$properties{ "white-space" }->{inherit} = "yes"; + +push @{$properties{ "shape-inside" }->{elements}}, @text_content_elements; +$properties{ "shape-inside" }->{default} = "auto"; +$properties{ "shape-inside" }->{inherit} = "no"; + +push @{$properties{ "shape-outside" }->{elements}}, @text_content_elements; +$properties{ "shape-outside" }->{default} = "auto"; +$properties{ "shape-outside" }->{inherit} = "no"; + +push @{$properties{ "shape-padding" }->{elements}}, @text_content_elements; +$properties{ "shape-padding" }->{default} = "none"; +$properties{ "shape-padding" }->{inherit} = "no"; + +push @{$properties{ "shape-margin" }->{elements}}, @text_content_elements; +$properties{ "shape-margin" }->{default} = "0"; +$properties{ "shape-margin" }->{inherit} = "no"; + + # CSS Text Decoration push @{$properties{ "text-decoration-line" }->{elements}}, @container_elements; push @{$properties{ "text-decoration-line" }->{elements}}, @text_content_elements; -- cgit v1.2.3