-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Blaze messing up with inline style definition #159
Comments
probably related to #30 |
Is Blaze parsing inline styles? Interesting. I thought it sees it simply as a string. In the latter case it should not reorder things. Imagine that this is some other custom attribute, like |
Isn't this a duplicate of #141? To me it seems like exactly the same issue. |
So about repeated class names and order of them, see #30. I think those are not by standard so Blaze does not have to support them. In general I think it is more common that one has to clear all potential duplicates and that order of classes does not matter. For style issues, this is a duplicate of #141. |
As a consequence of fixing #141, in fact, order inside inline |
Now that order is preserved, it is unclear if it can happen that |
Migrating/combining this issue from meteor/meteor#3765 and meteor/meteor#3869 (I've verified this problem still exists with Blaze 2.2.0). Both issues relate to Blaze's
style
/class
attribute handling. A potential solution to these problems has been outlined in meteor/meteor#3765 (comment) and a pull request has been encouraged.(meteor/meteor#3765 originally reported by @steph643)
Consider the following code:
If you click the button once, the text "Still waiting for a click!" disappears as expected in case 1, but remains visible with the wrong color in case 2.
The issues is caused by Blaze doing some reordering inside inline styles.
Here is Blaze-generated html:
Case 1 (reordered, but working):
<p style="color:red; visibility:hidden;">Counter is even!</p>
Case 2 (reordered, not working):
<p style="color:red visibility:hidden;">Counter is even!</p>
(meteor/meteor#3869 originally reported by @Buom01)
Hi, this can be an real probleme with semantic-ui for exemple.
I have this:
Render is correctly on smallScreen (and largeScreen);
But, if we resizing from smallScreen to largeScreen and revert, we obtain;
(Also obtain this when resize from smallScreen to largeScreen or from largeScreen to smallScreen)
The order and the display went wrong....
(see images in original post)
The text was updated successfully, but these errors were encountered: