You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CSS Attribute not working -webkit-box-orient: vertical; #10723
Line camp not working, ionic removes attribute from web inspector.
Expected behavior:
It worked before Ionic 2.1
Steps to reproduce:
I have a class with the attribute -webkit-box-orient: vertical; that is related to -webkit-line-clamp, but when I run the app, this attribute disappears so my text is rendering all the lines.
Hello! Thanks for opening an issue with us! As this seems like more of a support question about an issue with your custom css i will urge that you ask this question on our forum or on our slack channel. Thanks for using Ionic!
Same here. I checked to make sure all of my CSS sections w/ line clamps also include the -webkit-box-orient property, and they do, but I can see in the Safari and Chrome web inspectors that that property disappears when I run on ionic serve or on an emulator/device. Can this issue be reopened??
i have the same issue.
i also use ngStyle to write '-webkit-box-orient' into the element,but it just disappear when it was triggered(but the other CSS properties were included normally).
@swaraasolutions Thank you, It's work for me, but notice that you missing something on your code, I recently change it to this and it work like a charm. Thanks anyway
/* autoprefixer: off */
-webkit-box-orient: vertical;
/* autoprefixer: on */
Reacted by LI Yi, Leonardo Ruhland, Chhoun Sophanith, Paul van den Dool and Artur Haddad
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
jgw96 commentedon Mar 13, 2017
Hello! Thanks for opening an issue with us! As this seems like more of a support question about an issue with your custom css i will urge that you ask this question on our forum or on our slack channel. Thanks for using Ionic!
carlosjtacon commentedon Mar 14, 2017
It is not a problem with my css, it is that the transpile removes one of my properties, it worked before 2.1!!!
albert-gonzalez commentedon Mar 17, 2017
Hi!
please, review this issue, it happens in my app too. I think it's because of the new optimizations of the version 1.1.x of ionic-app-scripts.
I have just opened a issue in the app scripts project: ionic-team/ionic-app-scripts#821
Thank you!
rcd229 commentedon Mar 24, 2017
Same here. I checked to make sure all of my CSS sections w/ line clamps also include the -webkit-box-orient property, and they do, but I can see in the Safari and Chrome web inspectors that that property disappears when I run on ionic serve or on an emulator/device. Can this issue be reopened??
yuzhenApril commentedon Apr 1, 2017
i have the same issue.
i also use ngStyle to write '-webkit-box-orient' into the element,but it just disappear when it was triggered(but the other CSS properties were included normally).
vhinic commentedon Apr 17, 2017
Same issue here. It simply removes "-webkit-box-orient: vertical;"
swaraasolutions commentedon Apr 28, 2017
This issue can be resolved by adding following to the scss
/* autoprefixer: off /
-webkit-box-orient: vertical;
/ autoprefixer: on */
This resolved the issue for me
tietthinh commentedon May 7, 2017
@swaraasolutions Thank you, It's work for me, but notice that you missing something on your code, I recently change it to this and it work like a charm. Thanks anyway
xu3u4 commentedon Jun 13, 2017
Many thanks to @swaraasolutions and @tietthinh.
It works !!
ionitron-bot commentedon Sep 2, 2018
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.