Page MenuHomePhabricator

Added `-` to the whitelist for CSS rules
ClosedPublic

Authored by jcox on Sep 8 2016, 8:25 PM.
Tags
None
Referenced Files
F19941270: D16519.id39757.diff
Wed, Apr 15, 9:34 AM
F19939398: D16519.id39756.diff
Tue, Apr 14, 1:52 PM
F19895446: D16519.id39757.diff
Sat, Mar 28, 9:10 PM
F19834927: D16519.id39757.diff
Mar 11 2026, 6:08 AM
F19814042: D16519.diff
Mar 4 2026, 12:04 PM
F19811883: D16519.diff
Mar 4 2026, 2:52 AM
F19626768: D16519.id39756.diff
Feb 4 2026, 8:32 PM
F19560006: D16519.id39756.diff
Jan 31 2026, 5:23 AM

Details

Summary

Fixes T11567. This way people can use things like sans-serif and -webkit-small-control for their "monospaced" font

Test Plan

I added the hyphen to the regex then was able to set my Monospaced Font to be anything with a hyphen in it.

I also tried to break it pretty extensively, but couldn't find anything that would let me write malicious CSS or JS.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jcox retitled this revision from to Added `-` to the whitelist for CSS rules.
jcox updated this object.
jcox edited the test plan for this revision. (Show Details)
jcox edited edge metadata.
This revision is now accepted and ready to land.Sep 8 2016, 8:26 PM
This revision was automatically updated to reflect the committed changes.