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 upText color is not updated when a class is toggled #7814
Comments
|
Out of curiosity, does it update if you resize the window or move the mouse over the text? |
|
If I do something like |
|
I suspect this occurs because modifying the class attribute through the DOMSettableToken list doesn't end up marking the node as dirty. Modifying the class attribute directly goes through this path instead, which would mark it dirty. |
|
I suspect the DOMSettableToken methods that mutate attributes should explicitly mark the relevant element as dirty. |
|
That makes no sense. The attribute changing code should handle this; there's even code in |
|
Yes, I verified that the node is correctly marked dirty. Also, changing to use |
|
Debugging shows that style recalc runs as expected, and
Disabling incremental layout makes the test case work correctly. |
|
The problem is that I think this case should just |
Incremental layout: Don't try to repair text fragment styles Fixes #7814. r? @pcwalton <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7821) <!-- Reviewable:end -->
Incremental layout: Don't try to repair text fragment styles Fixes #7814. r? @pcwalton <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7821) <!-- Reviewable:end -->
In Firefox, text color changes from green to red. In Servo, nothing happen.