You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove the remaining targeted inline style="" attributes and move the rules into shared CSS.
Prefer reuse of higher-level existing CSS when the rules already match or are close enough.
Create new shared CSS classes/selectors only when necessary.
PR: BUILD_PR_STYLE_INLINE_ATTR_CLEANUP_FINAL
If an inline style attribute matches or is close to rules already appropriate in a higher-level shared CSS path, reuse that CSS destination instead of creating a new file.
24
+
25
+
## Reuse-First CSS Destination Rules
26
+
1. Reuse an existing higher-level CSS file when the rules are already represented or close enough to belong there.
27
+
2. Prefer the highest reasonable shared destination that fits the file’s role.
28
+
3. Only create a new shared CSS rule/class when reuse would be incorrect.
29
+
4. Preserve current visual behavior as closely as possible.
30
+
31
+
## Required Work
32
+
1. Remove all remaining inline `style=""` attributes from the targeted files.
33
+
2. Move the rules into reused higher-level CSS where appropriate.
34
+
3. Create new shared CSS classes/selectors only when reuse would be wrong.
35
+
4. Update markup to use classes or existing selectors instead of inline styles.
36
+
5. Do not introduce new inline `style=""`.
37
+
6. Do not introduce embedded `<style>` blocks.
38
+
7. Do not introduce JS-generated styling.
39
+
8. Preserve behavior/layout as closely as possible.
40
+
41
+
## Acceptance
42
+
- targeted files no longer contain inline `style=""`
43
+
- higher-level shared CSS is reused whenever close enough
44
+
- new CSS classes/selectors are created only when necessary
0 commit comments