From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#50354: 28.0.50; Fill in some more css gaps Date: Fri, 03 Sep 2021 12:39:01 +0200 Message-ID: Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37747"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Simen =?UTF-8?Q?Heggest=C3=B8yl?= To: 50354@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 03 12:43:15 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mM6fD-0009cy-1w for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Sep 2021 12:43:15 +0200 Original-Received: from localhost ([::1]:35700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mM6fC-0007xt-1S for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Sep 2021 06:43:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mM6c8-0004po-7v for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2021 06:40:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59746) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mM6c6-00035k-Nm for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2021 06:40:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mM6c6-0001Pu-K4 for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2021 06:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Sep 2021 10:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50354 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16306655595383 (code B ref -1); Fri, 03 Sep 2021 10:40:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Sep 2021 10:39:19 +0000 Original-Received: from localhost ([127.0.0.1]:43059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mM6bO-0001Ok-BU for submit@debbugs.gnu.org; Fri, 03 Sep 2021 06:39:18 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:60944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mM6bL-0001Oa-1c for submit@debbugs.gnu.org; Fri, 03 Sep 2021 06:39:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mM6bK-0003JV-Oi for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2021 06:39:14 -0400 Original-Received: from out1.migadu.com ([91.121.223.63]:31178) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mM6bF-0002Ip-Sr for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2021 06:39:14 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1630665543; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=5u0ddW23wb84ayofgOmrxy1RQriJcnkPnQbcm11SCB4=; b=tIu5MjrDNknXrVkbmjAFFEUR0UM1jBVwKf2OHVChTAtAw84qSDrFkuuy0xKTijab7Wizph 3SyjE3nADKFrSKAoCKnodZXTkpb1/nshFMRmsFq8gDy/mdjDehq77aleqmkhuS0YmdHPAK ePyobJN6tmIrSMyZY0GJ+SzkADQbJUUTL1nEFzAB+Zm8c7zUEd8pOihvgIf+5vRkqFaXCq vFlMbMK0Ne+r1P8OaEjIQ1KD/kEQcuiOrRiLRbmL1CmTJj+Xqw/8jGDbXsb7/b+0MCZRcf wUnMH2bbmRf/6reiZFpzR6cpCcSOd06y3WT/6ewbxCge4AbCqc+hlBDkL9PF/g== X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: theo@thornhill.no Received-SPF: pass client-ip=91.121.223.63; envelope-from=theo@thornhill.no; helo=out1.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:213349 Archived-At: --=-=-= Content-Type: text/plain Hi again! Following up on my last patch, I've added a couple more. I tried to follow up on Simens suggestions and use the grammarlike alist. Furthermore there are some small additions from the newer specs. Hope this is useful! Theodor --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Clean-up-css-property-alist-for-alignment.patch >From e0f8f1c83d3c41660245df1a05e1393ec417038b Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Fri, 3 Sep 2021 12:07:47 +0200 Subject: [PATCH 1/4] Clean up css-property-alist for alignment * css-mode.el (css-property-alist, css-value-class-alist): Provide new position related entries for use in css-property-alist. Make sure that property-alist reflect the spec: https://www.w3.org/TR/css-align-3/#property-index --- lisp/textmodes/css-mode.el | 54 ++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index f406afb7b6..c2086d2fd3 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -302,34 +302,25 @@ ("grid-template-rows" "none" track-list auto-track-list) ;; CSS Box Alignment Module Level 3 - ;; (https://www.w3.org/TR/css-align-3/#alignment-values) - ("align-content" "center" "start" "end" "flex-start" "flex-end" - "normal" "first" "last" "baseline" "space-between" "space-around" - "space-evenly" "stretch" "safe" "unsafe") - ("align-items" "normal" "stretch" "center" "start" "end" - "flex-start" "flex-end" "baseline" "first" "last" "baseline" - "safe" "unsafe") - ("align-self" "auto" "normal" "center" "start" "end" - "self-start" "self-end" "flex-start" "flex-end" - "baseline" "first" "last" "stretch" "safe" "unsafe") - ("justify-content" "center" "start" "end" "flex-start" "flex-end" - "left" "right" "normal" "space-between" "space-around" - "space-evenly" "stretch" "safe" "unsafe") - ("justify-items" "auto" "normal" "stretch" "center" "start" "end" - "flex-start" "flex-end" "self-start" "self-end" "left" "right" - "baseline" "first" "last" "legacy" "safe" "unsafe") - ("justify-self" "auto" "normal" "stretch" "center" "start" "end" - "flex-start" "flex-end" "self-start" "self-end" "left" "right" - "baseline" "first" "last" "safe" "unsafe") - ("place-content" "center" "start" "end" "left" "right" "flex-start" - "flex-end" "baseline" "first" "last" "space-evenly" "space-around" - "space-between") - ("place-items" "auto" "normal" "center" "start" "end" - "self-start" "self-end" "flex-start" "flex-end" - "left" "right" "baseline" "first" "last" "stretch") - ("place-self" "auto" "center" "start" "end" "self-start" "self-end" - "flex-start" "flex-end" "normal" "left" "right" "baseline" - "first" "last" "stretch") + ;; (https://www.w3.org/TR/css-align-3/#property-index) + ("align-content" + baseline-position content-distibution overflow-position content-position) + ("align-items" + "normal" "stretch" baseline-position overflow-position self-position) + ("align-self" + "auto" "normal" "stretch" + baseline-position overflow-position self-position) + ("justify-content" "normal" + content-distibution overflow-position content-position "left" "right") + ("justify-items" + "normal" "stretch" baseline-position overflow-position self-position + "left" "right" "legacy") + ("justify-self" + "auto" "normal" "stretch" baseline-position overflow-position self-position + "left" "right") + ("place-content" align-content justify-content) + ("place-items" align-items justify-items) + ("place-self" justify-self align-self) ;; CSS Flexible Box Layout Module Level 1 ;; (https://www.w3.org/TR/css-flexbox-1/#property-index) @@ -779,6 +770,13 @@ further value candidates, since that list would be infinite.") (padding-width length percentage) (position "left" "center" "right" "top" "bottom" percentage length) + (baseline-position "left" "right" "baseline") + (content-distribution + "space-between" "space-around" "space-evenly" "stretch") + (overflow-position "unsafe" "safe") + (content-position "center" "start" "end" "flex-start" "flex-end") + (self-position + "center" "start" "end" "self-start" "self-end" "flex-start" "flex-end") (radial-gradient "radial-gradient()") (relative-size "larger" "smaller") (repeat-style -- 2.30.1 (Apple Git-130) --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-Update-to-CSS-Grid-Layout-Module-Level-2.patch >From beab400910450d3d2a4874f0e453999b6f611a3e Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Fri, 3 Sep 2021 12:14:32 +0200 Subject: [PATCH 2/4] Update to CSS Grid Layout Module Level 2 * css-mode.el (css-property-alist): Update to the newer spec, and add the subgrid keywords --- lisp/textmodes/css-mode.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index c2086d2fd3..8689c94bc5 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -278,8 +278,8 @@ ;; (https://www.w3.org/TR/css-contain-1/#property-index) ("contain" "none" "strict" "content" "size" "layout" "paint") - ;; CSS Grid Layout Module Level 1 - ;; (https://www.w3.org/TR/css-grid-1/#property-index) + ;; CSS Grid Layout Module Level 2 + ;; (https://www.w3.org/TR/css-grid-2/#property-index) ("grid" grid-template grid-template-rows "auto-flow" "dense" grid-auto-columns grid-auto-rows grid-template-columns) ("grid-area" grid-line) @@ -298,8 +298,8 @@ ("grid-template" "none" grid-template-rows grid-template-columns line-names string track-size line-names explicit-track-list) ("grid-template-areas" "none" string) - ("grid-template-columns" "none" track-list auto-track-list) - ("grid-template-rows" "none" track-list auto-track-list) + ("grid-template-columns" "none" track-list auto-track-list "subgrid") + ("grid-template-rows" "none" track-list auto-track-list "subgrid") ;; CSS Box Alignment Module Level 3 ;; (https://www.w3.org/TR/css-align-3/#property-index) -- 2.30.1 (Apple Git-130) --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0003-Update-to-CSS-Containment-Module-Level-2.patch >From 7c2daa34a77ecca28a1bb66a9a9b7cb3d58f1e57 Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Fri, 3 Sep 2021 12:19:36 +0200 Subject: [PATCH 3/4] Update to CSS Containment Module Level 2 * css-mode.el (css-property-alist): Update contain, and add content-visibility. --- lisp/textmodes/css-mode.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 8689c94bc5..a39a62aa68 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -274,9 +274,10 @@ ("color" color) ("opacity" alphavalue) - ;; CSS Containment Module Level 1 - ;; (https://www.w3.org/TR/css-contain-1/#property-index) - ("contain" "none" "strict" "content" "size" "layout" "paint") + ;; CSS Containment Module Level 2 + ;; (https://www.w3.org/TR/css-contain-2/#property-index) + ("contain" "none" "strict" "content" "size" "layout" "style" "paint") + ("content-visibility" "visible" "auto" "hidden") ;; CSS Grid Layout Module Level 2 ;; (https://www.w3.org/TR/css-grid-2/#property-index) -- 2.30.1 (Apple Git-130) --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0004-Update-to-CSS-Flexible-Box-Layout-Module-Level-2.patch >From 132b72f76a885e655b35ecaf9f3447d94e4844db Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Fri, 3 Sep 2021 12:21:49 +0200 Subject: [PATCH 4/4] Update to CSS Flexible Box Layout Module Level 2 * css-mode.el (css-property-alist): Update link. --- lisp/textmodes/css-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index a39a62aa68..d57f2d5493 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -323,8 +323,8 @@ ("place-items" align-items justify-items) ("place-self" justify-self align-self) - ;; CSS Flexible Box Layout Module Level 1 - ;; (https://www.w3.org/TR/css-flexbox-1/#property-index) + ;; CSS Flexible Box Layout Module Level 2 + ;; (https://www.w3.org/TR/css-flexbox-2/#property-index) ("flex" "none" flex-grow flex-shrink flex-basis) ("flex-basis" "auto" "content" width) ("flex-direction" "row" "row-reverse" "column" "column-reverse") -- 2.30.1 (Apple Git-130) --=-=-=--