Closed
Bug 1353994
Opened 7 years ago
Closed 7 years ago
stylo: Support new color format of hsla() and rgba() defined in CSS Color Module Level 4
Categories
(Core :: CSS Parsing and Computation, enhancement, P1)
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: shinglyu, Assigned: kuoe0.tw)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
Test cases like layout/reftests/w3c-css/submitted/color4/background-color-hsl-001.html are failing because hsla() parsing only supports the following form: background-color: hsla(120, 75%, 50%, 0.4); Messing around with the commas and change the 0.4 to 40% will break it.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → kuoe0
Assignee | ||
Comment 2•7 years ago
|
||
Gecko support the new syntax of hsla defined in CSS Color Module Level 4[1]. But the cssparser[2] used in servo (stylo) doesn't support the new syntax and causes the test case failed. [1]: https://drafts.csswg.org/css-color-4/#the-hsl-notation [2]: https://github.com/manuel-woelker/rust-cssparser
Assignee | ||
Comment 3•7 years ago
|
||
I found this pull request[1] fixed this bug, and already merged into cssparser few minutes ago. So, this bug will be fixed after servo updates cssparser module. [1]: https://github.com/servo/rust-cssparser/issues/113
Comment 4•7 years ago
|
||
Great! Simon is publishing the new cssparser to crates.io now. Would you mind running |./mach vendor rust| and pushing the update?
Flags: needinfo?(kuoe0)
Comment 5•7 years ago
|
||
(You may need to cargo update -p cssparser as well, I'm not sure if mach vendor rust does an actual cargo update)
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8856871 -
Flags: review?(simon.sapin)
Attachment #8856872 -
Flags: review?(simon.sapin)
Assignee | ||
Comment 9•7 years ago
|
||
I tested locally and all test cases of color4 passed. But the try result is still running. Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=c36f78d3c5d6abae3490bcd9d1b4108df030737c
Comment 10•7 years ago
|
||
mozreview-review |
Comment on attachment 8856872 [details] Bug 1353994 - (Part 2) Update test case result. https://reviewboard.mozilla.org/r/128800/#review131310
Attachment #8856872 -
Flags: review?(simon.sapin) → review+
Comment 11•7 years ago
|
||
mozreview-review |
Comment on attachment 8856871 [details] Bug 1353994 - (Part 1) Update the version of cssparser to 0.12.2. https://reviewboard.mozilla.org/r/128798/#review131312
Attachment #8856871 -
Flags: review?(simon.sapin) → review+
Assignee | ||
Comment 12•7 years ago
|
||
For the record, this patch should be landed after this PR[1] mergerd. [1]: https://github.com/servo/servo/pull/16343
Assignee | ||
Updated•7 years ago
|
Summary: stylo: hsla() color parsing not complete → stylo: Support new color format of hsla() and rgba() defined in CSS Color Module Level 4
Comment 13•7 years ago
|
||
This bug an that PR are completely independent. Either can merge without the other.
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8856872 -
Attachment is obsolete: true
Assignee | ||
Comment 15•7 years ago
|
||
Remove the changes of reftest-stylo.list. The testcase still failed on try, and it is related to the rounding issue (See Bug 1340484).
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 16•7 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=ecf0f7d899bd7834685ba5ba2066316a5296bb6c
Keywords: checkin-needed
Comment 17•7 years ago
|
||
Autoland can't push this until it has a review in MozReview from someone with Level 3 commit access.
Keywords: checkin-needed
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8856871 -
Flags: review?(cam)
Attachment #8857285 -
Flags: review?(cam)
Assignee | ||
Comment 20•7 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=c17f8b1562de6e3504ff323e51426eb6b3db939f&selectedJob=90507423
Comment 21•7 years ago
|
||
Comment on attachment 8856871 [details] Bug 1353994 - (Part 1) Update the version of cssparser to 0.12.2. (This one doesn't need my review, since it'll land in the Servo PR.)
Attachment #8856871 -
Flags: review?(cam)
Comment 22•7 years ago
|
||
mozreview-review |
Comment on attachment 8857285 [details] Bug 1353994 - (Part 2) Update test case result. https://reviewboard.mozilla.org/r/129232/#review131858
Attachment #8857285 -
Flags: review?(cam) → review+
Comment 23•7 years ago
|
||
mozreview-review |
Comment on attachment 8856871 [details] Bug 1353994 - (Part 1) Update the version of cssparser to 0.12.2. https://reviewboard.mozilla.org/r/128798/#review131936
Attachment #8856871 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 24•7 years ago
|
||
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again. hg error in cmd: hg rebase -s b5e44d64fa59 -d 819f8b4c80b6: rebasing 389419:b5e44d64fa59 "Bug 1353994 - (Part 1) Update the version of cssparser to 0.12.2. r=heycam,SimonSapin" merging toolkit/library/gtest/rust/Cargo.lock merging toolkit/library/rust/Cargo.lock rebasing 389420:d9137dd3e1a4 "Bug 1353994 - (Part 2) Update test case result. r=heycam" (tip) merging layout/style/test/stylo-failures.md warning: conflicts while merging layout/style/test/stylo-failures.md! (edit, then use 'hg resolve --mark') unresolved conflicts (see hg resolve, then hg rebase --continue)
Updated•7 years ago
|
Keywords: checkin-needed
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 27•7 years ago
|
||
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again. hg error in cmd: hg rebase -s 00e9c7d8ac5e -d f709675d6a79: rebasing 389737:00e9c7d8ac5e "Bug 1353994 - (Part 1) Update the version of cssparser to 0.12.2. r=heycam,SimonSapin" rebasing 389738:f245281c0ac7 "Bug 1353994 - (Part 2) Update test case result. r=heycam" (tip) merging layout/style/test/stylo-failures.md warning: conflicts while merging layout/style/test/stylo-failures.md! (edit, then use 'hg resolve --mark') unresolved conflicts (see hg resolve, then hg rebase --continue)
Comment 28•7 years ago
|
||
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/eeebe28b1104 Part 1: Update the version of cssparser to 0.12.2. r=heycam, r=SimonSapin https://hg.mozilla.org/integration/autoland/rev/82362b1c852d Part 2: Update test case result. r=heycam
Keywords: checkin-needed
Comment 29•7 years ago
|
||
I took pity on your poor soul and did the rebase of Part 2 for you :P
Comment 30•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/eeebe28b1104 https://hg.mozilla.org/mozilla-central/rev/82362b1c852d
Status: NEW → RESOLVED
Closed: 7 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
•