Skip to content

Commit

Permalink
Chrome/Edge 131 (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Nov 17, 2024
1 parent 284e94e commit fa114df
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
11 changes: 7 additions & 4 deletions src/main/java/org/htmlunit/css/StyleAttributes.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ public enum Definition {
ALL("all", "all", chromeAndEdgeAndFirefox("")),

/** The style property {@code anchorName}. */
ANCHOR_NAME("anchorName", "anchor.name", chromeAndEdgeNone()),
ANCHOR_NAME("anchorName", "anchor-name", chromeAndEdgeNone()),

/** The style property {@code anchorScope}. */
ANCHOR_SCOPE("anchorScope", "anchor-scope", chromeAndEdgeNone()),

/** The style property {@code animation}. */
ANIMATION("animation", "animation", chromeAndEdge("none 0s ease 0s 1 normal none running"),
Expand Down Expand Up @@ -1259,6 +1262,9 @@ public enum Definition {
/** The style property {@code font-variant-east-asian}. */
FONT_VARIANT_EAST_ASIAN_("font-variant-east-asian", "font-variant-east-asian", ffNormal()),

/** The style property {@code fontVariantEmoji}. */
FONT_VARIANT_EMOKJI("fontVariantEmoji", "font-variant-emoji", chromeAndEdgeNormal()),

/** The style property {@code fontVariantLigatures}. */
FONT_VARIANT_LIGATURES("fontVariantLigatures", "font-variant-ligatures", ffNormal(), chromeAndEdgeNormal()),

Expand Down Expand Up @@ -1463,9 +1469,6 @@ public enum Definition {
/** The style property {@code inset}. */
INSET("inset", "inset", chromeAndEdgeAuto(), ff("auto")),

/** The style property {@code insetArea}. */
INSET_AREA("insetArea", "inset-area", chromeAndEdgeNone()),

/** The style property {@code insetBlock}. */
INSET_BLOCK("insetBlock", "inset-block", chromeAndEdgeAuto(), ff("auto")),

Expand Down
4 changes: 3 additions & 1 deletion src/test/java/org/htmlunit/html/parser/HTMLParser6Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ public void fragmentParserHtmlInsideSelect() throws Exception {
* @throws Exception if the test fails
*/
@Test
@Alerts("<option id=\"myOption\">op1</option><option value=\"da\">Dansk</option>")
@Alerts(DEFAULT = "<option id=\"myOption\">op1</option><select><option value=\"da\">Dansk</option></select>",
FF = "<option id=\"myOption\">op1</option><option value=\"da\">Dansk</option>",
FF_ESR = "<option id=\"myOption\">op1</option><option value=\"da\">Dansk</option>")
public void fragmentParserHtmlInsideOption() throws Exception {
final String fragment = "<select><option value=\"da\">Dansk</option></select>";
final String html = "<html><head>\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -840,9 +840,7 @@ public void getInnerHTML() throws Exception {
* @throws Exception if the test fails
*/
@Test
@Alerts(DEFAULT = "<b>inner HTML</b>",
FF = "getInnerHTML() not available",
FF_ESR = "getInnerHTML() not available")
@Alerts("getInnerHTML() not available")
public void getGetInnerHTML() throws Exception {
final String html = "<html>\n"
+ "<head>\n"
Expand Down Expand Up @@ -5368,7 +5366,9 @@ public void clickAnElementThatDisappears() throws Exception {
* @throws Exception if the test fails
*/
@Test
@Alerts("<select id=\"myId\"><option>Two</option></select>")
@Alerts(DEFAULT = "<select id=\"myId\"><select id=\"myId2\"><option>Two</option></select></select>",
FF = "<select id=\"myId\"><option>Two</option></select>",
FF_ESR = "<select id=\"myId\"><option>Two</option></select>")
public void innerHTML() throws Exception {
final String html =
HtmlPageTest.STANDARDS_MODE_PREFIX_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ public void appName() throws Exception {
*/
@Test
@Alerts(CHROME = "5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64)\\sAppleWebKit/537.36\\s"
+ "(KHTML,\\slike\\sGecko)\\sChrome/130.0.0.0\\sSafari/537.36",
+ "(KHTML,\\slike\\sGecko)\\sChrome/131.0.0.0\\sSafari/537.36",
EDGE = "5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64)\\sAppleWebKit/537.36\\s"
+ "(KHTML,\\slike\\sGecko)\\sChrome/130.0.0.0\\sSafari/537.36\\sEdg/130.0.0.0",
+ "(KHTML,\\slike\\sGecko)\\sChrome/131.0.0.0\\sSafari/537.36\\sEdg/131.0.0.0",
FF = "5.0\\s(Windows)",
FF_ESR = "5.0\\s(Windows)")
public void appVersion() throws Exception {
Expand Down Expand Up @@ -161,9 +161,9 @@ public void product() throws Exception {
*/
@Test
@Alerts(CHROME = "Mozilla/5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64)\\sAppleWebKit/537.36\\s"
+ "(KHTML,\\slike\\sGecko)\\sChrome/130.0.0.0\\sSafari/537.36",
+ "(KHTML,\\slike\\sGecko)\\sChrome/131.0.0.0\\sSafari/537.36",
EDGE = "Mozilla/5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64)\\sAppleWebKit/537.36\\s"
+ "(KHTML,\\slike\\sGecko)\\sChrome/130.0.0.0\\sSafari/537.36\\sEdg/130.0.0.0",
+ "(KHTML,\\slike\\sGecko)\\sChrome/131.0.0.0\\sSafari/537.36\\sEdg/131.0.0.0",
FF = "Mozilla/5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64;\\srv:132.0)\\sGecko/20100101\\sFirefox/132.0",
FF_ESR = "Mozilla/5.0\\s(Windows\\sNT\\s10.0;\\sWin64;\\sx64;\\srv:128.0)\\sGecko/20100101\\sFirefox/128.0")
public void userAgent() throws Exception {
Expand Down

0 comments on commit fa114df

Please sign in to comment.