DescriptionDon'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
Committed: https://crrev.com/a7764c8c92fca51d53e7129e601c3b8b9e7bffce
Cr-Commit-Position: refs/heads/master@{#361619}
Patch Set 1 #
Messages
Total messages: 9 (4 generated)
|