Skip to content

CSS Attribute not working -webkit-box-orient: vertical; #10723

@carlosjtacon

Description

@carlosjtacon

Ionic version: (check one with "x")
[ ] 1.x
[x] 2.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:

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.

Related code:

.three_lines {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.three_lines_web_inspector {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
}

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Cordova CLI: 6.4.0 
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: 1.9.0 
ios-sim version: 5.0.13 
OS: macOS Sierra
Node Version: v6.9.2
Xcode version: Xcode 8.2.1 Build version 8C1002

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions