Reisgaar Posted December 17, 2019 Share Posted December 17, 2019 Hi, maybe you have noticed yet, but just in case: in the CSS tutorial, in the exercise 3 of "CSS text" ( https://www.w3schools.com/css/exercise.asp?filename=exercise_text3 ), when you give the correct answer it returns "Link has wrong text decoration", even copying the answer gived by the tutorial, it returns the same answer. Link to comment Share on other sites More sharing options...
Ingolme Posted December 17, 2019 Share Posted December 17, 2019 It certainly seems to be broken. There's no real way to get in contact with the staff except by using the "Report Error" link at the bottom of the tutorial pages. Link to comment Share on other sites More sharing options...
Abdul Zahoor Posted January 12, 2020 Share Posted January 12, 2020 Kindly click on "Staff" in the menu and tell them this error. I completed 137/138 CSS exercises but only left is this one due to this error. Link to comment Share on other sites More sharing options...
Steven1 Posted January 14, 2020 Share Posted January 14, 2020 Same here but pretty remedial stuff with lots of online examples. Link to comment Share on other sites More sharing options...
Funce Posted January 14, 2020 Share Posted January 14, 2020 Be aware that the recent version of Firefox is having some issues with some of the exercises. As an alternative, Chrome works just fine on this question. 1 Link to comment Share on other sites More sharing options...
Ingolme Posted January 15, 2020 Share Posted January 15, 2020 Right, blame the fox. 1 Link to comment Share on other sites More sharing options...
Steven1 Posted January 15, 2020 Share Posted January 15, 2020 9 hours ago, Ingolme said: Right, blame the fox. I just tried in Chrome and it works but Firefox reports an error. This is weird that this is browser independent. Mind= blown. Link to comment Share on other sites More sharing options...
Funce Posted January 15, 2020 Share Posted January 15, 2020 16 hours ago, Ingolme said: Right, blame the fox. Oh no, Ingolme!!! 7 hours ago, Steven1 said: I just tried in Chrome and it works but Firefox reports an error. This is weird that this is browser independent. Mind= blown. It seems to be an interesting behaviour of window.getComputedStyle() and getPropertyValue("text-decoration") Its important to note, that the exercise checks for the existence of none inside this property value. On Firefox, when you've defined the text-decoration as none it actually removes the text-decoration-line(default: underline) and text-decoration-style(solid) keywords from the text-decoration property value. So you're only left with the text-decoration-color. Hence the process fails. On Chrome, text-decoration is property that seems to be directly combined from text-decoration-line, text-decoration-style, and text-decoration-color. Hence none exists, the process succeeds, and the question is marked correct. If the question checked for text-decoration-line instead of generic text-decoration, this question would no longer be an issue. I agree, this is very interesting stuff! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now