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 upMake default linear-gradient() direction 'to bottom', not 'to top'. #14748
Conversation
highfive
commented
Dec 28, 2016
highfive
commented
Dec 28, 2016
|
@heycam What reftests were failing? Or was it not related to the incorrect direction? |
|
@DominoTree Oh, I guess you just got in before me. :-) There are a bunch of tests under tests/wpt/css-tests/css-images-3_dev/ that fail, but because that directory of tests is skipped by default, and there is no expectation metadata, it's hard to see which ones were failing before but would now be passing. Closing in favour of your PR. |
|
My mistake, there aren't any linear-gradient() tests under that directory. |
|
Do you think those would be the right place to add tests for this? I haven't really delved into those yet, and I added a unit test. |
|
I'm not sure what the process is for adding tests under tests/wpt/ that should be upstreamed, unfortunately. (In Firefox, we have a script that periodically upstreams changes to imported test suites like this, but I'm not sure how it works in Servo.) |
|
(Also I realise earlier you probably were asking about which Firefox reftests were failing -- the one I noticed was a print preview reftest, where we have a dark grey gradient shown behind the pages to be printed. There would be other reftests that more directly test linear-gradient() that would be failing too, but the process for sorting out all the currently failing stylo reftests is going to be a long one so I didn't notice them yet.) |
|
I was mainly asking because I was hoping you'd stumbled on some linear-gradient tests that I'd missed :D I guess I'll dive into these ref tests and see if I can make heads or tails of how to roll my own, and go from there :) |
|
@DominoTree IIRC, if your test is general enough to be upstreamed, please submit a PR to WPT test, after it merged, you can use the method described here to update the tests. |
heycam commentedDec 28, 2016
•
edited by larsbergstrom
Found this while looking at failing Firefox reftests with stylo. If a
linear-gradient()value doesn't specify a direction, then it should go from top to bottom.r? @shinglyu
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is