Invalid background styling should resolve to `none` rather than `Ignore` when HCM is enabled
Categories
(Core :: Layout, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: morgan, Assigned: emilio)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Pasted from :emilio's phab comment :)
<!doctype html>
<style>
body { margin: 0 }
div {
width: 100vw;
height: 100vh;
background-image: url("red.png");
}
div {
background-image: linear-gradient(blue, blue);
}
</style>
<div></div>
The issue is that we're returning Ignore for linear-gradient, but Apply for the url. We should probably treat the linear-gradient as either none, or revert instead. The easiest is to pass an &mut Cow<PropertyDeclaration> instead of &PropertyDeclaration for this case, I suspect, and turn it into a none declaration.
That being said, this is already an issue for color as well, see:
<!doctype html>
<style>
body { margin: 0 }
div {
width: 100vw;
height: 100vh;
color: transparent;
}
div {
color: black;
}
</style>
<div>You should see me.</div>
Assignee | ||
Comment 2•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Comment 4•5 years ago
|
||
bugherder |
Description
•