mask: read one image per layer of the shorthand - #1173
Merged
Conversation
CSS Masking 1 sec. 8.7 spells mask as <mask-layer>#, so a comma in the shorthand separates layers and the image slot of one layer holds one image: the comma list belongs to the mask-image longhand. The layer reader reads the longhand, so it eats the comma and then fails on a second layer that does not open with an image. Chrome 153 reads every row here, and background's own shorthand already reads a single image per layer.
The layer reader read the mask-image longhand, whose comma list is the layer separator here, so it ate the comma and then failed on a layer that did not open with an image of its own: mask: none, 50% was dropped. Sec. 8.7 spells the shorthand <mask-layer>#, and background's own layer reader already takes a single image.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mask: none, 50%andmask: url(a.png), 50%used to be dropped: the layer reader read themask-imagelonghand, whose comma list is the layer separator here, so it ate the comma and then failed on a layer that did not open with an image of its own.background's own layer reader already takes a single image.