Don't handle unitless length quirk in CSS parser fast path
This patch makes the CSS parser fast path reject unitless length (aside
from 0 and presentational svg attributes). The quirks mode spec allows
unitless lengths on a fixed set of CSS properties, which we correctly
handle inside the (full) property parser. Currently we will allow any
unitless lengths for any fast path length property when quirks mode is
enabled, instead of the smaller set where it is supposed to apply.
As quirks-mode is not a common case, we just don't support the unitless
length quirk at all in the fast path.
This patch also extends the property-parsing-test helper to allow for
quirks-mode-only values (which are rejected by CSS.supports) and also
fixes the test description for properties with hyphens.
https://quirks.spec.whatwg.org/#the-unitless-length-quirk
BUG=436145
Review URL: https://codereview.chromium.org/1475903002
Cr-Commit-Position: refs/heads/master@{#361619}
3 files changed