Commit-Queue | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code mostly LGTM just a question about the lists
constexpr EDisplay kValidDisplayStyles[] = {
With such a big list, it'd be good to link to a spec or something explaining what is in, and perhaps more importantly, what is missing from this list.
In fact, would it not be better to instead list what's *not* allowed?
". Only block, flex, inline-* and masonry values are supported."}));
Reflecting the above comment - it'd be more helpful to name the things that are forbidden.
testDisplayValue("block", "");
testDisplayValue("inline-block", "");
testDisplayValue("inline", "style_invalid");
Perhaps this should be a more complete list?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Commit-Queue | +1 |
With such a big list, it'd be good to link to a spec or something explaining what is in, and perhaps more importantly, what is missing from this list.
In fact, would it not be better to instead list what's *not* allowed?
Done
". Only block, flex, inline-* and masonry values are supported."}));
Reflecting the above comment - it'd be more helpful to name the things that are forbidden.
Done
testDisplayValue("block", "");
testDisplayValue("inline-block", "");
testDisplayValue("inline", "style_invalid");
Perhaps this should be a more complete list?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Nice, thank you for the changes. LGTM.
constexpr EDisplay kValidDisplayStyles[] = {
Andy PaicuWith such a big list, it'd be good to link to a spec or something explaining what is in, and perhaps more importantly, what is missing from this list.
In fact, would it not be better to instead list what's *not* allowed?
Done
Ha - guess the "deny" list is slightly larger, mostly because of kTable*. Still, thanks for making this change, I think it's easier to understand.
I wonder if you could use IsDisplayTableType() from ComputedStyle? Ok if not.
". Only block, flex, inline-* and masonry values are supported."}));
Andy PaicuReflecting the above comment - it'd be more helpful to name the things that are forbidden.
Done
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Commit-Queue | +1 |
@mas...@chromium.org since in the meantime a dependent CL was reverted (more details in the description) and this CL re-adds it (and also fixes the issue in the process), please re-review.
@tun...@chromium.org please verify that this new version will not run into the same issue as the CL which was reverted
constexpr EDisplay kValidDisplayStyles[] = {
Andy PaicuWith such a big list, it'd be good to link to a spec or something explaining what is in, and perhaps more importantly, what is missing from this list.
In fact, would it not be better to instead list what's *not* allowed?
Mason FreedDone
Ha - guess the "deny" list is slightly larger, mostly because of kTable*. Still, thanks for making this change, I think it's easier to understand.
I wonder if you could use IsDisplayTableType() from ComputedStyle? Ok if not.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
LayoutObject* layout_object = GetLayoutObject();
off topic: as you mentioned, layout_object is not guaranteed not null. Looks like this does not 100% correct anymore, and I am also curious if the IntersectionObserver is still working with display:inline or display:content.
If IO does not work at all, I think we have to restrict the display values.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
LayoutObject* layout_object = GetLayoutObject();
off topic: as you mentioned, layout_object is not guaranteed not null. Looks like this does not 100% correct anymore, and I am also curious if the IntersectionObserver is still working with display:inline or display:content.
If IO does not work at all, I think we have to restrict the display values.
Both display: inline and display: content make the permission element invalid. I went through all options manually and made all the display values that don't result in a LayoutBox to be invalid.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Still LGTM
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
LayoutObject* layout_object = GetLayoutObject();
Andy Paicuoff topic: as you mentioned, layout_object is not guaranteed not null. Looks like this does not 100% correct anymore, and I am also curious if the IntersectionObserver is still working with display:inline or display:content.
If IO does not work at all, I think we have to restrict the display values.
Both display: inline and display: content make the permission element invalid. I went through all options manually and made all the display values that don't result in a LayoutBox to be invalid.
I'll mark as done, let me know if my answer is not sufficient.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[PEPC] Relax 'display' value restrictions
There should be more allowed properties besides 'inline-block' which
work for the permission element.
This CL now also re-adds the reverted CL
https://chromium-review.googlesource.com/c/chromium/src/+/6551238. That
CL was reverted as it was causing issues with Zoom and Meet who were
using display: flex and display: block (not deliberately, but
inherited). This CL does also allow flex and block as values so it
should be safe to re-add.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
The WPT PR for this CL has been merged upstream! https://github.com/web-platform-tests/wpt/pull/53382
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |