Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement 'align' attribute for <div> elements #7953
Conversation
highfive
commented
Oct 10, 2015
|
So I need a little help with this. At the time of writing, this test fails after this pull request: I'm actually not even sure how it was passing prior to this getting implemented. I'm guessing it fails now because this isn't implemented? If anyone has any thoughts, please let me know, thanks. |
|
See servo/resources/presentational-hints.css Line 10 in ab42ca4 I don't think there's any reason to move the rendering rule from presentational-hints.css to synthesize_presentational_hints_for_legacy_attributes. |
Not all presentational hints can be expressed through CSS, though. |
|
Will those CSS hints work correctly with the IDL/content getters/setters? Also, align=center is not part of the spec |
|
@frewsxcv You sure?
|
|
@frewsxcv I'm pretty sure you can just implement reflecting IDL getters and setters and consider that attribute to hold onto a plain old string. |
|
@frewsxcv For other presentational hints, like the one related to the non-zero table border, or fancy color attributes that need to be parsed, we can't avoid going through the synthesis machinery, but I'm pretty sure we prefer going through CSS for the simpler one, as mentioned by @eefriedman. |
|
You're right. I totally glossed over that first paragraph because I thought it only applied to |
|
Thanks all for the help, very helpful information to know :) Force push incoming... |
|
Ready for review |
|
Reviewed 4 of 4 files at r1. Comments from the review on Reviewable.io |
|
@bors-servo r+ |
|
|
Implement 'align' attribute for <div> elements <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7953) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
Implement 'align' attribute for <div> elements <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7953) <!-- Reviewable:end -->
|
|
frewsxcv commentedOct 10, 2015