DescriptionEmpty @viewport should not override legacy viewport.
@viewport styles should not be considered present in author styles if there is
not a single descriptor present. This is not specified anywhere, though.
Marking the ViewportStyleResolver with author styles present when there were
no descriptors caused an assert to trigger (see mentioned BUG). This is fixed
by always require at least one descriptor to be present in order to set the
flag for author style presence, keeping the assert.
As part of this fix, collectViewportRules was refactored into
ViewportStyleResolver to resolve a FIXME in the StyleResolver.
BUG=299719
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158625
Patch Set 1 #
Total comments: 1
Messages
Total messages: 8 (0 generated)
|