-
Notifications
You must be signed in to change notification settings - Fork 242
Add "line-height" #422
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
Add "line-height" #422
Conversation
@bors-servo r+ |
📌 Commit d086eef has been approved by |
☀️ Test successful - checks-travis |
That was fast, thank you! |
I don’t find |
Oh, It wasn't clear to me if the names in markup5ever are in fact attribute names that happen to correspond to properties. Am I doing something wrong here:
|
CSS properties do not have namespaces. CSS SVG has a number of presentation attributes that map to CSS properties of corresponding names, but not all SVG attributes are "presentation" and not all CSS properties relevant to SVG have a corresponding attribute. (Parsing the value of those attributes is also slightly different from parsing the value of the corresponding property in a stylesheet or |
For now this requires a special case in the make_properties! macro. The markup5ever crate does not support "line-height" out of the box yet; see servo/html5ever#422. So, we add a special case for property names that are not supported yet in markup5ever. Ugly but it works.
This is in CSS3, which is kind of required for SVG2, which I'm slowly getting at in librsvg 😃