Skip to content

Commit 0fd0ca0

Browse files
committed
Add suggest and initial values as well as spec link for 'overflow-wrap'.
1 parent 9eb1e29 commit 0fd0ca0

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

src/scripts/spec_links.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ SpecLinks.specs = {
243243
"min-width": "http://www.w3.org/TR/css3-box/#min-width",
244244
"min-height": "http://www.w3.org/TR/css3-box/#min-width",
245245
"overflow": "http://www.w3.org/TR/css3-box/#overflow0",
246+
"overflow-wrap": "http://www.w3.org/TR/css3-text/#overflow-wrap",
246247
"overflow-x": "http://www.w3.org/TR/css3-box/#overflow-x",
247248
"overflow-y": "http://www.w3.org/TR/css3-box/#overflow-y",
248249
"padding": "http://www.w3.org/TR/css3-box/#padding1",
@@ -274,7 +275,7 @@ SpecLinks.specs = {
274275
"text-overflow": "http://www.w3.org/TR/css3-text/#text-overflow",
275276
"text-shadow": "http://www.w3.org/TR/css3-text/#text-shadow",
276277
"word-spacing": "http://www.w3.org/TR/css3-text/#word-spacing",
277-
"word-wrap": "http://www.w3.org/TR/css3-text/#word-wrap0",
278+
"word-wrap": "http://www.w3.org/TR/css3-text/#overflow-wrap",
278279
"-o-transition-property": "http://www.w3.org/TR/css3-transitions/#the-transition-property-property-",
279280
"-o-transition-duration": "http://www.w3.org/TR/css3-transitions/#transition-duration",
280281
"-o-transition-timing-function": "http://www.w3.org/TR/css3-transitions/#transition-timing-function",

src/style/css_suggest_values.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,13 @@ suggest_values['overflow-y'] =
985985
'inherit'
986986
];
987987

988+
suggest_values['overflow-wrap'] =
989+
[
990+
'normal',
991+
'break-word',
992+
'inherit'
993+
];
994+
988995
suggest_values['padding'] =
989996
suggest_values['padding-top'] =
990997
suggest_values['padding-right'] =

src/style/stylesheets.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,9 @@ cls.Stylesheets.get_initial_value = function(prop, data, index_map)
958958
case "overflow":
959959
return "visible";
960960

961+
case "overflow-wrap":
962+
return "normal";
963+
961964
case "overflow-x":
962965
return "visible";
963966

0 commit comments

Comments
 (0)