Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Chrome referencing "data:text/css," in all websites?

Whilst debugging a website I found this tag below the body of the page I was debugging:

<link rel="stylesheet" type="text/css" href="data:text/css,">

and I thought that some crazy Javascript-Error was adding this to my site. But I could not find anything like that in all of the project's source-code.

After checking back with Firefox I noticed, that only Chrome displays this tag in the Elements-, Resources- and Network-View. It is not visible in the "View Source" of Chrome though.

What is this about?

like image 964
fragmentedreality Avatar asked May 04 '12 09:05

fragmentedreality


People also ask

What browsers does CSS support?

CSS Reference With Browser Support Property Edge Firefox Chrome Safari A align-content 11 28 21 9 align-items 11 20 21 9 align-self 11 20 21 9 64 more rows ...

Do Chrome extensions need “all your data on the websites you visit”?

Why Do Chrome Extensions Need “All Your Data on the Websites You Visit”? Why Do Chrome Extensions Need “All Your Data on the Websites You Visit”? Many extensions in the Chrome Web Store want to “read and change all your data on the websites you visit”.

What happens when the value of a data-point changes in CSS?

In the above example whenever value of data-point changes, the rendered content of #container::before will be changed to the new value of the attribute. You can also set specific CSS properties when the value of the data-attribute equals a specific value.

How do I read a data attribute in CSS?

Data-Attributes in CSS Data-attributes can be read in CSS using the content property. The content CSS property can be used only on ::before and ::after pseudo-elements. <div id="container" data-point="14">Post 1</div>


1 Answers

I experienced the same strange css link, and found that it is due to the AdBlockPlus (ADB) extension for Chrome that I have enabled. When I disable that extension, the link no longer occurs.

like image 116
Jørgen Fjeld Avatar answered Sep 16 '22 23:09

Jørgen Fjeld