Repository navigation
Implement getComputedStyle - #6798
Conversation
|
16,100 lines added?! |
|
15000+ of those were components/style/properties/mod.rs |
|
@SimonSapin is there a way to avoid duplicating so much of the serialization work for specified and computed values? |
|
I’ll think about it but I don’t have a clever idea right now, sorry. I have tried to make adding a new property less involved than in Gecko, but there might be more to do in that direction. |
There was a problem hiding this comment.
Just say FIXME: Implement pseudo-elements here—I'm not a fan of commented-out code.
There was a problem hiding this comment.
Just fixed it instead.
|
☔ The latest upstream changes (presumably #6794) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@pcwalton re-r? |
|
This also needs rebasing. |
|
I kept the parts split up in case you had already reviewed some of it. Let me know if you want me to squash |
|
Looks good, squash and I'll r+! |
|
@bors-servo: r+ |
|
📌 Commit 9eb7b5b has been approved by |
Implement getComputedStyle It's not quite done but can probably be reviewed anyway. I still need to finish up a few of the ToCss impls, I just got lazy and wanted to make sure things worked. The computation of the used values is definitely not right, I'm going to investigate that. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6798) <!-- Reviewable:end -->
|
💔 Test failed - mac3 |
|
|
@dzbarsky Did you discover what was wrong with the test? |
|
@bors-servo: r+ |
|
📌 Commit c75d92a has been approved by |
|
@bors-servo: r- |
|
@bors-servo: r+ |
|
📌 Commit c75d92a has been approved by |
|
⌛ Testing commit c75d92a with merge a6bda6c... |
Implement getComputedStyle It's not quite done but can probably be reviewed anyway. I still need to finish up a few of the ToCss impls, I just got lazy and wanted to make sure things worked. The computation of the used values is definitely not right, I'm going to investigate that. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6798) <!-- Reviewable:end -->
|
💔 Test failed - mac1 |
|
|
@bors-servo: r+ |
|
📌 Commit e484d6b has been approved by |
Implement getComputedStyle It's not quite done but can probably be reviewed anyway. I still need to finish up a few of the ToCss impls, I just got lazy and wanted to make sure things worked. The computation of the used values is definitely not right, I'm going to investigate that. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6798) <!-- Reviewable:end -->
It's not quite done but can probably be reviewed anyway.
I still need to finish up a few of the ToCss impls, I just got lazy and wanted to make sure things worked.
The computation of the used values is definitely not right, I'm going to investigate that.