diff options
| author | Simen Heggestøyl | 2018-11-11 15:18:53 +0100 |
|---|---|---|
| committer | Simen Heggestøyl | 2018-11-11 18:57:39 +0100 |
| commit | 2523ac9fa3ea01f34f7a2b55e19b9dcd5506c232 (patch) | |
| tree | 0dc0c01489a14d0d9e782afd85df3b50e7d90ca5 | |
| parent | a004d3bbbae6abb033ed7d244252d04911f5c6fd (diff) | |
| download | emacs-2523ac9fa3ea01f34f7a2b55e19b9dcd5506c232.tar.gz emacs-2523ac9fa3ea01f34f7a2b55e19b9dcd5506c232.zip | |
Add masking module to CSS property list
* lisp/textmodes/css-mode.el (css-property-alist)
(css-value-class-alist): Add properties and value classes from CSS
Masking Module.
| -rw-r--r-- | lisp/textmodes/css-mode.el | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 63c86317ee1..2de6455a6ab 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el | |||
| @@ -112,7 +112,6 @@ | |||
| 112 | ("bottom" length percentage "auto") | 112 | ("bottom" length percentage "auto") |
| 113 | ("caption-side" "top" "bottom") | 113 | ("caption-side" "top" "bottom") |
| 114 | ("clear" "none" "left" "right" "both") | 114 | ("clear" "none" "left" "right" "both") |
| 115 | ("clip" shape "auto") | ||
| 116 | ("content" "normal" "none" string uri counter "attr()" | 115 | ("content" "normal" "none" string uri counter "attr()" |
| 117 | "open-quote" "close-quote" "no-open-quote" "no-close-quote") | 116 | "open-quote" "close-quote" "no-open-quote" "no-close-quote") |
| 118 | ("counter-increment" identifier integer "none") | 117 | ("counter-increment" identifier integer "none") |
| @@ -375,6 +374,31 @@ | |||
| 375 | ("orphans" integer) | 374 | ("orphans" integer) |
| 376 | ("widows" integer) | 375 | ("widows" integer) |
| 377 | 376 | ||
| 377 | ;; CSS Masking Module Level 1 | ||
| 378 | ;; (https://www.w3.org/TR/css-masking-1/#property-index) | ||
| 379 | ("clip-path" clip-source basic-shape geometry-box "none") | ||
| 380 | ("clip-rule" "nonzero" "evenodd") | ||
| 381 | ("mask-image" mask-reference) | ||
| 382 | ("mask-mode" masking-mode) | ||
| 383 | ("mask-repeat" repeat-style) | ||
| 384 | ("mask-position" position) | ||
| 385 | ("mask-clip" geometry-box "no-clip") | ||
| 386 | ("mask-origin" geometry-box) | ||
| 387 | ("mask-size" bg-size) | ||
| 388 | ("mask-composite" compositing-operator) | ||
| 389 | ("mask" mask-layer) | ||
| 390 | ("mask-border-source" "none" image) | ||
| 391 | ("mask-border-mode" "luminance" "alpha") | ||
| 392 | ("mask-border-slice" number percentage "fill") | ||
| 393 | ("mask-border-width" length percentage number "auto") | ||
| 394 | ("mask-border-outset" length number) | ||
| 395 | ("mask-border-repeat" "stretch" "repeat" "round" "space") | ||
| 396 | ("mask-border" mask-border-source mask-border-slice | ||
| 397 | mask-border-width mask-border-outset mask-border-repeat | ||
| 398 | mask-border-mode) | ||
| 399 | ("mask-type" "luminance" "alpha") | ||
| 400 | ("clip" "rect()" "auto") | ||
| 401 | |||
| 378 | ;; CSS Multi-column Layout Module | 402 | ;; CSS Multi-column Layout Module |
| 379 | ;; (https://www.w3.org/TR/css3-multicol/#property-index) | 403 | ;; (https://www.w3.org/TR/css3-multicol/#property-index) |
| 380 | ;; "break-after", "break-before", and "break-inside" are left out | 404 | ;; "break-after", "break-before", and "break-inside" are left out |
| @@ -652,14 +676,17 @@ further value candidates, since that list would be infinite.") | |||
| 652 | (attachment "scroll" "fixed" "local") | 676 | (attachment "scroll" "fixed" "local") |
| 653 | (auto-repeat "repeat()") | 677 | (auto-repeat "repeat()") |
| 654 | (auto-track-list line-names fixed-size fixed-repeat auto-repeat) | 678 | (auto-track-list line-names fixed-size fixed-repeat auto-repeat) |
| 679 | (basic-shape "inset()" "circle()" "ellipse()" "polygon()") | ||
| 655 | (bg-image image "none") | 680 | (bg-image image "none") |
| 656 | (bg-layer bg-image position repeat-style attachment box) | 681 | (bg-layer bg-image position repeat-style attachment box) |
| 657 | (bg-size length percentage "auto" "cover" "contain") | 682 | (bg-size length percentage "auto" "cover" "contain") |
| 658 | (box "border-box" "padding-box" "content-box") | 683 | (box "border-box" "padding-box" "content-box") |
| 684 | (clip-source uri) | ||
| 659 | (color | 685 | (color |
| 660 | "rgb()" "rgba()" "hsl()" "hsla()" named-color "transparent" | 686 | "rgb()" "rgba()" "hsl()" "hsla()" named-color "transparent" |
| 661 | "currentColor") | 687 | "currentColor") |
| 662 | (common-lig-values "common-ligatures" "no-common-ligatures") | 688 | (common-lig-values "common-ligatures" "no-common-ligatures") |
| 689 | (compositing-operator "add" "subtract" "intersect" "exclude") | ||
| 663 | (contextual-alt-values "contextual" "no-contextual") | 690 | (contextual-alt-values "contextual" "no-contextual") |
| 664 | (counter "counter()" "counters()") | 691 | (counter "counter()" "counters()") |
| 665 | (discretionary-lig-values | 692 | (discretionary-lig-values |
| @@ -685,6 +712,7 @@ further value candidates, since that list would be infinite.") | |||
| 685 | (generic-family | 712 | (generic-family |
| 686 | "serif" "sans-serif" "cursive" "fantasy" "monospace") | 713 | "serif" "sans-serif" "cursive" "fantasy" "monospace") |
| 687 | (generic-voice "male" "female" "child") | 714 | (generic-voice "male" "female" "child") |
| 715 | (geometry-box shape-box "fill-box" "stroke-box" "view-box") | ||
| 688 | (gradient | 716 | (gradient |
| 689 | linear-gradient radial-gradient repeating-linear-gradient | 717 | linear-gradient radial-gradient repeating-linear-gradient |
| 690 | repeating-radial-gradient) | 718 | repeating-radial-gradient) |
| @@ -705,6 +733,12 @@ further value candidates, since that list would be infinite.") | |||
| 705 | (line-width length "thin" "medium" "thick") | 733 | (line-width length "thin" "medium" "thick") |
| 706 | (linear-gradient "linear-gradient()") | 734 | (linear-gradient "linear-gradient()") |
| 707 | (margin-width "auto" length percentage) | 735 | (margin-width "auto" length percentage) |
| 736 | (mask-layer | ||
| 737 | mask-reference masking-mode position bg-size repeat-style | ||
| 738 | geometry-box "no-clip" compositing-operator) | ||
| 739 | (mask-reference "none" image mask-source) | ||
| 740 | (mask-source uri) | ||
| 741 | (masking-mode "alpha" "luminance" "auto") | ||
| 708 | (named-color . ,(mapcar #'car css--color-map)) | 742 | (named-color . ,(mapcar #'car css--color-map)) |
| 709 | (number "calc()") | 743 | (number "calc()") |
| 710 | (numeric-figure-values "lining-nums" "oldstyle-nums") | 744 | (numeric-figure-values "lining-nums" "oldstyle-nums") |
| @@ -720,7 +754,7 @@ further value candidates, since that list would be infinite.") | |||
| 720 | (repeating-linear-gradient "repeating-linear-gradient()") | 754 | (repeating-linear-gradient "repeating-linear-gradient()") |
| 721 | (repeating-radial-gradient "repeating-radial-gradient()") | 755 | (repeating-radial-gradient "repeating-radial-gradient()") |
| 722 | (shadow "inset" length color) | 756 | (shadow "inset" length color) |
| 723 | (shape "rect()") | 757 | (shape-box box "margin-box") |
| 724 | (single-animation-direction | 758 | (single-animation-direction |
| 725 | "normal" "reverse" "alternate" "alternate-reverse") | 759 | "normal" "reverse" "alternate" "alternate-reverse") |
| 726 | (single-animation-fill-mode "none" "forwards" "backwards" "both") | 760 | (single-animation-fill-mode "none" "forwards" "backwards" "both") |