Forums

Posting in these forums is disabled. These forums will be available for archive purposes. Please join the new forums at the links below:

  • yui-support - replaces the `YUI 3.x` and `YUI 3 Gallery` forums.
    We have created the following discussion categories within this group to aid discoverability for these most-used topics:
    • Charts for YUI Charts support.
    • DataTable for YUI DataTable support.
    • Gallery for YUI Gallery support, including support for published Gallery components as well as the Gallery process in general.
    • Tools for support of YUI’s suite of developer tools such as selleck, shifter, grover, yogi, etc.
    • Everything Else for questions that don’t fit one of the categories above, we’ve got you covered here.
  • yui-deprecated - replaces the `YUI 2.x` forum and the forums of other deprecated products (`YUI Doc`, `Builder`, `YUI PHP Loader`, etc.).
  [ 7 posts ]
New Topic | Post Reply | Print view
Previous topic | Next topic

Thomas Wiedmann

  • Username: thomas_w
  • Joined: Wed Sep 16, 2009 10:37 am
  • Posts: 162
  • Offline
  • Profile
Tags:
  • yui3

Why added YUI3 this yui3-css-stamp block..?

Post Posted: Thu Apr 18, 2013 12:31 am
+0-
Hi

my html page get a vertical scroll bar because of this code added by YUI3 (cssbutton.css?). What's this..?

Code:
<div id="yui3-css-stamp" class="" style="position: absolute !important; visibility: hidden !important"></div>

Regards,
Thomas

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile
Tags:
  • layout
  • yui3

Re: Why added YUI3 this yui3-css-stamp block..?

Post Posted: Thu Apr 18, 2013 4:56 am
+0-
That code should not interfere with your layout, it's not vivible at all. Can you show me a repro case that this happens in?

Juan Ignacio Dopazo

YUI Contributor

  • Username: jdopazo
  • Joined: Fri Oct 02, 2009 5:39 am
  • Posts: 656
  • Location: Buenos Aires, Argentina
  • Twitter: juandopazo
  • GitHub: juandopazo
  • Gists: juandopazo
  • Offline
  • Profile

Re: Why added YUI3 this yui3-css-stamp block..?

Post Posted: Thu Apr 18, 2013 10:34 am
+0-
I haven't checked in YUI, but the last time I did something like this was as a way to signal my app that the CSS file had loaded, because the "load" event of stylesheets is not broadly supported.

Erik Pearson

  • Username: adapterik
  • Joined: Thu Feb 10, 2011 2:13 pm
  • Posts: 12
  • Offline
  • Profile
Tags:
  • css
  • loader
  • stylesheet
  • ticket
  • yui3

Re: Why added YUI3 this yui3-css-stamp block..?

Post Posted: Thu Apr 18, 2013 12:19 pm
+0-
Shocked that I hadn't bothered to notice this, I just burned an hour researching it. I'll take a stab at explaining it.

This is a device that uses a set of clever techniques to trace the loading of css files. It relies on this div placed on the page to serve as a target of style applications via a class name assigned to each css module (i.e. stylesheet file). By setting this class name on that div, and then inspecting the computed styles of this div and looking for specific styles that the associated css file has set for this class, yui can determine if the stylesheet file has been loaded. I guess this is to help the loader avoid re-loading a css file.

The yui code responsible for setting this up will place the div either just below the html tag, or at the end of the body, depending, I think, on when the first call to YUI() occurs on the page.

It would be possible to relocate this div if it causes problems in the browser. I don't think that locating this div directly in the document, outside the body, is necessarily a good idea, but it doesn't seem to have been a problem (although http://yuilibrary.com/projects/yui3/ticket/2531647 does describe one issue.)

Thomas Wiedmann

  • Username: thomas_w
  • Joined: Wed Sep 16, 2009 10:37 am
  • Posts: 162
  • Offline
  • Profile
Tags:
  • layout
  • yui3

Re: Why added YUI3 this yui3-css-stamp block..?

Post Posted: Thu Apr 18, 2013 10:18 pm
+0-
davglass wrote:
That code should not interfere with your layout, it's not vivible at all. Can you show me a repro case that this happens in?


No, I cannot. Try with small jsfiddle sample

http://jsfiddle.net/thomas_w/f6f5X/

but I did'nt got this effect. Maybe there are to much other css/code around..

My code is from a inhouse project. I only can show some image (how can I do that here? Any clean imagehoster?)

Thanks,
Thomas

towry

  • Username: towry
  • Joined: Fri Apr 19, 2013 4:48 am
  • Posts: 1
  • Twitter: tovvry
  • GitHub: towry
  • Gists: towry
  • Offline
  • Profile
Tags:
  • css
  • yui3

Re: Why added YUI3 this yui3-css-stamp block..?

Post Posted: Sat Apr 20, 2013 7:02 am
+0-
Well, I didn't use any YUI css file, but I got a `yui3-css-stamp` div on my page, I just don't like it.

Thomas Wiedmann

  • Username: thomas_w
  • Joined: Wed Sep 16, 2009 10:37 am
  • Posts: 162
  • Offline
  • Profile
Tags:
  • css
  • layout
  • yui3

Re: Why added YUI3 this yui3-css-stamp block..?

Post Posted: Thu May 02, 2013 10:21 pm
+0-
thomas_w wrote:
but I did'nt got this effect. Maybe there are to much other css/code around..


Okay, I get it. My fault... sorry.

I add a hidden div-block with visibility: hidden; instead of display: none;

Thanks!
Thomas
  [ 7 posts ]
New Topic | Post Reply | Print view
Previous topic | Next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum