| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
LayoutVideo seems to have some special handling for poster images, so I suspect this may lead to weird interactions when a poster is present. Has that been considered? Since this is opt-in I guess it's not a big deal, but still want to double check.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
LayoutVideo seems to have some special handling for poster images, so I suspect this may lead to weird interactions when a poster is present. Has that been considered? Since this is opt-in I guess it's not a big deal, but still want to double check.
Poster handling in Video only happens when LayoutVideo is created. This change creates a new LayoutObject via LayoutObject::CreateObject when content: url() is present, so the poster code path isn’t used in that case.
Also, the WPT ref (element-replacement-on-replaced-element-ref.html) covers the poster + content: url() case.
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/external/wpt/css/css-content/element-replacement-on-replaced-element-ref.html
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
Hyowon KimLayoutVideo seems to have some special handling for poster images, so I suspect this may lead to weird interactions when a poster is present. Has that been considered? Since this is opt-in I guess it's not a big deal, but still want to double check.
Poster handling in Video only happens when LayoutVideo is created. This change creates a new LayoutObject via LayoutObject::CreateObject when content: url() is present, so the poster code path isn’t used in that case.
Also, the WPT ref (element-replacement-on-replaced-element-ref.html) covers the poster + content: url() case.
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/external/wpt/css/css-content/element-replacement-on-replaced-element-ref.html
| 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. |
Handle content: url() on HTMLVideoElement
HTMLVideoElement::CreateLayoutObject() ignored the CSS content property,
always returning a LayoutVideo. Add the same ImageContentData check that
HTMLImageElement already has, so that content: url() works consistently
on replaced elements.
This fixes the WPT reftest
element-replacement-on-replaced-element.tentative.html, which failed
because content: url() worked on <img> but not on <video> in the
reference file.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |