Something went wrong. Try again.
we (web engine): Experimental web browser project to understand the limits of Claude
Something went wrong. Try again.
Fix em resolution and add missing position offset properties master
- Fix em unit resolution for non-font-size properties: em now resolves relative to the element's own computed font-size (per CSS spec) instead of the parent's font-size. Font-size itself already correctly uses parent font-size for em resolution in its own handler. - Add missing 'right' and 'left' position offset property handling in apply_property (only 'top' and 'bottom' were handled). - Update em_margin_relative_to_font_size test to assert correct value (2em * 20px = 40px, not 2em * 16px = 32px). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author Pierre Le Fevre Co-author Claude Opus 4.6 Date (Mar 4, 2026, 8:16 PM UTC) Commit 52158e83 52158e83ae01d356cc614db236817b7825bae8b3 Parent b337e17e b337e17e4d17029c0b1ac272f00eb003edd7c3f4