[xul-interop] “-moz-user-focus” doesn't wo rk?

Tom Brito <[email protected]> Wed, 19 Jan 2011 15:50:33 -0200
Newsgroups gmane.comp.lang.xul.general
Message-ID <[email protected]>
--===============5823728662646032328==
Content-Type: multipart/alternative; boundary=0016e649da8a93001e049a36a86c

--0016e649da8a93001e049a36a86c
Content-Type: text/plain; charset=ISO-8859-1

I've made this sample:


<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

<window width="400" height="300"
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

            <textbox id="textBox1"/>
            <textbox id="textBox2" style="-moz-user-focus: none;"/>
            <textbox id="textBox3"/>
</window>


And, at least here, the style applied to the second textbox is doing
nothing. I expected it to avoid the user focus, as the
doc<https://developer.mozilla.org/en/CSS/-moz-user-focus>
 says.


 Does someone more experience this?

att,

*
Wellington B. de Carvalho
*

--0016e649da8a93001e049a36a86c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div><span class=3D"Apple-style-span" style=3D"font-family: Arial, &#39;Lib=
eration Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; bord=
er-collapse: collapse; line-height: 18px; ">I&#39;ve made this sample:</spa=
n></div>

<p style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-=
left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; paddi=
ng-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom=
-width: 0px; border-left-width: 0px; border-style: initial; border-color: i=
nitial; vertical-align: baseline; background-image: initial; background-att=
achment: initial; background-origin: initial; background-clip: initial; bac=
kground-color: transparent; clear: both; word-wrap: break-word; ">

<br><font class=3D"Apple-style-span" face=3D"&#39;courier new&#39;, monospa=
ce">&lt;?xml version=3D&quot;1.0&quot;?&gt;<br>&lt;?xml-stylesheet href=3D&=
quot;chrome://global/skin/&quot; type=3D&quot;text/css&quot;?&gt;<br><br>&l=
t;window width=3D&quot;400&quot; height=3D&quot;300&quot;<br>

=A0=A0 =A0xmlns=3D&quot;<a href=3D"http://www.mozilla.org/keymaster/gatekee=
per/there.is.only.xul">http://www.mozilla.org/keymaster/gatekeeper/there.is=
.only.xul</a>&quot;&gt;<br><br>=A0=A0 =A0 =A0 =A0 =A0 =A0&lt;textbox id=3D&=
quot;textBox1&quot;/&gt;<br>

=A0=A0 =A0 =A0 =A0 =A0 =A0&lt;textbox id=3D&quot;textBox2&quot; style=3D&qu=
ot;-moz-user-focus: none;&quot;/&gt;<br>=A0=A0 =A0 =A0 =A0 =A0 =A0&lt;textb=
ox id=3D&quot;textBox3&quot;/&gt;<br>&lt;/window&gt;</font></p><p style=3D"=
margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; p=
adding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px=
; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px;=
 border-left-width: 0px; border-style: initial; border-color: initial; vert=
ical-align: baseline; background-image: initial; background-attachment: ini=
tial; background-origin: initial; background-clip: initial; background-colo=
r: transparent; clear: both; word-wrap: break-word; ">

<br><span class=3D"Apple-style-span" style=3D"border-collapse: collapse; li=
ne-height: 18px; font-size: 14px; font-family: Arial, &#39;Liberation Sans&=
#39;, &#39;DejaVu Sans&#39;, sans-serif; ">And, at least here, the style ap=
plied to the second textbox is doing nothing. I expected it to avoid the us=
er focus, as the=A0</span><a href=3D"https://developer.mozilla.org/en/CSS/-=
moz-user-focus" rel=3D"nofollow" style=3D"margin-top: 0px; margin-right: 0p=
x; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0=
px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-r=
ight-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-s=
tyle: initial; border-color: initial; font-size: 14px; vertical-align: base=
line; background-image: initial; background-attachment: initial; background=
-origin: initial; background-clip: initial; background-color: transparent; =
color: rgb(0, 119, 204); text-decoration: none; cursor: pointer; border-col=
lapse: collapse; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu=
 Sans&#39;, sans-serif; line-height: 18px; ">doc</a><font class=3D"Apple-st=
yle-span" face=3D"Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, =
sans-serif"><span class=3D"Apple-style-span" style=3D"border-collapse: coll=
apse; line-height: 18px; font-size: 14px;">=A0says.</span></font></p>

<p style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-=
left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; paddi=
ng-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom=
-width: 0px; border-left-width: 0px; border-style: initial; border-color: i=
nitial; vertical-align: baseline; background-image: initial; background-att=
achment: initial; background-origin: initial; background-clip: initial; bac=
kground-color: transparent; clear: both; word-wrap: break-word; ">

<font class=3D"Apple-style-span" face=3D"Arial, &#39;Liberation Sans&#39;, =
&#39;DejaVu Sans&#39;, sans-serif"><span class=3D"Apple-style-span" style=
=3D"border-collapse: collapse; line-height: 18px; font-size: 14px;"><br></s=
pan></font></p>

<p style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-=
left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; paddi=
ng-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom=
-width: 0px; border-left-width: 0px; border-style: initial; border-color: i=
nitial; vertical-align: baseline; background-image: initial; background-att=
achment: initial; background-origin: initial; background-clip: initial; bac=
kground-color: transparent; clear: both; word-wrap: break-word; ">

<font class=3D"Apple-style-span" face=3D"Arial, &#39;Liberation Sans&#39;, =
&#39;DejaVu Sans&#39;, sans-serif"><span class=3D"Apple-style-span" style=
=3D"border-collapse: collapse; font-size: 14px; line-height: 18px;"><meta h=
ttp-equiv=3D"content-type" content=3D"text/html; charset=3Dutf-8">Does some=
one more experience this?</span></font></p>

<div><br></div><div>att,</div><div><br></div><i><div style=3D"text-align:le=
ft"><span style=3D"font-style:normal"><i>Wellington B. de Carvalho</i></spa=
n></div></i><br>

--0016e649da8a93001e049a36a86c--


--===============5823728662646032328==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
--===============5823728662646032328==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
XUL News Wire      - http://xulnews.com
XUL Job Postings   - http://xuljobs.com
Open XUL Alliance - http://xulalliance.org  
_______________________________________________
xul-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xul-talk

--===============5823728662646032328==--