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)

defect
Not set
normal

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 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-
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...
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 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+
Attachment #8859257 - Attachment is obsolete: true
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+
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
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: