Comments (5)
The
content
keyword can either be the value of adisplay
property
Is there any W3C documents specifying this?
Also note, this syntax plugin cannot highlight correctly if properties and values have same
string such as right
, font-size
(Issue #16), and so on.
from vim-css3-syntax.
Forget to note, this limitation depends on vim's built-in CSS syntax.
from vim-css3-syntax.
I do not know of any W3C document specifying this, I only guessed it from the way the plugin worked. I actually never used content
as a value, only ever as a property.
So you mean that if a same keyword (say font-size
) can be either a property or a value, it is arbitrary which one will be used ?
from vim-css3-syntax.
Sorry, I misunderstood.
So you mean that if a same keyword (say
font-size
) can be either a property or a value, it is arbitrary which one will be used ?
Yes. I tried to find a simple solution for this problem, but failed.
from vim-css3-syntax.
I would tend to say that we should parse font-size
as a property instead of a value. It seems, at least to me, that is the way we encounter it more often.
Now, I know this is a suboptimal solution as it won't apply to a keyword like right
which is equally used as a property or a value.
from vim-css3-syntax.
Related Issues (20)
- fit-content() function is not highlighted correctly
- Some CSS functions not highlighted correctly HOT 1
- cssnext support? HOT 1
- Distribute as Vim 8.0 package HOT 2
- `system-ui` font family
- Extremely slow on startup HOT 2
- touch-action property
- Makes file very slow to open HOT 1
- flex-grow not highlighted HOT 1
- ease-in-out not highlighted HOT 1
- make it support for qss HOT 4
- Highlight for nested properties? HOT 2
- WebVTT ::cues HOT 1
- Incorrect highlighting for: space-{around|evenly|between} and ease-in-out HOT 4
- space-between not highlight HOT 1
- (Optional) support for nested selectors HOT 4
- Submit these improvements as PRs to the official Vim CSS syntax file HOT 1
- Inline styles syntax highlight HOT 1
- master -> main HOT 1
- Color preview is also applied to CSS property names HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-css3-syntax.