Daniel Hendrycks' Blog

This Blog is in Perpetual Beta

<fullscreen>

This post was a proposal for a fullscreen tag. I am no longer shooting for this.

Update: I am no longer proposing this, I support Mozilla's Fullscreen API.


<fullscreen>?
The fullscreen tag allows the browser to enlarge applications and hide the browser’s chrome (and other chrome, too) so users can interact with an application as easily as they would with a desktop application. This would be useful for online games, online video, online office apps, etc.

Syntax
<fullscreen hidewindow>
    <before>
        <button src=”before/button.svg”/>
        <hover src=”before/hover.svg”/>
        <press src=”before/press.svg”>
    </before>
    <after>
        <button src=”after/button.svg”/>
        <hover src=”after/hover.svg”/>
        <press src=”after/press.svg”/>
    </after>
</fullscreen>

Elements
The before and after elements specify what button graphic to show; before graphics are applied when the app or element is not in fullscreen, after graphics are applied when the app or element is in fullscreen. Under the before element, you find the graphics that will be used when the button is dormant, when it is hovered over, and when it is being pressed. The same concept is applied to the graphics contained in the after tag. Developers can leave the button, hover and press elements cased in only brackets (<>); by doing so developers can make the controls completely styled in CSS, if desired.

Attribute
The hidewindow attribute instructs the browser to hide its chrome alone, if this is not specified the browser, when instructed by the button, will make the application hide the desktop chrome along with the browser chrome. With the COLOR=red]hidewindow[/COLOR] attribute you can access and interact with other applications.

Browser Controls and Automatic Fullscreen
At the moment, I am not recommending native controls. Prior to this conclusion, I was thinking the native controls should be like they are today in most browsers: flick your mouse up to the top of the screen and the chrome will descend from the top, then after you can leave fullscreen mode. The reason why I no longer recommend this is because if a user using an app that utilizes hidewindow, they could have the desktop chrome at the top of the monitor (typically seen in GNOME environments), since there would be chrome at the top getting the chrome to slide down as we currently see would be awkward and potentially annoying.
At the moment, I am also not recommending automatic fullscreen; the reasoning is obvious, it could will easily annoy people.

Make a single element fullscreen
To make a single element fullscreen, just add the tag inside of the fullscreen tag.
Example:
<fullscreen hidewindow>
    <before>
        <button src=”before/button.svg”/>
        <hover src=”before/hover.svg”/>
        <press src=”before/press.svg”/>
    </before>
    <after>
        <button src=”after/button.svg”/>
        <hover src=”after/hover.svg”/>
        <press src=”after/press.svg”/>
    </after>
<video src="video.ogv" controls>
 video not supported
</video>
</fullscreen>

Internet Again!Snapshot Digest

Comments

metude Friday, July 16, 2010 1:19:28 PM

Maybe, you should add some example in html page...

Daniel HendrycksDanielHendrycks Friday, July 16, 2010 2:44:40 PM

Originally posted by metude:

Maybe, you should add some example in html page...


This will not work in any browser, currently, so an example cannot be given. I am planning to propose it, this is not a tag that is part of the HTML5 spec, I am wondering if you think it is a good idea and the syntax is good.

Mağruf ÇolakoğluZAHEK Saturday, July 17, 2010 12:57:50 PM

Originally posted by DanielHendrycks:

I am wondering if you think it is a good idea and the syntax is good.


It seems good idea smile
You must try it ...

metude Saturday, July 17, 2010 5:21:57 PM

Now understood. whistle

Originally posted by ZAHEK:

It seems good idea


up

Daniel HendrycksDanielHendrycks Saturday, July 17, 2010 7:06:21 PM

Thanks. happy

Mağruf ÇolakoğluZAHEK Sunday, July 18, 2010 8:02:49 PM

We are waiting Daniel:)

Daniel HendrycksDanielHendrycks Sunday, July 18, 2010 11:10:14 PM

I sent the proposal to the HTML comments mailing list and it was not posted after waiting a few days, so I contacted W3C member Ian Jacobs; he is now asking why it was not posted.

ArturMithos Tuesday, August 17, 2010 2:11:33 AM

Reminds me of the day someone send the <sarcasm> proposal to W3C. But this seems to be more usefull than <sarcasm>.

Daniel HendrycksDanielHendrycks Tuesday, August 17, 2010 2:44:44 PM

Update: I am no longer proposing this, I support Mozilla's Fullscreen API.

ArturMithos Tuesday, August 17, 2010 9:13:18 PM

Lol

Write a comment

New comments have been disabled for this post.