Comments (1)
That’s not currently possible, I’m afraid. The CSS Parser has no knowledge of the semantic meaning of individual CSS property names and values. There is the work that @ju1ius has done with expanding and collapsing shorthands but I don’t think it supports multiple backgrounds as it predates support for these.
If you do find the time to adapt DeclarationBlock#expandBackgroundShorthand and DeclarationBlock#createBackgroundShorthand for CSS3 backgrounds, I’d love a patch.
from php-css-parser.
Related Issues (20)
- Color names not working with ExpandShorthands HOT 12
- Drop `expandShorthands`/`createShorthands`/`create*Shorthand`/`expand*Shorthand`
- Deprecate `expandShorthands`/`createShorthands`/`create*Shorthand`/`expand*Shorthand` HOT 11
- Model named colors as `Color` instances instead of strings HOT 3
- Automate creation of the UML diagram
- Update the `gh-pages` branch with the API documentation whenever we push to `main`
- Add support for CSS Nesting
- Use the development PHP INI on CI
- Switch the code coverage to Coveralls
- Add a GitHub Action that comments on pull requests if tests are missing
- Add a Composer Script for PHP linting and use it on CI HOT 6
- Possibly undefined local variable HOT 1
- Lint does not work on Windows
- Fishy value parsing HOT 3
- Rework our class structure and naming to match the official specs HOT 2
- Add test for clamp()
- Test expressions involing brackets
- Inconsistent behaviour of Value::parseValue with odd vs even number of consecutive delimiters HOT 2
- Add a PHP-CS-Fixer rule to avoid deprecation warnings in PHP 8.4 HOT 1
- Use single-quoted string literals whenever possible HOT 3
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 php-css-parser.