Issue with text-shadow in MacOS Safari unable to display shadow effect

Check out this example of an issue that I'm experiencing https://jsfiddle.net/smdLzsx5/1/

Could someone please investigate and see if they encounter the bug as well? I'd like to know if this problem can be replicated consistently so I can report it to Apple.

Code:

<html>
<head>
<style>

.header01{
    background-color:#d0d0d0;
    overflow:hidden;
    border-radius:5px;
    width:500px;
}

.heading01{
    color:#ffffff;
    text-shadow:0px 2px 4px #000000;
    font-size:40pt;
}

</style>
</head>
<body>
    <div class="header01" id="header">
        <div class="heading01">
                BAD<span>GOOD</span>
        </div>
    </div>
</body>
</html>

Under certain conditions (like the code above), the text-shadow may not show up correctly - it could either briefly appear then disappear again.

I am currently using MacOX 10.12.6 (16G29) with Safari 11.0 (12604.1.38.1.7)

This issue does not seem to happen in Firefox 56 or Chrome 61.0.3163.100

Several factors might influence this problem, such as:

  • Modifying the width of the header01 div (changing it to 200px stops the text-shadow from displaying)
  • Setting the header01 div to overflow:visible; (the shadow displays correctly)
  • Altering the heading01 font size to 20pt (this also solves the issue)

Answer №1

You may want to consider taking out the 'overflow: hidden;' property from the '.header01' class as it seems to be the root of the issue.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

I am having trouble getting my CSS styles to apply to nested components within Bootstrap React components

Currently I am learning react and in the process of creating a website using react-bootstrap. While working on my navbar, I encountered an issue where I was unable to change the font and font-color of the navbar items. The CSS that I applied only affected ...

Tips for swapping images as a webpage is scrolled [using HTML and JavaScript]

Hi there, I am looking to make some changes to a JavaScript code that will switch out a fixed image depending on the user's scrolling behavior. For example, when the page loads, the image should be displayed on the right side. As the user scrolls down ...

Create a regular expression that permits a sequence of numbers (either integer or decimal) arranged in groups of up to five, with each

Is it possible to create a regular expression that allows integers and decimals? var reg = /^((\s*)|([0-9]\d{0,9}(\.\d{1,3})?%?$))$/.; How can users input 0 to 5 groups of integers and decimals separated by |? Updated: This regex sh ...

How can I organize data from A to Z in alphabetical order in React Native when the user chooses the A to Z option from the dropdown menu?

I am working on a screen that can display up to 1000 data retrieved from the API. Here is the image: https://i.sstatic.net/ErbDD.png Now, I have implemented a drop-down box where users can select alphabetically from A to Z. After selecting an alphabetic ...

In HTML, a Bootstrap row appears on top of another row when viewing on mobile devices

I have implemented a Bootstrap HTML section that consists of a container and two main rows. Here is the code snippet: <link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"> <style& ...

Items are overflowing the flex container, exceeding its boundaries

I've experimented with the width property, flex, flex-basis, and flex-shrink, but so far nothing seems to be working. I can't seem to pinpoint where the mistake lies in the code. I wanted to include the code snippet here, but it's throwing ...

The panel's placement shifts when the browser window is expanded

Currently, the issue I am encountering involves an ASP.NET website with a header, sidebar, and additional right sidebar. When I resize the browser window, the left sidebar overlaps the content page, resulting in mixed-up controls. Please refer to the image ...

What is the default margin for Autocomplete in Material UI?

Having just started with material-ui, I'm having trouble figuring out the margins of the Autocomplete. My form includes both Autocomplete and TextInput elements, but their positioning seems off to me. Is there some predefined margin box around Autocom ...

Interconnected dropdown selections for multiple dropdown menus

I have successfully implemented a jQuery function that populates the second dropdown options based on the selection of the first dropdown option. However, I am facing an issue with having multiple instances of this functionality in rows. When I change the ...

Hybrid Titanium app with HTML page enlarged on a Samsung Galaxy S7 device

We are currently facing an issue with our hybrid app developed in titanium. Everything seems to be working fine, except on certain new phones like the Galaxy S7 Active. The problem we are encountering is that the HTML page appears zoomed in despite having ...

CSS - fixed table headers

Check out my CodePen example here - Code In this demo, I have a table inside a container where the table is larger than the container. As you scroll horizontally, both the table and headers move accordingly. However, when scrolling vertically, I want th ...

When the maximum height reaches 100%, it surpasses the limit set by the viewport height

I'm looking to create a fixed footer at the bottom of my page, where the contents adjust based on the view height. Recommended: Check out this CodePen for an example with a well-contained layout. You'll notice that even as the menu items increas ...

The behavior of CSS class attributes can vary depending on the parent classes they are within

Currently, I am facing challenges when attempting to override a class within Jekyll while utilizing Stylus for the CSS. The issue arises with an inline SVG saved in an HTML file that is included at the start of the page body. It consists of 6 path element ...

Align the subtext to the right and center it vertically within a Bootstrap dropdown menu item

Is there a way to vertically align small captions on the right side of a dropdown menu, next to each item's text? The issue is that in the example below, the numbers are not properly aligned. https://i.stack.imgur.com/NZigW.png The numbers 123 and 1 ...

Ensure that the navigation menu is consistently displayed properly, without any of its contents extending beyond the

I am experiencing an issue with the navigation menu on my website. Everything looks great in normal view, but when I resize the browser window to a smaller width, the menu ends up overflowing below the main content. I want the navigation menu to always dis ...

What is behind the peculiar reaction when checkboxes are used in React?

In this demo, what is causing the button to disable only after both checkboxes have been checked? Is the button not initially displayed as disabled due to the way state behaves in react? The example consists of two checkboxes: I have read and agree to te ...

Whenever I refresh the page, the values remain the same and only update when I log in

Is it possible for the user's statistics to automatically update when they reload the page, based on the database? For example, if a user registers with Money-0, Diamond-0, Ruby-0 and then adds 10 money, can their stats be automatically updated to Mon ...

Error Encountered in Laravel 5.2 FormBuilder.php

Encountering Laravel 5.2 ErrorException in FormBuilder.php on line 1235 stating that the method 'style' does not exist. This error has me perplexed. I have already made updates to my composer.json file by adding "laravelcollective/html": "^5.2" ...

The functionality of AJAX is triggered only on the second click

On my index.html page, I'm attempting to implement a basic AJAX functionality. When clicking on an anchor tag, the text will be sent to a PHP page called data.php, which will then display the clicked page. The code is functional, but there seems to be ...

Python Automation with Selenium (Locating elements using CSS selectors)

Is it possible to select and access the first element of an array using a CSS selector in Python? For instance: css=('.od-FieldEditor-fieldTitle.ms-Label.is-required') generates an array of 6 labels. I am interested in accessing the innerText a ...