aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSimen Heggestøyl2017-10-13 21:48:12 +0200
committerSimen Heggestøyl2017-10-13 21:57:52 +0200
commitff330530123a9e3f6fbb2d0fe52564e4e3d78369 (patch)
tree917973bdabcaf3cde6f89871585510beb2c2f0b1 /test
parent8968be822ea864f383be75888e83bd92274fc520 (diff)
downloademacs-ff330530123a9e3f6fbb2d0fe52564e4e3d78369.tar.gz
emacs-ff330530123a9e3f6fbb2d0fe52564e4e3d78369.zip
Fix indentation bug in multi-line CSS selectors
* lisp/textmodes/css-mode.el (css--colon-inside-selector-p): Fix indentation of multi-line CSS selectors that include both a pseudo-class and parenthesis. * test/manual/indent/css-mode.css: Add test for the above change.
Diffstat (limited to 'test')
-rw-r--r--test/manual/indent/css-mode.css10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/manual/indent/css-mode.css b/test/manual/indent/css-mode.css
index bf612b53a14..640418b022d 100644
--- a/test/manual/indent/css-mode.css
+++ b/test/manual/indent/css-mode.css
@@ -66,6 +66,16 @@ div::before {
66 ); 66 );
67} 67}
68 68
69/* Multi-line selector including both a pseudo-class and
70 parenthesis. */
71.form-group:not(.required) label,
72.birth-date .row > * {
73 &::after {
74 display: inline;
75 font-weight: normal;
76 }
77}
78
69@font-face { 79@font-face {
70 src: url("Sans-Regular.eot") format("eot"), 80 src: url("Sans-Regular.eot") format("eot"),
71 url("Sans-Regular.woff") format("woff"), 81 url("Sans-Regular.woff") format("woff"),