Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS styles not applied correctly ?? #25

Closed
SatishGandham opened this issue Feb 1, 2015 · 1 comment
Closed

CSS styles not applied correctly ?? #25

SatishGandham opened this issue Feb 1, 2015 · 1 comment

Comments

@SatishGandham
Copy link

I applied the following styles

background-position:100% 50%;
background-repeat:no-repeat;
background-size:50% 100%;
background-position:100% 50%
background-repeat:no-repeat
background-size:50% 100%

Your preg_match_all '/(.+?):(.+?);?$/' is only capturing the last value

array (size=3)
  0 => 
    array (size=1)
      0 => string 'background-size:50% 100%' (length=24)
  1 => 
    array (size=1)
      0 => string 'background-size' (length=15)
  2 => 
    array (size=1)
      0 => string '50% 100%' (length=8)

Where as this matches the first three lines. '/(.+):(.+);/'

Is this really an issue or am I missing something here?

Also the above CSS is treated as a single string, so the $ sign has to be removed from regex

@gregpriday
Copy link
Member

Thanks for the report Satish. This is currently fixed in the development branch. We'll be pushing an update soon.

0969246

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants