Repository navigation
fix(reset): leave audio, object, embed and image inputs to the browser - #131
Conversation
The first rule of the reset unsets every property and reverts display alone, so <audio controls> lost the size the browser stylesheet gives it: 0x0 in Chrome (280x0 under an author width), 44px wide in Safari 17.6. The New CSS Reset has excluded audio since 1.7.3, and this copy predates that version. object, embed and input[type=image] lost the size set by their width and height attributes, which the unset overrides, the reason img, iframe, canvas and video were already excluded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
WalkthroughThe universal reset selector now excludes ChangesReset exclusions
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to
|
|
There was a problem hiding this comment.
🔇 Additional comments: 3
src/reset.scss: 2
7-8: LGTM!
18-21: LGTM!CHANGELOG.md-9-9: 1
9-9: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
⚠️ Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.Complete the opening sentence.
The first bullet is a sentence fragment. Add a subject and verb so readers can parse the reported behavior clearly.
Suggested correction
-* An `<audio controls>` laid out with no size, so its controls were in the DOM and nothing showed. +* An `<audio controls>` element had no size, so its controls remained in the DOM but were not visible.
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Organization UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
fd2a45c5-2c35-411f-b299-aa381de306b8
📒 Files selected for processing: 2
CHANGELOG.mdsrc/reset.scss
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.



What
The first rule of the reset (
all: unset; display: revert) now leavesaudio,object,embedandinput[type='image']alone, next tovideo.Why
<audio controls>takes its size from the browser stylesheet, which the reset removed. Chrome laid it out 0x0 (280x0 under an author width), and Safari 17.6 shrank it to 44px wide. The New CSS Reset has excludedaudiosince 1.7.3, and our copy predates that version.object,embedand image inputs lost the size set by theirwidth/heightattributes.Verification
Measured in Chrome 155 and Safari 17.6 (light and dark themes): audio 280x54 / 250x31, audio without
controlsstill hidden, attribute-sized object/embed/image input back to 400x200. Firefox not measured.dist/changes only in the reset selector.For consumers
Apps that added
all: revertto their<audio>elements as a workaround can drop it once they are on this release.🤖 Generated with Claude Code
Summary by CodeRabbit