Warning, /frameworks/syntax-highlighting/autotests/input/highlight.css is written in an unsupported language. File is not indexed.

0001 /**
0002  * This is a pseudo CSS file to test Kate's CSS syntax highlighting.
0003  */
0004 
0005 /* Properties */
0006 
0007 body {
0008         font-size: 15pt;
0009         font-family: Verdana, Helvetica, "Bitstream Vera Sans", sans-serif;
0010         margin-top: 0px;                        /* yet another comment */
0011         margin-bottom: 0px;
0012         // this is no comment, it's just broken!
0013         background-color: hsl(0, 0%, calc(95% - 3%));
0014     font-family: "Droid Sans", Arial, sans-serif;
0015     font-size: 11pt;
0016     line-height: 1.5em;
0017     background: #fff000;
0018     text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
0019     box-sizing: border-box;
0020         font-variant-alternates: styleset(nice-style);
0021 }
0022 
0023 /* Selectors */
0024 
0025 body, blockquote {
0026     margin: 0;
0027 }
0028 
0029 header #logo {
0030     width: 100px;
0031 }
0032 
0033 div#footer .link {
0034     color: blue;
0035 }
0036 
0037 .something
0038 {
0039         margin-right: 0px;
0040         color: #cdd;
0041         color: #AAFE04;
0042         color: rgb(10%,30%,43%);
0043         background: maroon;
0044 }
0045 
0046 sidebar #subscribe .subscribe_form input[type="text"] {
0047     font-size: 20px;
0048 }
0049 
0050 sidebar #subscribe .subscribe_form:nth-child(2n + 1):hover input[class*="small-"] {
0051     font-weight: bold;
0052 }
0053 
0054 input[value=text]
0055 input[value= text ]
0056 input[value= text i]
0057 input[value= "text" i]
0058 input[value=i]
0059 input[value= i] {
0060     font-size: 20px;
0061 }
0062 
0063 #header,
0064 a:hover,
0065 p.intro:first-letter,
0066 p:lang(nl),
0067 img[align="right"]
0068 {
0069         border: 1px solid Qt::red !important;
0070         -moz-border-radius: 15px; /* unknown properties render italic */
0071 }
0072 
0073 .nice-look {
0074 }
0075 
0076 ul {
0077         list-style: thumbs;
0078 }
0079 
0080 /* SVG <a> */
0081 svg|a {}
0082 
0083 /* XHTML and SVG <a> */
0084 *|a {}
0085 
0086 *{}
0087 .class{}
0088 #id{}
0089 :hover{}
0090 :lang(fr){}
0091 E{}
0092 E F{}
0093 E>F{}
0094 E > F{}
0095 E~F{}
0096 E ~ F{}
0097 E:first-child{}
0098 E:visited{}
0099 E::after{}
0100 E:lang(c){}
0101 E:lang(fr-ca){}
0102 E + F{}
0103 E+F{}
0104 E[foo]{}
0105 E[foo=warning]{}
0106 E[foo="warning"]{}
0107 E[foo~="warning"]{}
0108 E[foo^="warning"]{}
0109 E[foo$="warning"]{}
0110 E[foo*="warning"]{}
0111 E[lang|="en"]{}
0112 DIV.warning{}
0113 DIV .warning{}
0114 E#myid{}
0115 E #myid{}
0116 E,E{}
0117 E, E{}
0118 E ,E{}
0119 E , E{}
0120 
0121 p:nth-child(2) {
0122         background: red;
0123 }
0124 
0125 /* Elements that are not <div> or <span> elements */
0126 body :not(div):not(span) {
0127         font-weight: bold;
0128 }
0129 
0130 /* Elements that are not `.crazy` or `.fancy` */
0131 /* Note that this syntax is not well supported yet. */
0132 body :not(.crazy, .fancy) {
0133         font-family: sans-serif;
0134 }
0135 
0136 :nth-child(odd) { color: lime; }
0137 :nth-child(even) { color: lime; }
0138 :nth-child(4) { color: lime; }
0139 :nth-child(4n) { color: lime; }
0140 :nth-child(3n+4) { color: lime; }
0141 :nth-child(-n+3) { color: lime; }
0142 :nth-child(n+8):nth-child(-n+15) { color: lime; }
0143 
0144 .first span:nth-child(2n+1),
0145 .second span:nth-child(2n+1),
0146 .third span:nth-of-type(2n+1) {
0147         background-color: lime;
0148         unknown-property: lime;
0149 }
0150 
0151 :root{
0152         --foo: if(x > 5) this.width = 10; /* valid custom property, invalid in any normal property */
0153 }
0154 
0155 :root,
0156 :root:lang(en) {--external-link: "external link";}
0157 :root:lang(de) {--external-link: "externer Link";}
0158 
0159 a[href^="http"]::after {content: " (" var(--external-link) ")"}
0160 
0161 one   { --foo: 10px; }
0162 two   { --bar: calc(var(--foo) + 10px); }
0163 three { --foo: calc(var(--bar) + 10px); }
0164 .foo {
0165         --gap: 20;
0166         margin-top: var(--gap)px; /*20 px*/
0167         margin-top: calc(var(--gap) * 1px); /*20px*/
0168 }
0169 
0170 foo {
0171         width: calc(50% -8px); /* invalid */
0172         width: calc(50%- 8px); /* invalid */
0173         width: calc(50% +8px); /* invalid */
0174         width: calc(50%+ 8px); /* invalid */
0175         width: calc(2px -var(--a)); /* invalid */
0176         width: calc(50%*-8px);
0177         width: calc(50% - 8px);
0178         width: calc(50% + -8px);
0179         width: calc(50% +(8px));
0180         width: calc(2px -(var(--a)));
0181 }
0182 
0183 sweet-alert input:focus::-moz-placeholder {
0184         -webkit-transition: opacity 0.3s 0.03s ease;
0185         transition: opacity 0.3s 0.03s ease;
0186         opacity: 0.5;
0187 }
0188 
0189 
0190 @font-feature-values Font One {
0191         @styleset {
0192                 nice-style: 12;
0193         }
0194 }
0195 
0196 @font-feature-values Font Two {
0197         @styleset {
0198                 nice-style: 4;
0199         }
0200 }
0201 
0202 @font-palette-values --identifier {
0203   font-family: Bixa;
0204 }
0205 
0206 @counter-style thumbs {
0207         system: cyclic;
0208         symbols: "\1F44D";
0209         suffix: " ";
0210 }
0211 
0212 @font-face {
0213         font-family: "Open Sans";
0214         /* comments */
0215         unknown: 2px;
0216         src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
0217         url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
0218 }
0219 
0220 @page {
0221         margin: 1cm;
0222 }
0223 
0224 @page :first {
0225         margin: 2cm;
0226         /* comments */
0227         marks: crop cross;
0228 }
0229 
0230 @page :unknown {
0231         margin: 2cm;
0232 }
0233 
0234 @document url("https://www.example.com/") {
0235         h1 {
0236                 color: green;
0237         }
0238 }
0239 
0240 @charset "UTF-8";
0241 
0242 @import 'custom.css';
0243 @import "common.css" screen;
0244 @import url("fineprint.css") print;
0245 @import url(fineprint.css) print;
0246 @import url('bluish.css') speech;
0247 @import url("chrome://communicator/skin/");
0248 @import url('landscape.css') screen and (orientation:landscape);
0249 @import url("othersheet.css") screen, print;
0250 
0251 @namespace url(http://www.w3.org/1999/xhtml);
0252 @namespace svg url(http://www.w3.org/2000/svg);
0253 
0254 /* Animation (Keyframes) */
0255 
0256 @keyframes important1 {
0257         from { margin-top: 50px; }
0258         50%  { margin-top: 150px !important; } /* ignored */
0259         to   { margin-top: 100px; }
0260 }
0261 
0262 @keyframes important2 {
0263         from { margin-top: 50px;
0264                 margin-bottom: 100px; }
0265         to   { margin-top: 150px !important; /* ignored */
0266                 margin-bottom: 50px; }
0267 }
0268 
0269 @keyframes slidein {
0270         from {
0271                 margin-left: 100%;
0272                 width: 300%;
0273         }
0274 
0275         to {
0276                 margin-left: 0%;
0277                 width: 100%;
0278         }
0279 }
0280 
0281 /* Media Queries */
0282 
0283 @media print {
0284     .container {
0285         width: 100%;
0286     }
0287         a:hover { color: red }
0288         /* comments */
0289         a:hover { color: red }
0290 
0291         #header
0292         {
0293                 display: none;
0294         }
0295 }
0296 
0297 @media screen and (min-width: 768px) and (max-width: 960px) {
0298     .container {
0299         width: 720px;
0300     }
0301 }
0302 
0303 @media (max-width: 600px) {
0304         .sidebar {
0305                 display: none;
0306         }
0307 }
0308 
0309 @media print {
0310 }
0311 
0312 @media (height > 600px) {
0313   body {
0314     line-height: 1.4;
0315   }
0316 }
0317 
0318 @media (400px <= width <= 700px) {
0319   body {
0320     line-height: 1.4;
0321   }
0322 }
0323 
0324 @supports (display: grid) {
0325         div {
0326                 display: grid;
0327         }
0328 }
0329 
0330 @supports font-tech(color-COLRv1) {
0331   font-family: "Bungee Spice";
0332 }
0333 
0334 @supports not (not (transform-origin: 2px)) {
0335   div {}
0336 }
0337 
0338 @supports (display: grid) and (not (display: inline-grid)) {
0339   div {}
0340 }
0341 
0342 /*
0343  * CSS Syntax Highlight Sample File (Standard)
0344  *
0345  * This file contains most CSS syntax, CSS3 properties, @media, @font-face and
0346  * @keyframes annotations.
0347  *
0348  * @author  Guo Yunhe guoyunhebrave@gmail.com
0349  * @date    2016-09-16
0350  */
0351 
0352 /*
0353  * Block comment
0354  *
0355  * Alert keywords:
0356  * TODO BUG FIXME
0357  */
0358 
0359 
0360 /* Region markers */
0361 
0362 /*BEGIN Comment */
0363 
0364 
0365 /*END Comment */
0366 
0367 /*
0368  * CSS Syntax Highlight Sample File (Complex)
0369  *
0370  * This file contains complex CSS syntax that can test unexpected situations.
0371  *
0372  * @author  Guo Yunhe guoyunhebrave@gmail.com
0373  * @date    2016-09-16
0374  */
0375 
0376 
0377 /* Comments with special content */
0378 
0379 /*
0380  * .class-selector #id "string" 'comment' // comment {} [] ()  /* comment
0381  * TODO BUG DEBUG
0382  * body {
0383  *    margin: 0 !important;
0384  * }
0385  */
0386 
0387 /* Comments in special positions */
0388 
0389 header/* comment here */.active /* comment here */ {
0390     /* comment here */ color : /* comment here */ blue/* comment here */;
0391     font-family: Arial /* comment here */,
0392         "Droid Sans", /* comment here */
0393         sans-serif/* comment here */;
0394 }
0395 
0396 @media screen /* comment here */ and (max-width: 300px /* comment here */) /* comment here */ {/* comment here */}
0397 
0398 
0399 /* Strings with special content */
0400 
0401 @import url("{} $variable /* comment */");
0402 
0403 
0404 /* Without extra breaklines and spaces */
0405 
0406 pre.primary:hover.large:nth-child(2n-1){font-size:17px;font-family:"Noto Sans";-webkit-box-shadow:1px 1px 3px rgba(0,0,0,0.3)}
0407 
0408 
0409 /* With unnecessary breaklines and spaces */
0410 
0411 blockquote .ref
0412     {
0413              flex : 0 1 30%;
0414         flex-wrap : wrap;
0415     }
0416 
0417 @media screen and (orientation: landscape) {
0418   .sidebar {
0419     width: 500px; } }
0420 
0421 
0422 /* Special selectors: HTML5 allows user defined tags */
0423 
0424 header {
0425     flex {
0426         width: 300px;
0427     }
0428 }
0429 
0430 /* CSS Nesting */
0431 
0432 header {
0433     .abc {
0434         width: 300px;
0435     }
0436     width: 300px;
0437     & width:hover {
0438         width: 300px;
0439     }
0440     width: 300px;
0441 }