-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
background shorthand doesn't parse anything after "position / size" #15199
Comments
I might be wrong, but I think this is because |
(I think that was what I saw when I last checked. I don't have a working servo build at the moment...) |
I think the I did a quick check, and it appears Servo successfully parses something like this |
Because in your last case, |
Oh, I see, I wasn't aware of that; apologies for the misinformation. In that case, I'm not entirely sure - I too had a look through some of the background shorthand parsing code too, and wasn't able to pinpoint anything there immediately. |
I think I know why. It is because the parser of So something like |
Hmm, I think you're right. Running a quick check, servo/components/style/properties/longhand/background.mako.rs Lines 397 to 407 in 5a624ff
|
It doesn't require two... but it requires two if there is anything after the first accepted value, which is wrong. |
Yup, exactly. |
The same issue also affects |
@tmccrmck Does this look interesting? It requires creating a unit test in |
@jdm Yep! I'll reach out on IRC if I have any questions. |
@tmccrmck Did you make any progress? |
I don't ever recall Servo builds requiring bindgen...? |
Properly parse background-size in background longhand (fixes #15199) <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16513) <!-- Reviewable:end -->
Properly parse background-size in background longhand (fixes #15199) <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16513) <!-- Reviewable:end -->
Properly parse background-size in background longhand (fixes #15199) <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16513) <!-- Reviewable:end -->
The issue is that, the following code parses:
but the following doesn't:
As far as I can see, anything in the same background item after the "position / size" syntax is rejected.
I tried to look into the code, but I failed to find anything wrong there.
The text was updated successfully, but these errors were encountered: