Create a div container with rounded corners and overflow:hidden. Then place the video in it.
<style>
.video-mask{
width: 350px;
border-radius: 10px;
overflow: hidden;
}
</style>
<div class="video-mask">
<video></video>
</div>
Related Contents:
- Background color not showing in print preview
- Blurry text after using CSS transform: scale(); in Chrome
- CSS Border radius not trimming image on Webkit
- Chrome / Safari not filling 100% height of flex parent
- How can I force WebKit to redraw/repaint to propagate style changes?
- css transform, jagged edges in chrome
- HTML5 video will not loop
- Webkit CSS to control the box around the color in an input[type=color]?
- Bug with transform: scale and overflow: hidden in Chrome
- HTML 5 Video “autoplay” not automatically starting in CHROME
- Webkit bug with `:hover` and multiple adjacent-sibling selectors
- webkit-transform overwrites z-index ordering in Chrome 13
- content attribute of img elements
- Disable download button for Google Chrome?
- How to access the webpage DOM rather than the extension page DOM?
- Is there a way to get the XPath in Google Chrome?
- What is a user agent stylesheet?
- When running WebDriver with Chrome browser, getting message, “Only local connections are allowed” even though browser launches properly
- How to apply specific CSS rules to Chrome only?
- How to save CSS changes of Styles panel of Chrome Developer Tools?
- chrome extension mv3 – Modularize service worker js file
- Debugging WebSocket in Google Chrome
- Favicon not showing up in Google Chrome [duplicate]
- :active pseudo-class doesn’t work in mobile safari
- Set Webkit Keyframes Values Using Javascript Variable
- How to use CSS (and JavaScript?) to create a blurred, “frosted” background?
- JsPDF – Not allowed to navigate top frame to data URL
- Firing a keyboard event on Chrome
- How can I get the CSS Selector in Chrome?
- Remote Debugging for Chrome iOS (and Safari)
- What is the correct “-moz-appearance” value to hide dropdown arrow of a element
- inject CSS to a site with webview in android
- How to clear basic authentication details in chrome
- Google chrome a:visited background image not working
- What makes the text on a element vertically centered?
- font-face with wrong MIME type in Chrome
- Font-size issues comparing chrome and Firefox
- What exactly is the `#:~:text=` location hash in an URL? [closed]
- navigator.clipboard is undefined
- How to access the webpage DOM/HTML from an extension popup or background script?
- Stop CSS transition from firing on page load
- HTML book-like pagination
- Chrome: Automatic shift of web elements
- How can you hide the arrow that is displayed by default on the HTML5 element in Chrome?
- Creating Google Chrome shortcut with –disable-web-security
- Chrome does not expand flex parent according to children’s content [duplicate]
- Is it possible to inject a javascript code that OVERRIDES the one existing in a DOM? (e.g default alert function)
- Javascript / Chrome – How to copy an object from the webkit inspector as code
- Non-Authoritative-Reason header field [HTTP]
- Passing message from background.js to popup.js