-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
www.newyorker.com - text is not visible #2231
Comments
This is basically due to |
The CSS for this part is [data-smart-underline-container-id="2"] [data-smart-underline-link-color="rgb(0, 0, 0)"][data-smart-underline-link-always],
[data-smart-underline-container-id="2"] [data-smart-underline-link-color="rgb(0, 0, 0)"][data-smart-underline-link-hover]:hover, [data-smart-underline-container-id="2"] [data-smart-underline-link-color="rgb(0, 0, 0)"][data-smart-underline-link-always]:visited,
[data-smart-underline-container-id="2"] [data-smart-underline-link-color="rgb(0, 0, 0)"][data-smart-underline-link-hover]:visited:hover {
color: rgb(0, 0, 0);
text-decoration: none !important;
text-shadow: 0.03em 0 rgb(255, 255, 255), -0.03em 0 rgb(255, 255, 255), 0 0.03em rgb(255, 255, 255), 0 -0.03em rgb(255, 255, 255), 0.06em 0 rgb(255, 255, 255), -0.06em 0 rgb(255, 255, 255), 0.09em 0 rgb(255, 255, 255), -0.09em 0 rgb(255, 255, 255), 0.12em 0 rgb(255, 255, 255), -0.12em 0 rgb(255, 255, 255), 0.15em 0 rgb(255, 255, 255), -0.15em 0 rgb(255, 255, 255);
background-color: transparent;
background-image: -webkit-linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)), -webkit-linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)), -webkit-linear-gradient(rgb(0, 0, 0), rgb(0, 0, 0));
background-image: -moz-linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)), -moz-linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)), -moz-linear-gradient(rgb(0, 0, 0), rgb(0, 0, 0));
background-image: -o-linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)), -o-linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)), -o-linear-gradient(rgb(0, 0, 0), rgb(0, 0, 0));
background-image: -ms-linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)), -ms-linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)), -ms-linear-gradient(rgb(0, 0, 0), rgb(0, 0, 0));
background-image: linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)), linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)), linear-gradient(rgb(0, 0, 0), rgb(0, 0, 0));
-webkit-background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
-moz-background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
background-repeat: no-repeat, no-repeat, repeat-x;
}
[data-smart-underline-container-id="2"] [data-smart-underline-link-color="rgb(0, 0, 0)"][data-smart-underline-link-always]::selection,
[data-smart-underline-container-id="2"] [data-smart-underline-link-color="rgb(0, 0, 0)"][data-smart-underline-link-hover]::selection:hover {
text-shadow: 0.03em 0 #b4d5fe, -0.03em 0 #b4d5fe, 0 0.03em #b4d5fe, 0 -0.03em #b4d5fe, 0.06em 0 #b4d5fe, -0.06em 0 #b4d5fe, 0.09em 0 #b4d5fe, -0.09em 0 #b4d5fe, 0.12em 0 #b4d5fe, -0.12em 0 #b4d5fe, 0.15em 0 #b4d5fe, -0.15em 0 #b4d5fe;
background: #b4d5fe;
}
[data-smart-underline-container-id="2"] [data-smart-underline-link-color="rgb(0, 0, 0)"][data-smart-underline-link-always]::-moz-selection,
[data-smart-underline-container-id="2"] [data-smart-underline-link-color="rgb(0, 0, 0)"][data-smart-underline-link-hover]::-moz-selection:hover {
text-shadow: 0.03em 0 #b4d5fe, -0.03em 0 #b4d5fe, 0 0.03em #b4d5fe, 0 -0.03em #b4d5fe, 0.06em 0 #b4d5fe, -0.06em 0 #b4d5fe, 0.09em 0 #b4d5fe, -0.09em 0 #b4d5fe, 0.12em 0 #b4d5fe, -0.12em 0 #b4d5fe, 0.15em 0 #b4d5fe, -0.15em 0 #b4d5fe;
background: #b4d5fe;
}[data-smart-underline-link-background-position="68"] {
background-position: 0% 68%, 100% 68%, 0% 68%;
}[data-smart-underline-link-background-position="69"] {
background-position: 0% 69%, 100% 69%, 0% 69%;
} The user agent stylesheet in Blink has something interesting
The issue comes the property with
Selection should be supported by Firefox as said in https://developer.mozilla.org/en-US/docs/Web/CSS/::selection but the issue might be with the selector itself. In the console we can see:
|
Though at the same time… it doesn't seem to work :) in Firefox Let's see if there is an open bug about this. |
There are discussions for removing the prefix https://bugzilla.mozilla.org/show_bug.cgi?id=509958 aka It's indeed weird. @dholbert might know who at Mozilla knows this part of the code. |
|
I don't know anything special here; I probably would've found & directed you to the bugs that you already mentioned, particularly bug 509958. dbaron's comments on that bug (comment 2 & 4) seem particularly relevant; it sounds like |
Thanks Daniel After testing a bit further https://codepen.io/anon/pen/EPOBNL |
Let me put back in needs-diagnosis to really identify what needs to be changed before we look for contacts |
I put the excerpt of the code setting the style with JS. |
@hallvors could you test on windows? if the same thing is happening. |
Selecting text makes the link look weird here on Windows too. Looks like a text-shadow effect. |
They must have changed something because the issue has disappeared. |
URL: http://www.newyorker.com/culture/cultural-comment/everyone-hates-martin-shkreli-everyone-is-missing-the-point
Browser / Version: Firefox 47.0
Operating System: Linux
Problem type: Text is not visible
Steps to Reproduce
Expected Behavior:
Selected underlined hyperlink text should be visible
Actual Behavior:
Font is distorted upon selection and un-readable
The text was updated successfully, but these errors were encountered: