Steps to replicate the issue (include links if applicable):
- Open e.g. https://en.wikipedia.org/w/index.php?title=Main_Page&oldid=1225257602&useskin=vector&safemode=1
What happens?:
The message "This is an old revision of this page" at the top is not styled. Running mw.loader.load('codex-styles') makes it styled.
What should have happened instead?:
The message is styled from the beginning.
Requirement
Ensure that the permalink warning message “This is an old revision of this page” is properly styled from the start in non-Vector 2022 skins. The message should be styled without requiring additional scripts such as mw.loader.load(‘codex-styles’).
BDD
Feature: Correct styling for permalink warning in non-V22 skins Scenario: Styling of permalink warning in non-V22 skin Given the user is viewing an old revision of a page in a non-V22 skin When the "This is an old revision of this page" message is displayed Then the message should be styled properly without additional script loading.
Test Steps
Test Case 1: Verify styling of permalink warning in non-V22 skins
- Open https://en.wikipedia.org/w/index.php?title=Main_Page&oldid=1225257602&useskin=vector&safemode=1.
- Look for the “This is an old revision of this page” message at the top of the page.
- AC1: Confirm that the message is styled without manually loading additional scripts like mw.loader.load(‘codex-styles’).
https://phabricator.wikimedia.org/T376848#10257228
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | ✅ | T376848#10257228 |