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 upSupport all CSS units #445
Comments
|
I'm also working to add support for List of units: |
|
I believe the idea is that the style system should be normalizing all these units into a small subset. @SimonSapin is working on the new style system right now and may have more input here. |
|
There is no need to "add" non-length units as long as there is no property or other CSS feature that use them. My new style system already supports all absolute length units, |
|
@SimonSapin Should I not bother with this issue then? Perhaps off of your branch? I implemented If not, what's something I can help with (being new to Rust and Servo)? I don't want to start working on something else that's already being worked on. I noticed https://github.com/mozilla/servo/wiki/Work-items-for-new-contributors, but are all of these things available? Or are they being worked on without the issue being updated accordingly? |
|
I’m working on a new style system meant to replace rust-css and Netsurf’s libcss in servo, so any work on rust-css will probably end up duplicated. My priority is to land this new system without regressing too much, before spending much time on new features. For example, implementing ex as 0.5em is easy enough to do right now, but doing it properly requires loading fonts and is much more involved. As to what you can help with, have a look at issues labeled E-easy. |
Image mask support Closes servo#405 I'm not completely sure if this is the right approach, hoping to get some review/feedback to proceed. The API and logic works for me with `wr_sample`, although the implementation lacks a lot of features to support, like image repeating and layout transformations. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/445) <!-- Reviewable:end -->
|
@SimonSapin Can this be closed? |
|
Yes. |
I think we only really us px at the moment. Make pt, em and other units work correctly everywhere.
emex(as 0.5em)ch(as 0.5em)remvwvhvminvmaxcmmminptpcpxdeggradradturnsmsHzkHzdpidpcmdppx