Closed
Bug 1384691
Opened 7 years ago
Closed 7 years ago
stylo: There's another caller of HasAuthorSpecifiedRules that doesn't go through the pres context (text-shadow in selection may behave differently).
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla58
People
(Reporter: emilio, Assigned: xidorn)
References
Details
Attachments
(1 file)
This is in [1].
It's somewhat annoying because it gives us a pseudo-element style... It's presumably not terrible to implement.
That being said, stylo doesn't fail any text-shadow-selected-x tests right now...
It's only used to set mHasSelectionShadow. But there are no text-shadow UA rules, so that will always return true iff mTextShadow is non-null, I think, except for user sheets...
Anyway, need to look into it more in detail.
[1]: http://searchfox.org/mozilla-central/rev/8a61c71153a79cda2e1ae7d477564347c607cc5f/layout/generic/nsTextFrame.cpp#4111
Comment 1•7 years ago
|
||
Somewhat related to bug 1363088 (which is a bug in both Gecko and Stylo).
Depends on: 1363088
Updated•7 years ago
|
Priority: -- → P3
Assignee | ||
Comment 2•7 years ago
|
||
I'm looking into whether we can actually just remove that call as well as mHasSelectionShadow.
Assignee: nobody → xidorn+moz
Comment hidden (mozreview-request) |
Assignee | ||
Comment 4•7 years ago
|
||
try looks good (as expected): https://treeherder.mozilla.org/#/jobs?repo=try&revision=7ddde5d1b779082c7703e595ff290233ac614f3b
Updated•7 years ago
|
status-firefox55:
--- → wontfix
status-firefox56:
--- → wontfix
status-firefox57:
--- → affected
status-firefox-esr52:
--- → wontfix
Comment 5•7 years ago
|
||
This is probably OK - at least, so far I don't see why it shouldn't be, though I'd like to look at it a bit more and try to understand what the code was attempting to do. But in looking at text selection examples, I'm seeing an alarming difference between non-stylo and stylo behavior, at least on macOS. (I mention this because selection highlighting differs significantly between platforms, so it's possible this is a Mac-only regression.)
Filed bug 1401317 to look into that.
Comment 6•7 years ago
|
||
mozreview-review |
Comment on attachment 8907476 [details]
Bug 1384691 - Unconditionally set mHasSelectionShadow when -moz-selection pseudo element is used.
https://reviewboard.mozilla.org/r/179172/#review192866
Yeah, I think it should be fine to do this. Sorry for the delay here.
Attachment #8907476 -
Flags: review?(jfkthame) → review+
Pushed by xquan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5909ec7d5d53
Unconditionally set mHasSelectionShadow when -moz-selection pseudo element is used. r=jfkthame
Comment 8•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Assignee | ||
Updated•7 years ago
|
Comment 9•7 years ago
|
||
Does this need uplift to Beta or can it ride the 58 train?
Flags: needinfo?(xidorn+moz)
Assignee | ||
Comment 10•7 years ago
|
||
I don't think it's important to uplift it to Beta. Let's just have it ride the 58 train.
Flags: needinfo?(xidorn+moz)
Updated•7 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•