PHP Classes

CSS fix: Replace CSS properties with browser specific names

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 812 All time: 4,246 This week: 455Up
Version License PHP version Categories
css-fix 1.0BSD License5.0HTML, PHP 5
Description 

Author

This class can replace CSS properties by properties with browser specific names.

It can parse a CSS definition and find CSS properties that are not yet well supported by all browsers.

The class can add browser specific properties that are equivalent to the found properties.

It also applies other fixes for different CSS browser specific definitions.

Innovation Award
PHP Programming Innovation award nominee
April 2012
Number 3


Prize: One downloadable e-book of choice by O'Reilly
Newer browse versions often implement support to new CSS properties before any standards are defined and approved to define those properties.

When that happens those CSS properties are implemented using names that have special browser vendor prefixes.

When the actual standard define those properties, the property names are defined without the browser prefixes, and in some cases with slightly different names.

Web developers may use the standard property names but past browser versions may not recognize them.

This class implements a solution to work around that problem. It parses a CSS definition and replaces the standard property names with browser vendor original names.

This way the fixed CSS definitions may still work and more current and past browser versions.

Manuel Lemos
Picture of Arturs Sosins
  Performance   Level  
Name: Arturs Sosins <contact>
Classes: 22 packages by
Country: Latvia Latvia
Age: 36
All time rank: 521 in Latvia Latvia
Week rank: 50 Up1 in Latvia Latvia Equal
Innovation award
Innovation award
Nominee: 13x

Winner: 2x

  Files folder image Files (4)  
File Role Description
Plain text file CSSfix.php Class Main class source
Accessible without login Plain text file example.php Example Example reading css from file
Accessible without login Plain text file simple_example.php Example Simple example with CSS string
Accessible without login Plain text file style.css Data CSS style for example

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:812
This week:0
All time:4,246
This week:455Up
User Ratings User Comments (2)
 All time
Utility:85%StarStarStarStarStar
Consistency:82%StarStarStarStarStar
Documentation:-
Examples:85%StarStarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1267
 
Arturs always comes out with cutting edge stuff and this one ...
12 years ago (Terry Woody)
70%StarStarStarStar
testing now.
12 years ago (Ly Ngoc Quoc Lam)
52%StarStarStar