From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=C5=81ukasz?= Stelmach Newsgroups: gmane.emacs.bugs Subject: bug#18578: [PATCH] Update the list of CSS pseudo classes Date: Sun, 28 Sep 2014 21:59:19 +0200 Message-ID: <1411934359-29348-1-git-send-email-stlman@poczta.fm> References: <87lhp3erih.fsf%steelman@post.pl> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1411934433 20520 80.91.229.3 (28 Sep 2014 20:00:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Sep 2014 20:00:33 +0000 (UTC) Cc: 18578@debbugs.gnu.org, =?UTF-8?Q?=C5=81ukasz?= Stelmach To: monnier@IRO.UMontreal.CA Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 28 22:00:26 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XYKdr-00068u-AT for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Sep 2014 22:00:23 +0200 Original-Received: from localhost ([::1]:32785 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYKdr-0003eB-02 for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Sep 2014 16:00:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYKdi-0003db-Vw for bug-gnu-emacs@gnu.org; Sun, 28 Sep 2014 16:00:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYKdd-0004U6-K0 for bug-gnu-emacs@gnu.org; Sun, 28 Sep 2014 16:00:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYKdd-0004Q3-AE for bug-gnu-emacs@gnu.org; Sun, 28 Sep 2014 16:00:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XYKdX-0004SV-Lw for bug-gnu-emacs@gnu.org; Sun, 28 Sep 2014 16:00:03 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87lhp3erih.fsf%steelman@post.pl> Resent-From: =?UTF-8?Q?=C5=81ukasz?= Stelmach Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Sep 2014 20:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18578 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18578-submit@debbugs.gnu.org id=B18578.141193437117067 (code B ref 18578); Sun, 28 Sep 2014 20:00:03 +0000 Original-Received: (at 18578) by debbugs.gnu.org; 28 Sep 2014 19:59:31 +0000 Original-Received: from localhost ([127.0.0.1]:54587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYKd0-0004RA-6Z for submit@debbugs.gnu.org; Sun, 28 Sep 2014 15:59:30 -0400 Original-Received: from smtpo.poczta.interia.pl ([217.74.65.234]:60896) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYKcx-0004Qz-Er for 18578@debbugs.gnu.org; Sun, 28 Sep 2014 15:59:28 -0400 X-Interia-R: Interia X-Interia-R-IP: 89.65.17.18 X-Interia-R-Helo: Original-Received: from localhost (89-65-17-18.dynamic.chello.pl [89.65.17.18]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by www.poczta.fm (INTERIA.PL) with ESMTPSA; Sun, 28 Sep 2014 21:59:23 +0200 (CEST) X-Mailer: git-send-email 1.8.5.5 X-Interia-Antivirus: OK X-IPL-SAS-SPAS: -4.399999619 X-IPL-SAS-UREP: 0 X-IPL-Envelope-To: stlman@poczta.fm DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=biztos; t=1411934366; bh=YNvhVJEOATCTg5qpWaR2CIt/eESY9bwtqdwkcmEndEA=; h=X-Interia-R:X-Interia-R-IP:X-Interia-R-Helo:From:To:Cc:Subject: Date:Message-Id:X-Mailer:X-Interia-Antivirus:X-IPL-SAS-SPAS: X-IPL-SAS-UREP:X-IPL-Envelope-To; b=K84Otz2+fY6Eze8USADWlEYM8oQY/xlxo8QBiQ0O52rpsVTXofaooE1e49Qszxryq zdtgaMZ9jMf/le73lJ0jRSl9mLZuduRdue4pQ5ZxU2Jl5le1B4d8dmrPXhpL6Y3LeO lIwb7AdsrZIvIrZPtneO62bYrNX9SD6HnZ2BGgaA= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93840 Archived-At: The list of pseudo classes has been updated according to "Selectors Level 3, W3C Recommendation 29 September 2011" as available at http://www.w3.org/TR/selectors/. Page selectors are described at http://www.w3.org/TR/2004/CR-css3-page-20040225/ --- Are these tests enough? BTW there are at least one more bug reporting the same bug, that probably could be merged with this one. http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18578 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4204 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10512 lisp/textmodes/css-mode.el | 8 ++++++-- test/indent/css-mode.css | 12 ++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 1a07269..bfadb69 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -121,8 +121,12 @@ ;; (property . "^ +\\* '\\([^ '\n]+\\)',"))) (defconst css-pseudo-ids - '("active" "after" "before" "first" "first-child" "first-letter" "first-line" - "focus" "hover" "lang" "left" "link" "right" "visited") + '("active" "after" "before" "checked" "disabled" "empty" "enabled" + "first" "first-child" "first-letter" "first-line" "first-of-type" + "focus" "hover" "indeterminate" "lang" "left" "last-child" + "last-of-type" "link" "nth-child" "nth-last-child" + "nth-last-of-type" "nth-of-type" "only-child" "only-of-type" + "right" "root" "target" "visited") "Identifiers for pseudo-elements and pseudo-classes.") (defconst css-at-ids diff --git a/test/indent/css-mode.css b/test/indent/css-mode.css index 4dbab06..f4a4944 100644 --- a/test/indent/css-mode.css +++ b/test/indent/css-mode.css @@ -11,3 +11,15 @@ div.x3 { } + +div:first-child { + background-color: #abc; +} + +span:nth-child(2) { + font-family: weird; +} + +img:last-of-type { + padding: 0; +} -- 1.8.5.5