Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsb.createStyleSheet doesn't handle float in Firefox #130

Open
GoogleCodeExporter opened this issue Jul 8, 2015 · 2 comments
Open

jsb.createStyleSheet doesn't handle float in Firefox #130

GoogleCodeExporter opened this issue Jul 8, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

The following doesn't create a rule in Firefox.

jsb.createStyleSheet(
  { ".left": { "float": "left" }}
);

See attachment for test case.
Tested in Firefox 3.5 and base2-jsb-fp.js in trunk.

Original issue reported on code.google.com by [email protected] on 13 Mar 2010 at 3:20

Attachments:

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 13 Mar 2010 at 4:01

  • Changed state: Started
  • Added labels: Browser-Mozilla

@GoogleCodeExporter
Copy link
Author

Analysis: the call to createStyleSheet results in a call to 
createRule({"float":"left", ".left") inside the file createStyleSheet.js. Then, 
via a forEach.detect and an anonymous function the propertyName "float" is 
translated in Firefox by "propertyName = 
CSSStyleDeclaration.getPropertyName(propertyName);" to the value "css-float" 
and later added to the "rule" (and thus "styleSheet") object. The 
toString-method on the styleSheet object translate the "css-float" property 
name to the string "cssFloat". And that's not a valid CSS property name.

Original comment by [email protected] on 13 Feb 2011 at 5:42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant