Skip to content

Commit

Permalink
Chrome/Edge 119
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Nov 4, 2023
1 parent 60954b7 commit bfa2056
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/htmlunit/BrowserVersionFeatures.java
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ public enum BrowserVersionFeatures {
JS_FORM_REJECT_INVALID_ENCODING,

/** Calling form.submit() twice forces double download. */
@BrowserFeature({CHROME, EDGE, IE})
@BrowserFeature(IE)
JS_FORM_SUBMIT_FORCES_DOWNLOAD,

/** Support for document.formName('inputName'). */
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/htmlunit/WebWindowImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ else if (webClient.getBrowserVersion().hasFeature(JS_WINDOW_OUTER_INNER_HEIGHT_D
outerWidth_ = innerWidth_ + 12;
}
else if (webClient.getBrowserVersion().hasFeature(JS_WINDOW_OUTER_INNER_HEIGHT_DIFF_131)) {
outerHeight_ = innerHeight_ + 131;
outerWidth_ = innerWidth_ + 71;
outerHeight_ = innerHeight_ + 138;
outerWidth_ = innerWidth_ + 64;
}
else if (webClient.getBrowserVersion().hasFeature(JS_WINDOW_OUTER_INNER_HEIGHT_DIFF_138)) {
outerHeight_ = innerHeight_ + 138;
Expand Down
18 changes: 9 additions & 9 deletions src/main/java/org/htmlunit/css/StyleAttributes.java
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ public enum Definition {
ff("none")),

/** The style property {@code gridArea}. */
GRID_AREA("gridArea", "grid-area", chromeAndEdge("auto / auto / auto / auto"), ff("auto")),
GRID_AREA("gridArea", "grid-area", chromeAndEdge("auto"), ff("auto")),

/** The style property {@code grid-area}. */
GRID_AREA_("grid-area", "grid-area", ff("auto")),
Expand All @@ -1371,7 +1371,7 @@ public enum Definition {
GRID_AUTO_ROWS_("grid-auto-rows", "grid-auto-rows", ff("auto")),

/** The style property {@code gridColumn}. */
GRID_COLUMN("gridColumn", "grid-column", chromeAndEdge("auto / auto"), ff("auto")),
GRID_COLUMN("gridColumn", "grid-column", chromeAndEdge("auto"), ff("auto")),

/** The style property {@code grid-column}. */
GRID_COLUMN_("grid-column", "grid-column", ff("auto")),
Expand Down Expand Up @@ -1401,7 +1401,7 @@ public enum Definition {
GRID_GAP_("grid-gap", "grid-gap", ff("normal")),

/** The style property {@code gridRow}. */
GRID_ROW("gridRow", "grid-row", chromeAndEdge("auto / auto"), ff("auto")),
GRID_ROW("gridRow", "grid-row", chromeAndEdge("auto"), ff("auto")),

/** The style property {@code grid-row}. */
GRID_ROW_("grid-row", "grid-row", ff("auto")),
Expand All @@ -1425,7 +1425,7 @@ public enum Definition {
GRID_ROW_START_("grid-row-start", "grid-row-start", ff("auto")),

/** The style property {@code gridTemplate}. */
GRID_TEMPLATE("gridTemplate", "grid-template", chromeAndEdge("none / none / none"),
GRID_TEMPLATE("gridTemplate", "grid-template", chromeAndEdge("none"),
ff("none")),

/** The style property {@code grid-template}. */
Expand Down Expand Up @@ -2615,7 +2615,7 @@ public enum Definition {
OFFSET_PATH_("offset-path", "offset-path", ffNone()),

/** The style property {@code offsetPosition}. */
OFFSET_POSITION("offsetPosition", "offset-position", chromeAndEdgeAuto()),
OFFSET_POSITION("offsetPosition", "offset-position", chromeAndEdgeNormal()),

/** The style property {@code offsetRotate}. */
OFFSET_ROTATE("offsetRotate", "offset-rotate", chromeAndEdge("auto 0deg"), ff("auto")),
Expand Down Expand Up @@ -2886,10 +2886,10 @@ public enum Definition {
PIXEL_WIDTH("pixelWidth", "pixel-width", ie("")),

/** The style property {@code placeContent}. */
PLACE_CONTENT("placeContent", "place-content", chromeAndEdgeNormal(), ff("normal")),
PLACE_CONTENT("placeContent", "place-content", chromeAndEdgeNormal(), ffNormal()),

/** The style property {@code place-content}. */
PLACE_CONTENT_("place-content", "place-content", ff("normal")),
PLACE_CONTENT_("place-content", "place-content", ffNormal()),

/** The style property {@code placeItems}. */
PLACE_ITEMS("placeItems", "place-items", chromeAndEdgeNormal(), ff("normal legacy")),
Expand Down Expand Up @@ -3148,10 +3148,10 @@ public enum Definition {
SCROLL_SNAP_ALIGN_("scroll-snap-align", "scroll-snap-align", ffNone()),

/** The style property {@code scrollSnapStop}. */
SCROLL_SNAP_STOP("scrollSnapStop", "scroll-snap-stop", chromeAndEdgeNormal(), ff("normal")),
SCROLL_SNAP_STOP("scrollSnapStop", "scroll-snap-stop", chromeAndEdgeNormal(), ffNormal()),

/** The style property {@code scroll-snap-stop}. */
SCROLL_SNAP_STOP_("scroll-snap-stop", "scroll-snap-stop", ff("normal")),
SCROLL_SNAP_STOP_("scroll-snap-stop", "scroll-snap-stop", ffNormal()),

/** The style property {@code scrollSnapType}. */
SCROLL_SNAP_TYPE("scrollSnapType", "scroll-snap-type", chromeAndEdgeNone(), ffNone()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
import org.htmlunit.util.MimeType;

/**
* A JavaScript object for {@code HTMLFormElement}.
* A JavaScript object {@code HTMLFormElement}.
*
* @author <a href="mailto:[email protected]">Mike Bowler</a>
* @author Daniel Gredler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public class NumberFormat extends HtmlUnitScriptable {
private transient NumberFormatHelper formatter_;

static {

final Map<String, String> commonFormats = new HashMap<>();
commonFormats.put("", "");
commonFormats.put("ar", "\u066c\u066b\u0660");
Expand Down Expand Up @@ -101,13 +100,13 @@ public class NumberFormat extends HtmlUnitScriptable {
commonFormats.put("ar-SD", "\u066c\u066b\u0660");
commonFormats.put("ar-SY", "\u066c\u066b\u0660");
commonFormats.put("ar-YE", "\u066c\u066b\u0660");
commonFormats.put("be", ",.");
commonFormats.put("mk", ",.");
commonFormats.put("is", ",.");

CHROME_FORMATS_.putAll(commonFormats);
EDGE_FORMATS_.putAll(commonFormats);

CHROME_FORMATS_.put("be", ",.");
CHROME_FORMATS_.put("mk", ",.");
CHROME_FORMATS_.put("is", ",.");
CHROME_FORMATS_.put("sq", ",.");
}

Expand Down

0 comments on commit bfa2056

Please sign in to comment.