w3c / sdw

Repository for the Spatial Data on the Web Working Group
https://www.w3.org/2020/sdw/
148 stars 81 forks source link

Example 3 in Chapter 9 - inconsistent font colour #1371

Closed Iza82 closed 1 year ago

Iza82 commented 1 year ago

Southwest viewport has a black font colour (should be green).

PeterParslow commented 1 year ago

Tricky, because it sits in an HTML pre block; there is no style information within the block. There is no style defined for "pre" in index.html

The block has been copied from https://developers.google.com/maps/documentation/geocoding/requests-geocoding (with the lats & longs truncated from their ridiculous "precision")

Thanks to Firefox, I can tell that it acquires styles from code.hljs.css. I can see that strings which occur after } are treated as plain text rather than "hljs-string" (so "location_type" is black too). I guess this is https://highlightjs.org/, but I don't know which part of our system imports it - so I can't tell what version "we" (or the browsers?) are using, so I don't know whether to raise an issue at https://github.com/highlightjs/highlight.js

I propose "wontfix"