{ "title":"CSS line-clamp", "description":"Proprietary and undocumented CSS property that will contain text to a given amount of lines when used in combination with `display: -webkit-box`. It will end with ellipsis when `text-overflow: ellipsis` is included.", "spec":"https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html#//apple_ref/doc/uid/TP30001266-WebKit_SpecificUnsupportedProperties", "status":"unoff", "links":[ { "url":"http://guerillalabs.co/blog/css-line-clamping.html", "title":"Article on cross-browser CSS line clamping" }, { "url":"https://css-tricks.com/line-clampin/", "title":"CSS Tricks article" } ], "bugs":[ ], "categories":[ "CSS" ], "stats":{ "ie":{ "5.5":"n", "6":"n", "7":"n", "8":"n", "9":"n", "10":"n", "11":"n" }, "edge":{ "12":"n", "13":"n", "14":"n", "15":"n", "16":"n", "17":"y #1", "18":"y #1", "79":"y x", "80":"y x", "81":"y x", "83":"y x", "84":"y x" }, "firefox":{ "2":"n", "3":"n", "3.5":"n", "3.6":"n", "4":"n", "5":"n", "6":"n", "7":"n", "8":"n", "9":"n", "10":"n", "11":"n", "12":"n", "13":"n", "14":"n", "15":"n", "16":"n", "17":"n", "18":"n", "19":"n", "20":"n", "21":"n", "22":"n", "23":"n", "24":"n", "25":"n", "26":"n", "27":"n", "28":"n", "29":"n", "30":"n", "31":"n", "32":"n", "33":"n", "34":"n", "35":"n", "36":"n", "37":"n", "38":"n", "39":"n", "40":"n", "41":"n", "42":"n", "43":"n", "44":"n", "45":"n", "46":"n", "47":"n", "48":"n", "49":"n", "50":"n", "51":"n", "52":"n", "53":"n", "54":"n", "55":"n", "56":"n", "57":"n", "58":"n", "59":"n", "60":"n", "61":"n", "62":"n", "63":"n", "64":"n", "65":"n", "66":"n", "67":"n", "68":"y x", "69":"y x", "70":"y x", "71":"y x", "72":"y x", "73":"y x", "74":"y x", "75":"y x", "76":"y x", "77":"y x", "78":"y x", "79":"y x", "80":"y x", "81":"y x", "82":"y x" }, "chrome":{ "4":"u", "5":"u", "6":"u", "7":"u", "8":"u", "9":"u", "10":"u", "11":"u", "12":"u", "13":"u", "14":"y x", "15":"y x", "16":"y x", "17":"y x", "18":"y x", "19":"y x", "20":"y x", "21":"y x", "22":"y x", "23":"y x", "24":"y x", "25":"y x", "26":"y x", "27":"y x", "28":"y x", "29":"y x", "30":"y x", "31":"y x", "32":"y x", "33":"y x", "34":"y x", "35":"y x", "36":"y x", "37":"y x", "38":"y x", "39":"y x", "40":"y x", "41":"y x", "42":"y x", "43":"y x", "44":"y x", "45":"y x", "46":"y x", "47":"y x", "48":"y x", "49":"y x", "50":"y x", "51":"y x", "52":"y x", "53":"y x", "54":"y x", "55":"y x", "56":"y x", "57":"y x", "58":"y x", "59":"y x", "60":"y x", "61":"y x", "62":"y x", "63":"y x", "64":"y x", "65":"y x", "66":"y x", "67":"y x", "68":"y x", "69":"y x", "70":"y x", "71":"y x", "72":"y x", "73":"y x", "74":"y x", "75":"y x", "76":"y x", "77":"y x", "78":"y x", "79":"y x", "80":"y x", "81":"y x", "83":"y x", "84":"y x", "85":"y x", "86":"y x", "87":"y x", "88":"y x" }, "safari":{ "3.1":"n", "3.2":"n", "4":"n", "5":"y x", "5.1":"y x", "6":"y x", "6.1":"y x", "7":"y x", "7.1":"y x", "8":"y x", "9":"y x", "9.1":"y x", "10":"y x", "10.1":"y x", "11":"y x", "11.1":"y x", "12":"y x", "12.1":"y x", "13":"y x", "13.1":"y x", "14":"y x", "TP":"y x" }, "opera":{ "9":"n", "9.5-9.6":"n", "10.0-10.1":"n", "10.5":"n", "10.6":"n", "11":"n", "11.1":"n", "11.5":"n", "11.6":"n", "12":"n", "12.1":"n", "15":"y x", "16":"y x", "17":"y x", "18":"y x", "19":"y x", "20":"y x", "21":"y x", "22":"y x", "23":"y x", "24":"y x", "25":"y x", "26":"y x", "27":"y x", "28":"y x", "29":"y x", "30":"y x", "31":"y x", "32":"y x", "33":"y x", "34":"y x", "35":"y x", "36":"y x", "37":"y x", "38":"y x", "39":"y x", "40":"y x", "41":"y x", "42":"y x", "43":"y x", "44":"y x", "45":"y x", "46":"y x", "47":"y x", "48":"y x", "49":"y x", "50":"y x", "51":"y x", "52":"y x", "53":"y x", "54":"y x", "55":"y x", "56":"y x", "57":"y x", "58":"y x", "60":"y x", "62":"y x", "63":"y x", "64":"y x", "65":"y x", "66":"y x", "67":"y x", "68":"y x", "69":"y x", "70":"y x" }, "ios_saf":{ "3.2":"n", "4.0-4.1":"n", "4.2-4.3":"n", "5.0-5.1":"y x", "6.0-6.1":"y x", "7.0-7.1":"y x", "8":"y x", "8.1-8.4":"y x", "9.0-9.2":"y x", "9.3":"y x", "10.0-10.2":"y x", "10.3":"y x", "11.0-11.2":"y x", "11.3-11.4":"y x", "12.0-12.1":"y x", "12.2-12.4":"y x", "13.0-13.1":"y x", "13.2":"y x", "13.3":"y x", "13.4-13.5":"y x", "14.0":"y x" }, "op_mini":{ "all":"n" }, "android":{ "2.1":"u", "2.2":"u", "2.3":"y x", "3":"y x", "4":"y x", "4.1":"y x", "4.2-4.3":"y x", "4.4":"y x", "4.4.3-4.4.4":"y x", "81":"y x" }, "bb":{ "7":"y x", "10":"y x" }, "op_mob":{ "10":"n", "11":"n", "11.1":"n", "11.5":"n", "12":"n", "12.1":"n", "46":"y x" }, "and_chr":{ "84":"y x" }, "and_ff":{ "79":"y x" }, "ie_mob":{ "10":"n", "11":"n" }, "and_uc":{ "12.12":"y x" }, "samsung":{ "4":"y x", "5.0-5.4":"y x", "6.2-6.4":"y x", "7.2-7.4":"y x", "8.2":"y x", "9.2":"y x", "10.1":"y x", "11.1-11.2":"y x", "12.0":"y x" }, "and_qq":{ "10.4":"y x" }, "baidu":{ "7.12":"y x" }, "kaios":{ "2.5":"n" } }, "notes":"As there is no specification and the property is dependent on an outdated implementation of flexbox (hence `display: -webkit-box`), an alternative solution may at some point replace it.\r\n\r\nOlder (presto-based) versions of the Opera browser have also supported the same effect using the proprietary `-o-ellipsis-lastline;` value for `text-overflow`.", "notes_by_num":{ "1":"Supported in MS Edge with `-webkit-` prefix only (not with `-ms-`)" }, "usage_perc_y":95.2, "usage_perc_a":0, "ucprefix":false, "parent":"", "keywords":"", "ie_id":"", "chrome_id":"", "firefox_id":"", "webkit_id":"", "shown":true }