{"id":334229,"date":"2021-02-09T13:38:31","date_gmt":"2021-02-09T21:38:31","guid":{"rendered":"https:\/\/css-tricks.com\/?page_id=334229"},"modified":"2022-05-20T07:53:31","modified_gmt":"2022-05-20T14:53:31","slug":"border-boundary","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/b\/border-boundary\/","title":{"rendered":"border-boundary"},"content":{"rendered":"\n

The border-boundary<\/code> property in CSS set constraints to the bounds of an element that affects how the element’s borders behave. It’s defined in the CSS Round Display Level 1 specification, which is currently in Working Draft status. That means things can change between now and formal candidate recommendation.<\/p>\n\n\n\n

.element {\n  border-boundary: display; \/* sets the boundary to the screen display *\/\n}<\/code><\/pre>\n\n\n\n

The fact that this property lives in the CSS Round Display specification already tells you what it’s good at: creating circular interfaces. Even more specifically, border-boundary<\/code> falls under the “Drawing borders around the display border” section which is yet another clue to what it does well: allowing an element’s borders to respect the round boundary of circular interfaces.<\/p>\n\n\n\n\n\n\n\n

Imagine, if you will, a smart watch with a round screen. Let’s say that screen is 150px square. And in it is an orange box that’s the same dimensions.<\/p>\n\n\n\n