Closed
Bug 1357350
Opened 8 years ago
Closed 8 years ago
stylo: setting border shorthands should reset longhands of border-image to their initial value
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: chenpighead, Assigned: chenpighead)
References
()
Details
Attachments
(1 file, 1 obsolete file)
Setting border and border-[side] shorthands should reset longhands of border-image to their initial value. There're ~70 test failures related to this. Let's fix it.
Spec: https://drafts.csswg.org/css-backgrounds-3/#the-border-shorthands
Servo issue: https://github.com/servo/servo/issues/15202
Comment hidden (mozreview-request) |
Comment 2•8 years ago
|
||
mozreview-review |
Comment on attachment 8859257 [details]
Bug 1357350 - reset longhands of border-image to their initial value while parsing border shorthand.
https://reviewboard.mozilla.org/r/131274/#review134014
Do you need to some test expectation adjustments in this bug too?
::: servo/components/style/properties/shorthand/border.mako.rs:113
(Diff revision 1)
> + // The ‘border-[side]’ shorthand resets ‘border-image’ to its initial value.
> + // See https://drafts.csswg.org/css-backgrounds-3/#the-border-shorthands
> + % for name in "outset repeat slice source width".split():
> + border_image_${name}: border_image_${name}::get_initial_specified_value(),
> + % endfor
I don't think the spec says to reset the border-image properties when the border-{top,right,bottom,left} shorthands are used.
Attachment #8859257 -
Flags: review?(cam) → review-
Assignee | ||
Comment 3•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8859257 [details]
Bug 1357350 - reset longhands of border-image to their initial value while parsing border shorthand.
https://reviewboard.mozilla.org/r/131274/#review134014
Yes, I'll upload this part once I get the try result.
> I don't think the spec says to reset the border-image properties when the border-{top,right,bottom,left} shorthands are used.
Yeah, you're right. I guess I misunderstood the words in the spec...
Assignee | ||
Updated•8 years ago
|
Summary: stylo: setting border and border-[side] shorthands should reset longhands of border-image to their initial value → stylo: setting border shorthands should reset longhands of border-image to their initial value
Comment hidden (mozreview-request) |
Comment 5•8 years ago
|
||
mozreview-review |
Comment on attachment 8859257 [details]
Bug 1357350 - reset longhands of border-image to their initial value while parsing border shorthand.
https://reviewboard.mozilla.org/r/131274/#review134116
Looks good, thanks!
Attachment #8859257 -
Flags: review?(cam) → review+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 8•8 years ago
|
||
Update test expectations based on try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e37e49d4b27738c7f7dd11d6844271613ed0c2ba&selectedJob=92549661
Assignee | ||
Comment 9•8 years ago
|
||
servo PR: https://github.com/servo/servo/pull/16522
try with test expectations update: https://treeherder.mozilla.org/#/jobs?repo=try&revision=b60ef8e6024d2134891d090d37647dcb8ff72755
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8859257 -
Attachment is obsolete: true
Comment 11•8 years ago
|
||
mozreview-review |
Comment on attachment 8859434 [details]
Bug 1357350 - update test expectations for reseting longhands of border-image while parsing border shorthand.
https://reviewboard.mozilla.org/r/131468/#review135514
\o/, thanks for doing this Jeremy!
Attachment #8859434 -
Flags: review+
Comment 12•8 years ago
|
||
Pushed by jichen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/47061b2e66cb
update test expectations for reseting longhands of border-image while parsing border shorthand. r=emilio
Comment 13•8 years ago
|
||
bugherder |
Status: ASSIGNED → 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
•