Closed
Bug 1354000
Opened 8 years ago
Closed 8 years ago
stylo: stylo doesn't understand moz-prefixed -moz-crisp-edges
Categories
(Core :: CSS Parsing and Computation, enhancement, P1)
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: shinglyu, Assigned: tommykuo)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
Stylo accepts "image-rendering:crisp-edges", not "image-rendering:-moz-crisp-edges". But gecko (and many testcases) still use -moz-crisp-edges.
Should we:
1. Add both to the reftests?
2. Ship "crisp-edges" in Firefox?
3. Make Servo/Stylo understand "-moz-crisp-edges"?
Reporter | ||
Comment 1•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → kuoe0
Comment 2•8 years ago
|
||
(In reply to Shing Lyu [:shinglyu] from comment #0)
> Stylo accepts "image-rendering:crisp-edges", not
> "image-rendering:-moz-crisp-edges". But gecko (and many testcases) still use
> -moz-crisp-edges.
Nice find! That looks like a lot of tests. Looks like Tommy is going to work on it?
>
> Should we:
> 1. Add both to the reftests?
> 2. Ship "crisp-edges" in Firefox?
> 3. Make Servo/Stylo understand "-moz-crisp-edges"?
In general, we should do option (3). Changing the prefixes that Firefox ships is out of scope for stylo. I think this is probably a one-line annotation in the relevant .mako.rs file to enable the prefix on gecko builds.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8855664 -
Flags: review?(cam)
Attachment #8855665 -
Flags: review?(cam)
Updated•8 years ago
|
Summary: stylo: stylo doesn't understand moz-prefixed -moz-crips-edges → stylo: stylo doesn't understand moz-prefixed -moz-crisp-edges
Comment 7•8 years ago
|
||
mozreview-review |
Comment on attachment 8855664 [details]
Bug 1354000 - (Part 1) Make stylo recognize -moz-crisp-edges keyword.
https://reviewboard.mozilla.org/r/127520/#review130260
Attachment #8855664 -
Flags: review?(cam) → review+
Comment 8•8 years ago
|
||
mozreview-review |
Comment on attachment 8855665 [details]
Bug 1354000 - Update test result.
https://reviewboard.mozilla.org/r/127522/#review130262
Nice!
Attachment #8855665 -
Flags: review?(cam) → review+
Updated•8 years ago
|
Priority: -- → P1
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 15•8 years ago
|
||
Hi Cameron, can you take a look the newer patch? I made some changes on it.
Flags: needinfo?(cam)
Comment 16•8 years ago
|
||
mozreview-review |
Comment on attachment 8855664 [details]
Bug 1354000 - (Part 1) Make stylo recognize -moz-crisp-edges keyword.
https://reviewboard.mozilla.org/r/127520/#review131368
::: servo/components/style/properties/longhand/inherited_box.mako.rs:83
(Diff revisions 2 - 5)
> - "auto crisp-edges",
> + "auto",
> extra_gecko_values="optimizespeed optimizequality -moz-crisp-edges",
> - extra_servo_values="pixelated",
> + extra_servo_values="pixelated crisp-edges",
> custom_consts=image_rendering_custom_consts,
> - animatable=False,
> + animation_type="none",
> + needs_conversion="True",
Did you find this one was needed? If not, please remove it. The comment at http://searchfox.org/mozilla-central/rev/624d25b2980cf5f83452b040e6d664460f9b7ec5/servo/components/style/properties/helpers.mako.rs#401 (this from_gecko_keyword function is generated when needs_conversion="True") seems like it's only intended for properties set by presentation attributes.
Otherwise, the patch looks good.
Updated•8 years ago
|
Flags: needinfo?(cam)
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 19•8 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=ecf0f7d899bd7834685ba5ba2066316a5296bb6c
Keywords: checkin-needed
Comment 20•8 years ago
|
||
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/c3e3315e68fb
(Part 1) Make stylo recognize -moz-crisp-edges keyword. r=heycam
https://hg.mozilla.org/integration/autoland/rev/979d89d569f2
(Part 2) Update test result. r=heycam
Keywords: checkin-needed
Comment 21•8 years ago
|
||
backed out https://hg.mozilla.org/integration/autoland/rev/979d89d569f2 for touching things under servo/
https://hg.mozilla.org/integration/autoland/rev/d0e97ee3f273
Flags: needinfo?(kuoe0)
Comment 23•8 years ago
|
||
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8855664 -
Attachment is obsolete: true
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Comment 25•8 years ago
|
||
Pushed by cmccormack@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4c23ea4277b6
Update test result. r=heycam
Keywords: checkin-needed
Comment 26•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•