-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
fix grid area, fixes #85 #88
Conversation
Don't know if this is good like it is... but who is responsible for minification of the property, so if I write it with the MinifyStyleFormatter, only one value is in the text? |
@FlorianRappl but I think this will not work then: in chrome I can do this: $0.style.gridArea='99999999999999999999999999999999999' |
so also according to the spec, should we limit the value? |
I think the clamping makes sense. We should have this, too. Regarding number check: There are many micro-parsers that do that. One example is the
|
would this be better?
or is my int.parse okay? at least the upper one doesn't work at all... |
@FlorianRappl any news? |
Ah sorry forgot to reply: Hm usually you are already in a parser context. Not sure why you do the string to stringsource conversion, as you should already have a string source. If you do all that after you got a value then something may be wrong - as the value may not be a valid one anyway. In any case |
I don't know where you'd like the chance to be. I tried to do it with minimal impact. If no time at the moment to dig so deep into AngleSharp. But my fix works, and does return correct css ( without it's wrong) And have you also seen, I've 3 other pull req's with questions. |
Thanks for bringing this up - I did not see them until now. Looks good!
That's great - fine with me. All I did was answering your question. Let me know if that works for you. |
Then this could be merged. It works. It could be improved later if needed |
Alright, then let's do that! |
Types of Changes
Prerequisites
Please make sure you can check the following two boxes:
Contribution Type
What types of changes does your code introduce? Put an
x
in all the boxes that apply:Description
fix grid area