mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
b2df8f0384
Use background-size, background-position properties to render CSS gradients. Some cleanup in display_list_builder.rs related to gradient calculations. Adds two wpt tests for tiled gradients. Note: For now even gradients with background-repeat: no-repeat are repeated. Sometimes the gradient is not repeated everywhere. Resolves partially #19482. (See the mentioned website for example gradients with these features) See also: #16657 and #10412 Some glitches can be seen in the attached file. I am unsure what the exact intended semantics of [`push_gradient`](https://doc.servo.org/webrender_api/struct.DisplayListBuilder.html#method.push_gradient) are and want to ask the webrender team before building in "workarounds" for the missing gradients. ![half-rhombes](https://user-images.githubusercontent.com/2781017/33958051-b16f964a-e043-11e7-8218-b28388e2cf8d.png) Source-Repo: https://github.com/servo/servo Source-Revision: 6ee8e6a1684d6dbc65933da11ce1a2c8ba660442 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 96cc2524eaba5602eba84d6aa314e5ddaa9a9dc1 |
||
---|---|---|
.. | ||
display_list | ||
platform | ||
text | ||
Cargo.toml | ||
font_cache_thread.rs | ||
font_context.rs | ||
font_template.rs | ||
font.rs | ||
lib.rs |