Jump to content

Wikipedia:Reference desk/Archives/Computing/2019 September 23

From Wikipedia, the free encyclopedia
Computing desk
< September 22 << Aug | September | Oct >> September 24 >
Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


September 23[edit]

Acid3 question[edit]

How does the Acid3 test know how the browser did on the test? Can it somehow "see" the rendered output as a visual image? JIP | Talk 07:56, 23 September 2019 (UTC)[reply]

Those are not images. They are HTML paragraph tags with some CSS applied to it which makes it look unusual. It uses Javascript to colour em in. I don't know if you know Javascript but if you do you can visit acid3.acidtests.org and look at the source code. Its a long script that tries to do a bunch of stuff that should not work and a bunch of stuff that should work and displays the result to the user. Poveglia (talk) 08:21, 23 September 2019 (UTC)[reply]
Here, an example in CSS (you can look at the source to see how I did it):

Pizza

Poveglia (talk) 08:33, 23 September 2019 (UTC)[reply]
The person who wrote it is at least 7 times smarter than I am.
assertEquals(r.toString(), "Hello Wonderful KittyHow are you?", "toString() on range selecting Document gave wrong output");
Poveglia (talk) 08:51, 23 September 2019 (UTC)[reply]