Since Safari doesn't recognize the height: 100% on the img elements, and you can't specify a height on the parent ( #thumbnailContainer) because that height is defined by grid-template-rows: 1fr on the top-level container, you can try using flexbox.īy making #thumbnailContainer a flex container, you can define the size of the images (flex items) using flex properties. Until the definition is updated for modern use, browser rendering variations can be expected. With so many new CSS properties and technologies since that time, the definition has become obsolete, unclear and woefully incomplete. X 10105) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8.
The last substantive update to the CSS height definition was in 1998 ( CSS2). This doesn't mean it's wrong, invalid or a bug.
And when it comes to speed, it’s the world’s fastest browser. It brings robust customisation options, powerful privacy protections and industry-leading battery life so you can browse how you like, when you like. When position is set to absolute or fixed, the top property specifies the distance between the elements outer margin of top edge and the inner border of the top edge of its containing block. Some browsers, such as Chrome and Firefox, have moved past this interpretation and now accept flex and grid heights as an adequate parent reference for a child with a percentage height.īut Safari is stuck in the past. Safari is the best way to experience the Internet on all your Apple devices. The effect of top depends on how the element is positioned (i.e., the value of the position property). In other words, a percentage height on an in-flow element will be recognized only when the parent has a defined height. If the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the used height is calculated as if auto was specified. AdBlock blocks ads on Facebook, YouTube, and all other websites. AdBlock can also be used to help protect your privacy by blocking trackers. Use AdBlock to block all ads and pop ups. Respect to the height of the generated box's containing block. AdBlock is one of the most popular ad blockers worldwide with more than 60 million users on Chrome, Safari, Firefox, Edge as well as Android. When dealing with percentage heights, some browsers (like Safari) adhere to the traditional interpretation of the spec, which requires a defined height on the parent.
It's just a different interpretation of the spec. OS X 10126) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8.
The problem is that Safari is not recognizing the height: 100% on the img elements.