feat(css/prefixer): Support word-wrap (#6679)

This commit is contained in:
Alexander Akait 2022-12-19 08:51:56 +03:00 committed by GitHub
parent ca815650db
commit 46241b4e55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 61 additions and 0 deletions

View File

@ -3945,5 +3945,27 @@
"safari": "3.2", "safari": "3.2",
"ios": "4.3" "ios": "4.3"
} }
],
"word-wrap": [
{
"chrome": "4",
"edge": "12",
"safari": "3.1",
"firefox": "3.5",
"opera": "11.5",
"ie": "6",
"ios": "3.2",
"android": "2.1"
},
{
"chrome": "22",
"edge": "17",
"safari": "6",
"firefox": "48",
"opera": "11.5",
"ie": "11",
"ios": "6.1",
"android": "4.3.0"
}
] ]
} }

View File

@ -3188,6 +3188,10 @@ impl VisitMut for Prefixer {
add_declaration!(Prefix::O, "-o-object-position", None); add_declaration!(Prefix::O, "-o-object-position", None);
} }
"overflow-wrap" => {
add_declaration!("word-wrap", None);
}
"tab-size" => { "tab-size" => {
add_declaration!(Prefix::Moz, "-moz-tab-size", None); add_declaration!(Prefix::Moz, "-moz-tab-size", None);
add_declaration!(Prefix::O, "-o-tab-size", None); add_declaration!(Prefix::O, "-o-tab-size", None);

View File

@ -0,0 +1,12 @@
.someClass{
overflow-wrap: break-word;
}
.anotherClass{
font-size:1rem;
overflow-wrap:break-word;
}
main {
overflow-wrap: normal;
}

View File

@ -0,0 +1,13 @@
.someClass {
word-wrap: break-word;
overflow-wrap: break-word;
}
.anotherClass {
font-size: 1rem;
word-wrap: break-word;
overflow-wrap: break-word;
}
main {
word-wrap: normal;
overflow-wrap: normal;
}

View File

@ -0,0 +1,10 @@
.someClass {
overflow-wrap: break-word;
}
.anotherClass {
font-size: 1rem;
overflow-wrap: break-word;
}
main {
overflow-wrap: normal;
}