Closed tabatkins closed 1 year ago
Indeed, specberus needs to be updated to allow that stylesheet to come after the regular one. I'll take care of that.
On a side note, I looked at the document submitted to echidna and while it's using the 2021 style, the link to the dark mode stylesheet was from the 2016 style, i.e. https://www.w3.org/StyleSheets/TR/2016/dark.css. To allow the user to switch from one mode to another, it needs to load the stylesheet from the same year (https://www.w3.org/StyleSheets/TR/2021/dark.css). I can probably update pubrules to check that as well.
Note that the logo links in the 2021 stylesheet don't work.
Note that the logo links in the 2021 stylesheet don't work.
Indeed, the files were missing. This is now fixed and the patch for the dark mode stylesheet has been deployed. Thanks for the report.
The dark-mode stylesheet has to be loaded after the base stylesheet, because the darkmode sheet sets colors with a
:root
selector that needs to override the:root
selector in the base sheet.However, Specberus rejects documents doing this:
Either Specberus needs to allow the W3C's darkmode styles to come after base, or the darkmode sheet needs to have its selector adjusted so it'll override regardless of load order.