OSHA.gov regulations not scrollable

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
OmegaPaladin
Hobby Astronomer
Hobby Astronomer
Posts: 28
Joined: 2020-09-21, 21:26

OSHA.gov regulations not scrollable

Post by OmegaPaladin » 2025-10-20, 14:25

https://www.osha.gov/laws-regs/regulati ... umber/1910 renders the first section just fine, and the entire site is visible in view source. However, I cannot scroll down, and no scroll bars appear.

This was working as recently as two weeks ago.

Code: Select all

Content Security Policy: This site (https://www.osha.gov) has a Report-Only policy without a report URI. CSP will not block and cannot report violations of this policy.  
(unknown)
jQuery.Deferred exception: dolMenuButton[0] is undefined @https://www.osha.gov/sites/default/files/js/js_rxzBJLnQagbBgkRS7C9ebxoMYkv9OEpwI9paccWIkfI.js?scope=footer&delta=2&language=en&theme=osha&include=eJxtilEOg0AIBS-0ukfaIFDdiLABTPT2NU3Tr_7Nmze4M_U0b4BoTt20_mh-uWmyUiEajUxabnxwXcUWkCnylq5reY66mGWkw5iQ9GP-RNHJC1_5iL2SnwNk_s5isUHFM9KON504OTk:2:10954
e@https://www.osha.gov/sites/default/files/js/js_Se-1ZOpXtmXIIutwdD50-ddQ5Q7xrG5bD6g2lsbRmvE.js?scope=footer&delta=0&language=en&theme=osha&include=eJxtilEOg0AIBS-0ukfaIFDdiLABTPT2NU3Tr_7Nmze4M_U0b4BoTt20_mh-uWmyUiEajUxabnxwXcUWkCnylq5reY66mGWkw5iQ9GP-RNHJC1_5iL2SnwNk_s5isUHFM9KON504OTk:3:27028
l/</t<@https://www.osha.gov/sites/default/files/js/js_Se-1ZOpXtmXIIutwdD50-ddQ5Q7xrG5bD6g2lsbRmvE.js?scope=footer&delta=0&language=en&theme=osha&include=eJxtilEOg0AIBS-0ukfaIFDdiLABTPT2NU3Tr_7Nmze4M_U0b4BoTt20_mh-uWmyUiEajUxabnxwXcUWkCnylq5reY66mGWkw5iQ9GP-RNHJC1_5iL2SnwNk_s5isUHFM9KON504OTk:3:27330
 undefined  
js_Se-1ZOpXtmXIIutwdD50-ddQ5Q7xrG5bD6g2lsbRmvE.js:3:28648
TypeError: dolMenuButton[0] is undefined[Learn More]  
js_rxzBJLnQagbBgkRS7C9ebxoMYkv9OEpwI9paccWIkfI.js:2:10954

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2487
Joined: 2018-05-05, 13:29

Re: OSHA.gov regulations not scrollable

Post by vannilla » 2025-10-20, 16:26

The html element has the overflow-x: clip; overflow-y: visible CSS rules and that makes the document unscrollable for some reason (I really don't know what they should actually do).
Add a custom style through Stylem or equivalent to remove them, e.g. html { overflow-x: auto !important; overflow-y: auto !important } (this snippet was not tested).

But really, god forbid an actual proper document that is just a list of textual links does not need megabytes of styles and script. Out with the old, even if it works.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38484
Joined: 2011-08-28, 17:27
Location: Sweden

Re: OSHA.gov regulations not scrollable

Post by Moonchild » 2025-10-20, 18:20

vannilla wrote:
2025-10-20, 16:26
The html element has the overflow-x: clip; overflow-y: visible CSS rules and that makes the document unscrollable for some reason (I really don't know what they should actually do).
According to the spec, that combination should cut off content in the horizontal direction and "overflow" the element in the vertical direction. That kind of overflow is visual only and does not invoke scrolling. Clip explicitly makes hidden content unscrollable (that is what "cutting off/clipping" means). Since there is no "containing" element for html, this means that the "visible" overflow is virtual only (below the window).
Using clip overflow on html (or body for that matter) is a styling mistake by the webmaster if they intend to present scrollable content. They are literally instructing the browser to not scroll.

I suggest you write to OSHA and let them know about this problem. This was exposed in Pale Moon 33.9.0 and later because we started supporting overflow:clip with that version.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite