Skip to content
Updated CSS Context API implementation spec (markdown) authored by RaymondLim's avatar RaymondLim
...@@ -61,10 +61,13 @@ If the cursor is in a non-css /non-less document, or inside the unsupported cont ...@@ -61,10 +61,13 @@ If the cursor is in a non-css /non-less document, or inside the unsupported cont
>@char|set "UTF-8"; >@char|set "UTF-8";
> >
>@import ur|l("booya.css") print,screen; >@import ur|l("booya.css") print,screen;
>
>@import "whatup.css" sc|reen; >@import "whatup.css" sc|reen;
>
>@import "|wicked.css"; >@import "|wicked.css";
>@namespace "|http://www.w3.org/1999/xhtml"; >@namespace "|http://www.w3.org/1999/xhtml";
>
>@namespace s|vg "http://www.w3.org/2000/svg"; >@namespace s|vg "http://www.w3.org/2000/svg";
> >
>@media sc|reen { ... } >@media sc|reen { ... }
...@@ -72,6 +75,9 @@ If the cursor is in a non-css /non-less document, or inside the unsupported cont ...@@ -72,6 +75,9 @@ If the cursor is in a non-css /non-less document, or inside the unsupported cont
<br /> <br />
<a name="invalid"> </a> <a name="invalid"> </a>
###Examples of Invalid CSS Context###
>@media screen {| div { ... } }
>
>div { clear |: both; } /* cursor before the colon and after a valid property name */ >div { clear |: both; } /* cursor before the colon and after a valid property name */
> >
>div { clear both; } /* missing colon after "clear" property name */ >div { clear both; } /* missing colon after "clear" property name */
... ...
......