Closed
Bug 1364273
Opened 8 years ago
Closed 8 years ago
stylo: Initial value of mask-repeat should be repeat instead of no-repeat
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
RESOLVED
FIXED
People
(Reporter: xidorn, Assigned: u459114)
References
Details
(Whiteboard: [stylo])
Attachments
(1 file, 1 obsolete file)
This is revealed by test layout/style/test_computed_style.html that there is a difference between Stylo and Gecko that Gecko fails to serialize the computed value of mask shorthand there.
It is because Gecko checks whether all subproperties of mask except mask-image are initial for serializing the computed value [1].
This check fails for "mask: url(#mask)" because in Stylo, mask-repeat is set to "no-repeat" for initial, while Gecko checks it against "repeat".
The spec seems to agree with Servo that initial value of mask-repeat is "no-repeat", and it specially notes that its initial value is different from background-repeat (which is "repeat").
However, although Blink doesn't have mask-repeat, its initial value of -webkit-mask-repeat seems to be "repeat", which matches Gecko.
It is unclear to me whether we should change Gecko to match the spec (and Servo) or we should change Servo (and spec) to match Gecko and Blink.
[1] https://dxr.mozilla.org/mozilla-central/rev/3b96f277325747fe668ca8cd896d2f581238e4ee/layout/style/nsComputedDOMStyle.cpp#6361-6377
Reporter | ||
Comment 1•8 years ago
|
||
CJ, what do you think about this?
Flags: needinfo?(cku)
Whiteboard: [stylo]
Comment 2•8 years ago
|
||
Per bug 1346193 the WG agreed to change the initial value to "repeat", but the spec change still hasn't been made yet.
Reporter | ||
Comment 3•8 years ago
|
||
Ok, so we should change Stylo to match the resolution.
Flags: needinfo?(cku)
Summary: Initial value of mask-repeat should be no-repeat rather than repeat → stylo: Initial value of mask-repeat should be repeat instead of no-repeat
Comment hidden (mozreview-request) |
Attachment #8867611 -
Flags: review?(cam)
Comment 5•8 years ago
|
||
mozreview-review |
Comment on attachment 8867611 [details]
Bug 1364273 - Change mask-repeat initial value from no-repeat to repeat.
https://reviewboard.mozilla.org/r/139176/#review142402
::: commit-message-e66de:1
(Diff revision 1)
> +Bug 1364273 - Change mask-repeat initial value from no-preat to repeat.
no-repeat
Attachment #8867611 -
Flags: review?(cam) → review+
Comment hidden (mozreview-request) |
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Comment hidden (mozreview-request) |
Attachment #8867611 -
Attachment is obsolete: true
Attachment #8867976 -
Flags: review?(cku)
Comment on attachment 8867976 [details]
Bug 1364273 - (followup) update stylo-failures.md to reduce failure count of mask.
https://reviewboard.mozilla.org/r/139514/#review142858
Attachment #8867976 -
Flags: review?(cku) → review+
Comment 10•8 years ago
|
||
Pushed by cku@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6028e667129f
(followup) update stylo-failures.md to reduce failure count of mask. r=cjku
Comment 11•8 years ago
|
||
bugherder |
You need to log in
before you can comment on or make changes to this bug.
Description
•